python-sdk-remote 0.0.219b4096__tar.gz → 0.0.220b4138__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.
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/pyproject.toml +1 -1
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/constants.py +1 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/http_response.py +4 -4
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/our_request.py +3 -2
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/our_request_old.py +3 -2
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/setup.py +1 -1
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/README.md +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/datetime_range.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/dot_env_files.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/environment.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/environment_variable_exception.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/filename.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/filesystem.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/generic_crud.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/is_test_data.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/masking.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/mini_logger.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/our_environment_variable.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/our_environment_variable_exception.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/our_obfuscation.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/our_objects.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/our_objects_local.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/our_objects_remote.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/personal_repo.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/username.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/utilities.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/version.py +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/setup.cfg +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "python-sdk-local"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.220b4138" # https://pypi.org/project/python-sdk-local
|
|
8
8
|
description = "python-sdk-local Python Package"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -16,13 +16,13 @@ AUTHORIZATION_PREFIX = 'Bearer '
|
|
|
16
16
|
|
|
17
17
|
def create_internal_server_error_http_response(error_message: str = "Internal Server Error") -> dict:
|
|
18
18
|
"""
|
|
19
|
-
Create HTTP
|
|
19
|
+
Create an HTTP Internal Server Error response.
|
|
20
20
|
|
|
21
21
|
Args:
|
|
22
22
|
error_message: Custom error message (default: "Internal Server Error")
|
|
23
23
|
|
|
24
24
|
Returns:
|
|
25
|
-
dict: HTTP response with 500 status code
|
|
25
|
+
dict: HTTP response with the Internal Server Error (500) status code
|
|
26
26
|
"""
|
|
27
27
|
logger.start(object={"error_message": error_message})
|
|
28
28
|
internal_server_error_response = {
|
|
@@ -36,13 +36,13 @@ def create_internal_server_error_http_response(error_message: str = "Internal Se
|
|
|
36
36
|
|
|
37
37
|
def create_ok_http_response_simple(body: Any) -> dict:
|
|
38
38
|
"""
|
|
39
|
-
Create simple HTTP 200
|
|
39
|
+
Create a simple HTTP OK (200) response (alias for create_ok_http_response).
|
|
40
40
|
|
|
41
41
|
Args:
|
|
42
42
|
body: Response body data
|
|
43
43
|
|
|
44
44
|
Returns:
|
|
45
|
-
dict: HTTP response with 200 status code
|
|
45
|
+
dict: HTTP response with the OK (200) status code
|
|
46
46
|
"""
|
|
47
47
|
return create_ok_http_response(body)
|
|
48
48
|
|
|
@@ -6,6 +6,7 @@ in the typescript-sdk-remote repo.
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
import time
|
|
9
|
+
from http import HTTPStatus
|
|
9
10
|
from typing import Any, Dict, Optional, Union
|
|
10
11
|
|
|
11
12
|
import requests
|
|
@@ -120,7 +121,7 @@ class OurRequest:
|
|
|
120
121
|
object={"status_code": response.status_code,
|
|
121
122
|
"response_text": response_text[:500] if response_text else "N/A"})
|
|
122
123
|
# Don't retry on client errors (4xx), but do retry on server errors (5xx)
|
|
123
|
-
if
|
|
124
|
+
if HTTPStatus.BAD_REQUEST <= response.status_code < HTTPStatus.INTERNAL_SERVER_ERROR:
|
|
124
125
|
logger.end(method_name, object={"final_status": "http_client_error"})
|
|
125
126
|
raise http_error
|
|
126
127
|
else:
|
|
@@ -265,7 +266,7 @@ class OurRequest:
|
|
|
265
266
|
object={"status_code": response.status_code,
|
|
266
267
|
"response_text": response_text[:500] if response_text else "N/A"})
|
|
267
268
|
# Don't retry on client errors (4xx), but do retry on server errors (5xx)
|
|
268
|
-
if
|
|
269
|
+
if HTTPStatus.BAD_REQUEST <= response.status_code < HTTPStatus.INTERNAL_SERVER_ERROR:
|
|
269
270
|
logger.end(method_name, object={"final_status": "http_client_error"})
|
|
270
271
|
raise http_error
|
|
271
272
|
else:
|
|
@@ -6,6 +6,7 @@ in the typescript-sdk-remote repo.
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
import time
|
|
9
|
+
from http import HTTPStatus
|
|
9
10
|
from typing import Any, Dict, Optional, Union
|
|
10
11
|
|
|
11
12
|
import requests
|
|
@@ -108,7 +109,7 @@ class OurRequest:
|
|
|
108
109
|
object={"status_code": response.status_code,
|
|
109
110
|
"response_text": response.text[:500]})
|
|
110
111
|
# Don't retry on client errors (4xx), but do retry on server errors (5xx)
|
|
111
|
-
if
|
|
112
|
+
if HTTPStatus.BAD_REQUEST <= response.status_code < HTTPStatus.INTERNAL_SERVER_ERROR:
|
|
112
113
|
logger.end(method_name, object={"final_status": "http_client_error"})
|
|
113
114
|
raise http_error
|
|
114
115
|
else:
|
|
@@ -252,7 +253,7 @@ class OurRequest:
|
|
|
252
253
|
object={"status_code": response.status_code,
|
|
253
254
|
"response_text": response.text[:500]})
|
|
254
255
|
# Don't retry on client errors (4xx), but do retry on server errors (5xx)
|
|
255
|
-
if
|
|
256
|
+
if HTTPStatus.BAD_REQUEST <= response.status_code < HTTPStatus.INTERNAL_SERVER_ERROR:
|
|
256
257
|
logger.end(method_name, object={"final_status": "http_client_error"})
|
|
257
258
|
raise http_error
|
|
258
259
|
else:
|
|
@@ -8,7 +8,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
|
|
|
8
8
|
setuptools.setup(
|
|
9
9
|
license='MIT',
|
|
10
10
|
name=PACKAGE_NAME,
|
|
11
|
-
version="0.0.
|
|
11
|
+
version="0.0.220b4138", # https://pypi.org/project/python-sdk-remote#history
|
|
12
12
|
author="Circles",
|
|
13
13
|
author_email="info@circlez.ai",
|
|
14
14
|
description="PyPI Package for Circles Python SDK Local Python",
|
|
File without changes
|
{python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/filename.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/item.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/masking.py
RENAMED
|
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
|
{python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/username.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/utilities.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.219b4096 → python_sdk_remote-0.0.220b4138}/python_sdk_remote/src/version.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|