python-sdk-remote 0.0.160__tar.gz → 0.0.161__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_remote-0.0.160 → python_sdk_remote-0.0.161}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/mini_logger.py +9 -1
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/unified_json.py +3 -0
- python_sdk_remote-0.0.161/python_sdk_remote/src/valid_json_versions.py +5 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/version.py +1 -1
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/setup.py +1 -1
- python_sdk_remote-0.0.160/python_sdk_remote/src/valid_json_versions.py +0 -4
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/README.md +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/pyproject.toml +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/datetime_range.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/exceptions.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/generic_crud.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/http_response.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/is_test_data.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_obfuscation.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_objects.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_objects_local.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_objects_remote.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_request.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_request_old.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/utilities.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/setup.cfg +0 -0
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/mini_logger.py
RENAMED
|
@@ -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
|
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/unified_json.py
RENAMED
|
@@ -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}, "
|
|
@@ -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.161', # 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",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/datetime_range.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/generic_crud.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/http_response.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/is_test_data.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_obfuscation.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_objects.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_objects_local.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_objects_remote.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_request.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_request_old.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.160 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|