python-sdk-remote 0.0.83__tar.gz → 0.0.85__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.83 → python-sdk-remote-0.0.85}/PKG-INFO +1 -1
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote/src/mini_logger.py +17 -14
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/setup.py +1 -1
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/README.md +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/pyproject.toml +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote/src/__init__.py +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote/src/constants.py +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote/src/item.py +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote/src/our_object.py +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote/src/unified_json.py +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote/src/utilities.py +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote/src/validate_environment.py +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/setup.cfg +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
import os
|
|
3
|
+
import sys
|
|
2
4
|
from datetime import datetime
|
|
3
|
-
import logging
|
|
4
5
|
|
|
5
6
|
LOGGER_MINIMUM_SEVERITY = os.getenv("LOGGER_MINIMUM_SEVERITY", "INFO").upper()
|
|
6
7
|
if LOGGER_MINIMUM_SEVERITY.isdigit():
|
|
@@ -15,7 +16,9 @@ if LOGGER_MINIMUM_SEVERITY.isdigit():
|
|
|
15
16
|
else:
|
|
16
17
|
LOGGER_MINIMUM_SEVERITY = "EXCEPTION"
|
|
17
18
|
|
|
18
|
-
logging.basicConfig(level=LOGGER_MINIMUM_SEVERITY
|
|
19
|
+
logging.basicConfig(level=LOGGER_MINIMUM_SEVERITY, stream=sys.stdout,
|
|
20
|
+
format="%(asctime)s - %(message)s")
|
|
21
|
+
logger = logging.getLogger(__name__)
|
|
19
22
|
|
|
20
23
|
|
|
21
24
|
class MiniLogger:
|
|
@@ -32,9 +35,9 @@ class MiniLogger:
|
|
|
32
35
|
object (dict): The object to be printed.
|
|
33
36
|
"""
|
|
34
37
|
if object is None:
|
|
35
|
-
|
|
38
|
+
logger.info(f"START - {message}")
|
|
36
39
|
else:
|
|
37
|
-
|
|
40
|
+
logger.info(f"START - {message} - {object}")
|
|
38
41
|
|
|
39
42
|
@staticmethod
|
|
40
43
|
def end(message: str = "", object: dict = None):
|
|
@@ -45,9 +48,9 @@ class MiniLogger:
|
|
|
45
48
|
message (str): The message to be printed.
|
|
46
49
|
"""
|
|
47
50
|
if object is None:
|
|
48
|
-
|
|
51
|
+
logger.info(f"END - {message}")
|
|
49
52
|
else:
|
|
50
|
-
|
|
53
|
+
logger.info(f"END - {message} - {object}")
|
|
51
54
|
|
|
52
55
|
@staticmethod
|
|
53
56
|
def info(message: str = "", object: dict = None):
|
|
@@ -59,9 +62,9 @@ class MiniLogger:
|
|
|
59
62
|
object (dict): The object to be printed.
|
|
60
63
|
"""
|
|
61
64
|
if object is None:
|
|
62
|
-
|
|
65
|
+
logger.info(f"INFO - {message}")
|
|
63
66
|
else:
|
|
64
|
-
|
|
67
|
+
logger.info(f"INFO {message} - {object}")
|
|
65
68
|
|
|
66
69
|
@staticmethod
|
|
67
70
|
def warning(message: str = "", object: dict = None):
|
|
@@ -73,9 +76,9 @@ class MiniLogger:
|
|
|
73
76
|
object (dict): The object to be printed.
|
|
74
77
|
"""
|
|
75
78
|
if object is None:
|
|
76
|
-
|
|
79
|
+
logger.warning(f"WARNING - {message}")
|
|
77
80
|
else:
|
|
78
|
-
|
|
81
|
+
logger.warning(f"WARNING {message} - {object}")
|
|
79
82
|
|
|
80
83
|
@staticmethod
|
|
81
84
|
def error(message: str = "", object: dict = None):
|
|
@@ -87,9 +90,9 @@ class MiniLogger:
|
|
|
87
90
|
object (dict): The object to be printed.
|
|
88
91
|
"""
|
|
89
92
|
if object is None:
|
|
90
|
-
|
|
93
|
+
logger.error(f"ERROR - {message}")
|
|
91
94
|
else:
|
|
92
|
-
|
|
95
|
+
logger.error(f"ERROR - {message} - {object}")
|
|
93
96
|
|
|
94
97
|
@staticmethod
|
|
95
98
|
def exception(message: str = "", object: Exception or dict = None):
|
|
@@ -108,6 +111,6 @@ class MiniLogger:
|
|
|
108
111
|
exception = None
|
|
109
112
|
|
|
110
113
|
if object is None:
|
|
111
|
-
|
|
114
|
+
logger.exception(f"EXCEPTION - {message}")
|
|
112
115
|
else:
|
|
113
|
-
|
|
116
|
+
logger.exception(f"EXCEPTION- {message} - {object}", exc_info=exception)
|
|
@@ -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.85', # https://pypi.org/project/python-sdk-remote/
|
|
11
11
|
author="Circles",
|
|
12
12
|
author_email="info@circles.life",
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote/src/valid_json_versions.py
RENAMED
|
File without changes
|
{python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote/src/validate_environment.py
RENAMED
|
File without changes
|
{python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
{python-sdk-remote-0.0.83 → python-sdk-remote-0.0.85}/python_sdk_remote.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|