python-sdk-local 0.0.148__tar.gz → 0.0.149__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.
Files changed (20) hide show
  1. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/PKG-INFO +1 -1
  2. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local/src/utilities.py +20 -1
  3. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local.egg-info/PKG-INFO +1 -1
  4. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/setup.py +1 -1
  5. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/README.md +0 -0
  6. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/pyproject.toml +0 -0
  7. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local/src/__init__.py +0 -0
  8. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local/src/constants.py +0 -0
  9. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local/src/http_response.py +0 -0
  10. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local/src/item.py +0 -0
  11. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local/src/our_object.py +0 -0
  12. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local/src/service_response.py +0 -0
  13. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local/src/unified_json.py +0 -0
  14. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local/src/valid_json_versions.py +0 -0
  15. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local/src/validate_environment.py +0 -0
  16. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local.egg-info/SOURCES.txt +0 -0
  17. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local.egg-info/dependency_links.txt +0 -0
  18. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local.egg-info/requires.txt +0 -0
  19. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/python_sdk_local.egg-info/top_level.txt +0 -0
  20. {python_sdk_local-0.0.148 → python_sdk_local-0.0.149}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-sdk-local
3
- Version: 0.0.148
3
+ Version: 0.0.149
4
4
  Summary: PyPI Package for Circles Python SDK Local Python
5
5
  Home-page: https://github.com/circles-zone/python-sdk-local-python-package
6
6
  Author: Circles
@@ -11,6 +11,7 @@ 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
14
15
 
15
16
  load_dotenv()
16
17
  # If DOTENV_PATH is defined, load the environment variables from the specified file
@@ -390,7 +391,7 @@ def camel_to_snake(camel_str: str) -> str:
390
391
  return snake_str
391
392
 
392
393
 
393
- def strtobool(val):
394
+ def strtobool(val) -> bool:
394
395
  """Convert a string representation of truth to true (1) or false (0).
395
396
  True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values
396
397
  are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if
@@ -405,3 +406,21 @@ def strtobool(val):
405
406
  return 0
406
407
  else:
407
408
  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()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-sdk-local
3
- Version: 0.0.148
3
+ Version: 0.0.149
4
4
  Summary: PyPI Package for Circles Python SDK Local Python
5
5
  Home-page: https://github.com/circles-zone/python-sdk-local-python-package
6
6
  Author: Circles
@@ -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.148', # https://pypi.org/project/python-sdk-local/
10
+ version='0.0.149', # 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",