python-sdk-remote 0.0.154b1234__tar.gz → 0.0.155__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.
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/mini_logger.py +26 -2
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/setup.py +1 -1
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/README.md +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/pyproject.toml +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/http_response.py +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/is_test_data.py +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/utilities.py +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/setup.cfg +0 -0
{python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/mini_logger.py
RENAMED
|
@@ -7,7 +7,31 @@ from .constants_src_mini_logger_and_logger import LogMessageSeverity, StartEndEn
|
|
|
7
7
|
|
|
8
8
|
# TODO LOGGER_MINIMAL_SEVERITY_DEFAULT
|
|
9
9
|
LOGGER_MINIMUM_SEVERITY = os.getenv("LOGGER_MINIMUM_SEVERITY", "INFORMATION").upper()
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
# Convert enum values to logging levels
|
|
12
|
+
def _get_logging_level(severity):
|
|
13
|
+
if isinstance(severity, LogMessageSeverity):
|
|
14
|
+
if severity == LogMessageSeverity.DEBUG:
|
|
15
|
+
return logging.DEBUG
|
|
16
|
+
elif severity == LogMessageSeverity.INFORMATION:
|
|
17
|
+
return logging.INFO
|
|
18
|
+
elif severity == LogMessageSeverity.WARNING:
|
|
19
|
+
return logging.WARNING
|
|
20
|
+
elif severity == LogMessageSeverity.ERROR:
|
|
21
|
+
return logging.ERROR
|
|
22
|
+
elif severity == LogMessageSeverity.CRITICAL:
|
|
23
|
+
return logging.CRITICAL
|
|
24
|
+
else:
|
|
25
|
+
return logging.INFO
|
|
26
|
+
elif isinstance(severity, str):
|
|
27
|
+
if severity == "INFORMATION":
|
|
28
|
+
return logging.INFO
|
|
29
|
+
else:
|
|
30
|
+
return getattr(logging, severity, logging.INFO)
|
|
31
|
+
else:
|
|
32
|
+
return logging.INFO
|
|
33
|
+
|
|
34
|
+
# logging expects NOTSET/DEBUG/INFO/WARNING/ERROR/CRITICAL
|
|
11
35
|
if LOGGER_MINIMUM_SEVERITY.isdigit():
|
|
12
36
|
# TODO logger_minimal_severity_default_value
|
|
13
37
|
logger_minimum_severity = int(LOGGER_MINIMUM_SEVERITY)
|
|
@@ -25,7 +49,7 @@ if LOGGER_MINIMUM_SEVERITY.isdigit():
|
|
|
25
49
|
else:
|
|
26
50
|
LOGGER_MINIMUM_SEVERITY = LogMessageSeverity.CRITICAL
|
|
27
51
|
|
|
28
|
-
logging.basicConfig(level=LOGGER_MINIMUM_SEVERITY, stream=sys.stdout,
|
|
52
|
+
logging.basicConfig(level=_get_logging_level(LOGGER_MINIMUM_SEVERITY), stream=sys.stdout,
|
|
29
53
|
format="%(asctime)s - %(message)s")
|
|
30
54
|
logger = logging.getLogger(__name__)
|
|
31
55
|
|
|
@@ -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.155', # 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.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/__init__.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/constants.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/http_response.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/is_test_data.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/our_object.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/unified_json.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote/src/utilities.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.154b1234 → python_sdk_remote-0.0.155}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|