python-sdk-remote 0.0.159b1234__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.159b1234 → python_sdk_remote-0.0.161}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/mini_logger.py +18 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/unified_json.py +3 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/utilities.py +1 -0
- python_sdk_remote-0.0.161/python_sdk_remote/src/valid_json_versions.py +5 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/version.py +1 -1
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/setup.py +1 -1
- python_sdk_remote-0.0.159b1234/python_sdk_remote/src/valid_json_versions.py +0 -4
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/README.md +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/pyproject.toml +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/datetime_range.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/exceptions.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/generic_crud.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/http_response.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/is_test_data.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_obfuscation.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_objects.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_objects_local.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_objects_remote.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_request.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_request_old.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/setup.cfg +0 -0
{python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/mini_logger.py
RENAMED
|
@@ -24,8 +24,26 @@ 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
|
|
35
|
+
# Some of our severity names (LogMessageSeverity) aren't recognized by Python's stdlib
|
|
36
|
+
# logging module, which only knows DEBUG/INFO/WARNING/ERROR/CRITICAL - translate before basicConfig
|
|
37
|
+
_CUSTOM_TO_STDLIB_LEVEL_NAME = {
|
|
38
|
+
"VERBOSE": "DEBUG",
|
|
39
|
+
"INIT": "DEBUG",
|
|
40
|
+
"INFORMATION": "INFO",
|
|
41
|
+
"EXCEPTION": "ERROR",
|
|
42
|
+
}
|
|
43
|
+
LOGGER_MINIMUM_SEVERITY = _CUSTOM_TO_STDLIB_LEVEL_NAME.get(LOGGER_MINIMUM_SEVERITY, LOGGER_MINIMUM_SEVERITY)
|
|
27
44
|
logging.basicConfig(level=LOGGER_MINIMUM_SEVERITY, stream=sys.stdout,
|
|
28
45
|
format="%(asctime)s - %(message)s")
|
|
46
|
+
|
|
29
47
|
logger = logging.getLogger(__name__)
|
|
30
48
|
|
|
31
49
|
|
{python_sdk_remote-0.0.159b1234 → 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}, "
|
{python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/utilities.py
RENAMED
|
@@ -331,6 +331,7 @@ def update_dot_env_example(key: str, value: str):
|
|
|
331
331
|
# TODO If running in a lower environment(i.e. local1, play1) if key do not exit in Personal Repo relevant .env.{environment_} or value diffrent update Personal Repo (create new and comment the old record)
|
|
332
332
|
# TODO If running in a lower environment(i.e. local1, play1) update .env.example with the key without the value
|
|
333
333
|
# TODO If running in a lower environment(i.e. local1, play1) and the key do not exist look for it in the Team Member Personal Repo and copy both the key and value to the repo .env.{environment_name} file
|
|
334
|
+
# TODO move all our_*_env() to our_env.py
|
|
334
335
|
def our_get_env(key: str, default: str = None, raise_if_not_found: bool = True,
|
|
335
336
|
raise_if_empty: bool = False, optional_prefix: str = None) -> str:
|
|
336
337
|
"""
|
|
@@ -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
|
{python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/__init__.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/datetime_range.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/exceptions.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/generic_crud.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/http_response.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/is_test_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_object.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_objects.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote/src/our_request.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.159b1234 → 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.159b1234 → python_sdk_remote-0.0.161}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|