python-sdk-remote 0.0.160__py3-none-any.whl → 0.0.161__py3-none-any.whl

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.
@@ -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}, "
@@ -1,4 +1,5 @@
1
- # Later we'll generate this file using Sql2Code (from json_version database schema)
1
+ # TODO Generate this file using Sql2Code (from json_version database schema) - Low priority
2
+
2
3
  valid_json_versions = {
3
4
  "240109": "Description"
4
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.161'
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.161
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 @@ python_sdk_remote/generic_crud.py,sha256=jzmR27kr8Pnf4Gk90SKoxbM5ufLsOr2ofekRtcH
7
7
  python_sdk_remote/http_response.py,sha256=fjjLPvxxTaUnovF8REpsMgknhpscKKkymH3AKnMQcDA,12441
8
8
  python_sdk_remote/is_test_data.py,sha256=zbUz-Juj7vOPG9TtIttMIBWFxbsOs4-TuR1RYfGNkp4,92
9
9
  python_sdk_remote/item.py,sha256=6DQs1nBKbEmnHjE50vZtkMr14ECS_9b8cvE7ItPAbhE,322
10
- python_sdk_remote/mini_logger.py,sha256=D4Zc5bSwSOcVamocokuw4568hwrp4jZ0bxIDoaqa9Zk,5824
10
+ python_sdk_remote/mini_logger.py,sha256=b4-VJxtK5g4bnnWUJh__ZF-rCMxu6pmZF-uMFq_TUkU,6188
11
11
  python_sdk_remote/our_obfuscation.py,sha256=YrQksRpJ_AwEio4xHq_TE8BQDXNGUbCQ-5E0OkcXYeM,10717
12
12
  python_sdk_remote/our_object.py,sha256=SjGs2g82ENivILmVIXg1mTxedBQ3rLS-nbigYjGUtFk,5470
13
13
  python_sdk_remote/our_objects.py,sha256=CUcuh5bYaO2JiVKu_hMsPqiWOuURMge0NBnnS_UpWZY,254
@@ -15,12 +15,12 @@ python_sdk_remote/our_objects_local.py,sha256=vfBGZ25uFVzCMPahbrQ9OTwIDyMh2w8FAp
15
15
  python_sdk_remote/our_objects_remote.py,sha256=fdgZwA8DaNA5G3thdUTCj7TRrO6xpqxvR5MJPZ19g1Y,140
16
16
  python_sdk_remote/our_request.py,sha256=ljr1xbc_Kpgl9An_J4JlUncA8mV7WEUryGYaP2a6I-A,14090
17
17
  python_sdk_remote/our_request_old.py,sha256=Yt1XGbQmlWXtP2prL6bHQ_27wrjf5j9h_X2Sdr-xIvY,13549
18
- python_sdk_remote/unified_json.py,sha256=A-mkiwzHsgrm7IrL9GA1Ety3NdDGrSCj4E72owJZXj0,977
18
+ python_sdk_remote/unified_json.py,sha256=AmeUzBsQh2N9z9XRo1Aya5qPvcV8dzRa4-O2jlCdaTg,1242
19
19
  python_sdk_remote/utilities.py,sha256=hKxeqU0D3G_4R3nQIMj941STOMCZE8WDzSXWdIc1ySE,23921
20
- python_sdk_remote/valid_json_versions.py,sha256=-ZU65JYI6gTEfK8o6gu9Dmm9SQmwzj5pDbEXiyUbBhQ,138
20
+ python_sdk_remote/valid_json_versions.py,sha256=zVtvhsEDKkfK3o8crdcP6YWjLnzh-OykWGPT7vghb6k,147
21
21
  python_sdk_remote/validate_environment.py,sha256=VQKta418TmJwkUGXp0Rorhy65YANoNVgg86BIYPf2Wc,2321
22
- python_sdk_remote/version.py,sha256=nJV1jCPXMEluCrvcEBWwM8BS6DzFTv7pULfqjGXs3uA,421
23
- python_sdk_remote-0.0.160.dist-info/METADATA,sha256=TEbb-Ovoa0uAoOM5IQ5uLQUJuZSXwyMOAOBzWUuMd-I,729
24
- python_sdk_remote-0.0.160.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
25
- python_sdk_remote-0.0.160.dist-info/top_level.txt,sha256=JTpEq_svPlI5hTlPq30Ne-NkR-u5464gjVDP2U74PvE,18
26
- python_sdk_remote-0.0.160.dist-info/RECORD,,
22
+ python_sdk_remote/version.py,sha256=AD1oIgur6yvvIQVWkeMArvQbMuKDuW4a8hP8zD7d_I0,421
23
+ python_sdk_remote-0.0.161.dist-info/METADATA,sha256=XdvulAJAa5_8z3y12mURRRvVHHg1nkmFozdPUzx9gCo,729
24
+ python_sdk_remote-0.0.161.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
25
+ python_sdk_remote-0.0.161.dist-info/top_level.txt,sha256=JTpEq_svPlI5hTlPq30Ne-NkR-u5464gjVDP2U74PvE,18
26
+ python_sdk_remote-0.0.161.dist-info/RECORD,,