python-sdk-remote 0.0.160__tar.gz → 0.0.162__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.

Potentially problematic release.


This version of python-sdk-remote might be problematic. Click here for more details.

Files changed (33) hide show
  1. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/PKG-INFO +1 -1
  2. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/mini_logger.py +9 -1
  3. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/unified_json.py +3 -0
  4. python_sdk_remote-0.0.162/python_sdk_remote/src/valid_json_versions.py +5 -0
  5. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/version.py +1 -1
  6. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote.egg-info/PKG-INFO +1 -1
  7. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/setup.py +1 -1
  8. python_sdk_remote-0.0.160/python_sdk_remote/src/valid_json_versions.py +0 -4
  9. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/README.md +0 -0
  10. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/pyproject.toml +0 -0
  11. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/__init__.py +0 -0
  12. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/constants.py +0 -0
  13. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +0 -0
  14. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/datetime_range.py +0 -0
  15. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/exceptions.py +0 -0
  16. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/generic_crud.py +0 -0
  17. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/http_response.py +0 -0
  18. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/is_test_data.py +0 -0
  19. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/item.py +0 -0
  20. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/our_obfuscation.py +0 -0
  21. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/our_object.py +0 -0
  22. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/our_objects.py +0 -0
  23. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/our_objects_local.py +0 -0
  24. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/our_objects_remote.py +0 -0
  25. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/our_request.py +0 -0
  26. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/our_request_old.py +0 -0
  27. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/utilities.py +0 -0
  28. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote/src/validate_environment.py +0 -0
  29. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
  30. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
  31. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote.egg-info/requires.txt +0 -0
  32. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/python_sdk_remote.egg-info/top_level.txt +0 -0
  33. {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.162}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-sdk-remote
3
- Version: 0.0.160
3
+ Version: 0.0.162
4
4
  Summary: PyPI Package for Circles Python SDK Local Python
5
5
  Home-page: https://github.com/circles-zone/python-sdk-remote-python-package
6
6
  Author: Circles
@@ -24,6 +24,14 @@ if LOGGER_MINIMUM_SEVERITY.isdigit():
24
24
  else:
25
25
  LOGGER_MINIMUM_SEVERITY = LogMessageSeverity.CRITICAL.name
26
26
 
27
+ # Option #1 ( I think we should delete it)
28
+ # Map the internal "INFORMATION" string to Python's native standard "INFO"
29
+ # python_logging_level = "INFO" if LOGGER_MINIMUM_SEVERITY == "INFORMATION" else LOGGER_MINIMUM_SEVERITY
30
+ # logging.basicConfig(level=python_logging_level, stream=sys.stdout,
31
+ # format="%(asctime)s - %(message)s")
32
+
33
+
34
+ # Option #2
27
35
  # Some of our severity names (LogMessageSeverity) aren't recognized by Python's stdlib
28
36
  # logging module, which only knows DEBUG/INFO/WARNING/ERROR/CRITICAL - translate before basicConfig
29
37
  _CUSTOM_TO_STDLIB_LEVEL_NAME = {
@@ -33,9 +41,9 @@ _CUSTOM_TO_STDLIB_LEVEL_NAME = {
33
41
  "EXCEPTION": "ERROR",
34
42
  }
35
43
  LOGGER_MINIMUM_SEVERITY = _CUSTOM_TO_STDLIB_LEVEL_NAME.get(LOGGER_MINIMUM_SEVERITY, LOGGER_MINIMUM_SEVERITY)
36
-
37
44
  logging.basicConfig(level=LOGGER_MINIMUM_SEVERITY, stream=sys.stdout,
38
45
  format="%(asctime)s - %(message)s")
46
+
39
47
  logger = logging.getLogger(__name__)
40
48
 
41
49
 
@@ -2,8 +2,11 @@ from .valid_json_versions import valid_json_versions
2
2
 
3
3
 
4
4
  # Implementation note: Shall we merge it with the machine-learning-unified-json?
5
+ # Alias validate_json
5
6
  class UnifiedJson:
6
7
  def __init__(self, data: dict, json_version: str):
8
+ # TODO Move this code to UnifiedJson.is_valid_json() method and call it
9
+ # TODO Write function/method both in TypeScript and Python to validate JSON i.e. to make sure there is version field in the upper level (Like in AWS JSON)
7
10
  if json_version not in valid_json_versions:
8
11
  raise Exception(
9
12
  f"version {json_version} is not in valid_json_versions {valid_json_versions}, "
@@ -0,0 +1,5 @@
1
+ # TODO Generate this file using Sql2Code (from json_version database schema) - Low priority
2
+
3
+ valid_json_versions = {
4
+ "240109": "Description"
5
+ }
@@ -1,5 +1,5 @@
1
1
  # PACKAGE_VERSION from setup.py generated by MakePy.ps1
2
- PACKAGE_VERSION = '0.0.153'
2
+ PACKAGE_VERSION = '0.0.162'
3
3
 
4
4
 
5
5
  def get_package_version() -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-sdk-remote
3
- Version: 0.0.160
3
+ Version: 0.0.162
4
4
  Summary: PyPI Package for Circles Python SDK Local Python
5
5
  Home-page: https://github.com/circles-zone/python-sdk-remote-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.160', # https://pypi.org/project/python-sdk-remote/
10
+ version='0.0.162', # https://pypi.org/project/python-sdk-remote/
11
11
  author="Circles",
12
12
  author_email="info@circlez.ai",
13
13
  description="PyPI Package for Circles Python SDK Local Python",
@@ -1,4 +0,0 @@
1
- # Later we'll generate this file using Sql2Code (from json_version database schema)
2
- valid_json_versions = {
3
- "240109": "Description"
4
- }