python-sdk-local 0.0.149__tar.gz → 0.0.151__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_local-0.0.149 → python_sdk_local-0.0.151}/PKG-INFO +1 -1
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/pyproject.toml +1 -1
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/http_response.py +2 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/utilities.py +1 -20
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local.egg-info/PKG-INFO +1 -1
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/setup.py +1 -1
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/README.md +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/__init__.py +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/constants.py +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/item.py +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/our_object.py +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/service_response.py +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/unified_json.py +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/valid_json_versions.py +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/validate_environment.py +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local.egg-info/SOURCES.txt +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local.egg-info/dependency_links.txt +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local.egg-info/requires.txt +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local.egg-info/top_level.txt +0 -0
- {python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/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.78" # https://pypi.org/project/python-sdk-local
|
|
8
8
|
description = "python-sdk-local Python Package"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# TODO If we have the exact same file in pytnon-sdk-remote, we we can delete this file from python-sdk-local
|
|
1
2
|
import traceback
|
|
2
3
|
from functools import wraps
|
|
3
4
|
from http import HTTPStatus
|
|
@@ -8,6 +9,7 @@ from user_context_remote.user_context import UserContext
|
|
|
8
9
|
|
|
9
10
|
from .utilities import camel_to_snake, snake_to_camel, to_dict, to_json
|
|
10
11
|
|
|
12
|
+
# TODO Use those const everywhere we use those strings
|
|
11
13
|
HEADERS_KEY = 'headers'
|
|
12
14
|
AUTHORIZATION_KEY = 'Authorization'
|
|
13
15
|
AUTHORIZATION_PREFIX = 'Bearer '
|
|
@@ -11,7 +11,6 @@ import requests
|
|
|
11
11
|
from dotenv import load_dotenv
|
|
12
12
|
|
|
13
13
|
from python_sdk_remote.mini_logger import MiniLogger as logger
|
|
14
|
-
from python_sdk_remote.utilities import our_get_env
|
|
15
14
|
|
|
16
15
|
load_dotenv()
|
|
17
16
|
# If DOTENV_PATH is defined, load the environment variables from the specified file
|
|
@@ -391,7 +390,7 @@ def camel_to_snake(camel_str: str) -> str:
|
|
|
391
390
|
return snake_str
|
|
392
391
|
|
|
393
392
|
|
|
394
|
-
def strtobool(val)
|
|
393
|
+
def strtobool(val):
|
|
395
394
|
"""Convert a string representation of truth to true (1) or false (0).
|
|
396
395
|
True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values
|
|
397
396
|
are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if
|
|
@@ -406,21 +405,3 @@ def strtobool(val) -> bool:
|
|
|
406
405
|
return 0
|
|
407
406
|
else:
|
|
408
407
|
raise ValueError("invalid truth value %r" % (val,))
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
def is_debug() -> bool:
|
|
412
|
-
"""
|
|
413
|
-
Check if the application is running in debug mode.
|
|
414
|
-
Returns True if DEBUG environment variable is set to 'true', '1', or 't'.
|
|
415
|
-
"""
|
|
416
|
-
|
|
417
|
-
is_debug_result = strtobool(our_get_env("DEBUG", "false"))
|
|
418
|
-
|
|
419
|
-
if is_debug_result:
|
|
420
|
-
logger.info("Debug mode is enabled.")
|
|
421
|
-
|
|
422
|
-
return is_debug_result
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
if __name__ == "__main__":
|
|
426
|
-
is_debug()
|
|
@@ -7,7 +7,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
|
|
|
7
7
|
# python -m build needs pyproject.toml or setup.py
|
|
8
8
|
setuptools.setup(
|
|
9
9
|
name=PACKAGE_NAME,
|
|
10
|
-
version='0.0.
|
|
10
|
+
version='0.0.151', # https://pypi.org/project/python-sdk-local/
|
|
11
11
|
author="Circles",
|
|
12
12
|
author_email="info@circlez.ai",
|
|
13
13
|
description="PyPI Package for Circles Python SDK Local Python",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/service_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/valid_json_versions.py
RENAMED
|
File without changes
|
{python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local/src/validate_environment.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local.egg-info/requires.txt
RENAMED
|
File without changes
|
{python_sdk_local-0.0.149 → python_sdk_local-0.0.151}/python_sdk_local.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|