python-sdk-remote 0.0.152__tar.gz → 0.0.153__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.152 → python_sdk_remote-0.0.153}/PKG-INFO +1 -1
- python_sdk_remote-0.0.152/python_sdk_remote/src/constants_src_mini_logger.py → python_sdk_remote-0.0.153/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +1 -1
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/mini_logger.py +11 -7
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote.egg-info/SOURCES.txt +1 -1
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/setup.py +1 -1
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/README.md +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/pyproject.toml +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/http_response.py +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/is_test_data.py +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/utilities.py +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/setup.cfg +0 -0
{python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/mini_logger.py
RENAMED
|
@@ -3,21 +3,21 @@ import os
|
|
|
3
3
|
import sys
|
|
4
4
|
# from enum import Enum
|
|
5
5
|
import inspect
|
|
6
|
-
from .
|
|
6
|
+
from .constants_src_mini_logger_and_logger import LogMessageSeverity, StartEndEnum
|
|
7
7
|
|
|
8
8
|
# TODO LOGGER_MINIMAL_SEVERITY_DEFAULT
|
|
9
|
-
LOGGER_MINIMUM_SEVERITY = os.getenv("LOGGER_MINIMUM_SEVERITY", "
|
|
10
|
-
# logging expects NOTSET/DEBUG/
|
|
9
|
+
LOGGER_MINIMUM_SEVERITY = os.getenv("LOGGER_MINIMUM_SEVERITY", "INFORMATION").upper()
|
|
10
|
+
# logging expects NOTSET/DEBUG/INFORMATION/WARNING/ERROR/FATAL/CRITICAL
|
|
11
11
|
if LOGGER_MINIMUM_SEVERITY.isdigit():
|
|
12
12
|
# TODO logger_minimal_severity_default_value
|
|
13
13
|
logger_minimum_severity = int(LOGGER_MINIMUM_SEVERITY)
|
|
14
14
|
# TODO Change Magic Numbers and use the values from Logger.MessageSeverity
|
|
15
15
|
if logger_minimum_severity < LogMessageSeverity.Start.value:
|
|
16
16
|
# TODO LOGGER_MINIMAL_SEVERITY_DEFAULT_NAME =
|
|
17
|
-
# TODO Change "DEBUG", "
|
|
17
|
+
# TODO Change "DEBUG", "INFORMATION", "WARNING" ... into enum values from Logger.LogMessageSeverity
|
|
18
18
|
LOGGER_MINIMUM_SEVERITY = LogMessageSeverity.DEBUG
|
|
19
19
|
elif logger_minimum_severity < LogMessageSeverity.WARNING.value:
|
|
20
|
-
LOGGER_MINIMUM_SEVERITY = LogMessageSeverity.
|
|
20
|
+
LOGGER_MINIMUM_SEVERITY = LogMessageSeverity.INFORMATION
|
|
21
21
|
elif logger_minimum_severity < LogMessageSeverity.ERROR.value:
|
|
22
22
|
LOGGER_MINIMUM_SEVERITY = LogMessageSeverity.WARNING
|
|
23
23
|
elif logger_minimum_severity < LogMessageSeverity.CRITICAL.value:
|
|
@@ -45,7 +45,11 @@ class MiniLogger:
|
|
|
45
45
|
log_message (str): The message to be printed.
|
|
46
46
|
"""
|
|
47
47
|
object = kwargs.get("object")
|
|
48
|
-
|
|
48
|
+
|
|
49
|
+
if level.name == "INFORMATION":
|
|
50
|
+
method_name = "info"
|
|
51
|
+
else:
|
|
52
|
+
method_name = level.name.lower()
|
|
49
53
|
method = getattr(logger, method_name)
|
|
50
54
|
if not start_or_end:
|
|
51
55
|
action_name = level.name
|
|
@@ -101,7 +105,7 @@ class MiniLogger:
|
|
|
101
105
|
Parameters:
|
|
102
106
|
log_message (str): The message to be printed.
|
|
103
107
|
"""
|
|
104
|
-
MiniLogger._log(LogMessageSeverity.
|
|
108
|
+
MiniLogger._log(LogMessageSeverity.INFORMATION, log_message=log_message, **kwargs)
|
|
105
109
|
|
|
106
110
|
@staticmethod
|
|
107
111
|
def warning(log_message: str = None, **kwargs):
|
{python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
@@ -8,7 +8,7 @@ python_sdk_remote.egg-info/requires.txt
|
|
|
8
8
|
python_sdk_remote.egg-info/top_level.txt
|
|
9
9
|
python_sdk_remote/src/__init__.py
|
|
10
10
|
python_sdk_remote/src/constants.py
|
|
11
|
-
python_sdk_remote/src/
|
|
11
|
+
python_sdk_remote/src/constants_src_mini_logger_and_logger.py
|
|
12
12
|
python_sdk_remote/src/http_response.py
|
|
13
13
|
python_sdk_remote/src/is_test_data.py
|
|
14
14
|
python_sdk_remote/src/item.py
|
|
@@ -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.153', # 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
|
{python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/http_response.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/is_test_data.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/unified_json.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote/src/valid_json_versions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.152 → python_sdk_remote-0.0.153}/python_sdk_remote.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|