python-sdk-local 0.0.146__tar.gz → 0.0.147__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.146 → python_sdk_local-0.0.147}/PKG-INFO +1 -1
  2. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local/src/utilities.py +17 -0
  3. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local.egg-info/PKG-INFO +1 -1
  4. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/setup.py +1 -1
  5. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/README.md +0 -0
  6. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/pyproject.toml +0 -0
  7. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local/src/__init__.py +0 -0
  8. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local/src/constants.py +0 -0
  9. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local/src/http_response.py +0 -0
  10. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local/src/item.py +0 -0
  11. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local/src/our_object.py +0 -0
  12. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local/src/service_response.py +0 -0
  13. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local/src/unified_json.py +0 -0
  14. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local/src/valid_json_versions.py +0 -0
  15. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local/src/validate_environment.py +0 -0
  16. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local.egg-info/SOURCES.txt +0 -0
  17. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local.egg-info/dependency_links.txt +0 -0
  18. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local.egg-info/requires.txt +0 -0
  19. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/python_sdk_local.egg-info/top_level.txt +0 -0
  20. {python_sdk_local-0.0.146 → python_sdk_local-0.0.147}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-sdk-local
3
- Version: 0.0.146
3
+ Version: 0.0.147
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
@@ -361,3 +361,20 @@ def camel_to_snake(camel_str: str) -> str:
361
361
  """Converts camelCase to snake_case."""
362
362
  snake_str = re.sub(r'(?<!^)(?=[A-Z])', '_', camel_str).lower()
363
363
  return snake_str
364
+
365
+
366
+ def strtobool(val):
367
+ """Convert a string representation of truth to true (1) or false (0).
368
+ True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values
369
+ are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if
370
+ 'val' is anything else.
371
+ """
372
+ if val is None:
373
+ return 0
374
+ val = val.lower()
375
+ if val in ('y', 'yes', 't', 'true', 'on', '1'):
376
+ return 1
377
+ elif val in ('n', 'no', 'f', 'false', 'off', '0'):
378
+ return 0
379
+ else:
380
+ raise ValueError("invalid truth value %r" % (val,))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-sdk-local
3
- Version: 0.0.146
3
+ Version: 0.0.147
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.146', # https://pypi.org/project/python-sdk-local/
10
+ version='0.0.147', # 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",