socketsecurity 0.0.65__tar.gz → 0.0.66__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/PKG-INFO +1 -1
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/pyproject.toml +1 -1
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity/core/__init__.py +3 -3
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity.egg-info/PKG-INFO +1 -1
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/README.md +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/setup.cfg +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity/__init__.py +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity/core/github.py +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity/core/gitlab.py +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity/core/issues.py +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity/core/licenses.py +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity/core/messages.py +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity/socketcli.py +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity.egg-info/SOURCES.txt +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity.egg-info/dependency_links.txt +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity.egg-info/entry_points.txt +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity.egg-info/requires.txt +0 -0
- {socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity.egg-info/top_level.txt +0 -0
|
@@ -25,7 +25,7 @@ import time
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
__author__ = 'socket.dev'
|
|
28
|
-
__version__ = '0.0.
|
|
28
|
+
__version__ = '0.0.66'
|
|
29
29
|
__all__ = [
|
|
30
30
|
"Core",
|
|
31
31
|
"log",
|
|
@@ -81,7 +81,7 @@ def do_request(
|
|
|
81
81
|
if headers is None:
|
|
82
82
|
headers = {
|
|
83
83
|
'Authorization': f"Basic {encoded_key}",
|
|
84
|
-
'User-Agent': '
|
|
84
|
+
'User-Agent': f'SocketPythonCLI/{__version__}',
|
|
85
85
|
"accept": "application/json"
|
|
86
86
|
}
|
|
87
87
|
url = f"{api_url}/{path}"
|
|
@@ -113,7 +113,7 @@ def do_request(
|
|
|
113
113
|
elif response.status_code == 429:
|
|
114
114
|
raise APIInsufficientQuota("Insufficient quota for API route")
|
|
115
115
|
elif response.status_code == 524:
|
|
116
|
-
raise APICloudflareError
|
|
116
|
+
raise APICloudflareError(response.text)
|
|
117
117
|
else:
|
|
118
118
|
msg = {
|
|
119
119
|
"status_code": response.status_code,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socketsecurity-0.0.65 → socketsecurity-0.0.66}/socketsecurity.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|