forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpython-packages.schema.json
More file actions
52 lines (52 loc) · 1.96 KB
/
python-packages.schema.json
File metadata and controls
52 lines (52 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "python-packages.schema.json#",
"title": "PythonPackagesConnection",
"description": "Configuration for a connection to Python simple repository APIs compatible with PEP 503",
"allowComments": true,
"type": "object",
"additionalProperties": false,
"required": ["urls"],
"properties": {
"urls": {
"description": "The list of Python simple repository URLs to fetch packages from. 404 Not found or 410 Gone responses will result in the next URL to be attempted.",
"type": "array",
"items": {
"type": "string"
},
"default": ["https://pypi.org/simple"],
"examples": [["https://private.mycorp.org/simple", "https://pypi.org/simple"]]
},
"rateLimit": {
"description": "Rate limit applied when making background API requests to the configured Python simple repository APIs.",
"title": "PythonRateLimit",
"type": "object",
"required": ["enabled", "requestsPerHour"],
"properties": {
"enabled": {
"description": "true if rate limiting is enabled.",
"type": "boolean",
"default": true
},
"requestsPerHour": {
"description": "Requests per hour permitted. This is an average, calculated per second. Internally, the burst limit is set to 100, which implies that for a requests per hour limit as low as 1, users will continue to be able to send a maximum of 100 requests immediately, provided that the complexity cost of each request is 1.",
"type": "number",
"default": 57600,
"minimum": 0
}
},
"default": {
"enabled": true,
"requestsPerHour": 57600
}
},
"dependencies": {
"description": "An array of strings specifying Python packages to mirror in Sourcegraph.",
"type": "array",
"items": {
"type": "string"
},
"examples": [["numpy==1.22.3", "pytorch==1.0.2"]]
}
}
}