python-sdk-remote 0.0.170__tar.gz → 0.0.172__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.170 → python_sdk_remote-0.0.172}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/mini_logger.py +9 -2
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/setup.py +2 -2
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/README.md +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/pyproject.toml +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/constants_src_mini_logger_and_logger.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/datetime_range.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/exceptions.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/generic_crud.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/http_response.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/is_test_data.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_obfuscation.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_objects.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_objects_local.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_objects_remote.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_request.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_request_old.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/utilities.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/version.py +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/setup.cfg +0 -0
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/mini_logger.py
RENAMED
|
@@ -144,14 +144,21 @@ class MiniLogger:
|
|
|
144
144
|
MiniLogger._log(LogMessageSeverity.ERROR, log_message=log_message, **kwargs)
|
|
145
145
|
|
|
146
146
|
@staticmethod
|
|
147
|
-
def exception(log_message: Optional[str] = None, **kwargs):
|
|
147
|
+
def exception(log_message: Optional[str] = None, object=None, **kwargs):
|
|
148
148
|
"""
|
|
149
149
|
Print a log error message with the current time.
|
|
150
150
|
|
|
151
151
|
Parameters:
|
|
152
152
|
log_message (str): The message to be printed.
|
|
153
|
+
object: the caught exception, or a dict carrying it under "exception".
|
|
154
|
+
It is a named parameter and not kwargs-only because logger-local
|
|
155
|
+
passes it POSITIONALLY at 5 call sites, e.g. logger_local.py:486
|
|
156
|
+
`MiniLogger.exception("Error while trying to login ...", exception)`.
|
|
157
|
+
Those calls used to land on the erroneous `self` parameter removed
|
|
158
|
+
below; dropping `self` without naming this one turned every one of
|
|
159
|
+
them into `TypeError: exception() takes from 0 to 1 positional
|
|
160
|
+
arguments but 2 were given`.
|
|
153
161
|
"""
|
|
154
|
-
object = kwargs.get("object")
|
|
155
162
|
exception: Optional[Exception]
|
|
156
163
|
if isinstance(object, Exception):
|
|
157
164
|
exception = object
|
|
@@ -3,11 +3,11 @@ import setuptools
|
|
|
3
3
|
PACKAGE_NAME = "python-sdk-remote"
|
|
4
4
|
package_dir = PACKAGE_NAME.replace("-", "_")
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# Used by python -m build.
|
|
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.172', # https://pypi.org/project/python-sdk-remote#history
|
|
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.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/datetime_range.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/generic_crud.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/http_response.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/is_test_data.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_obfuscation.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_objects.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_objects_local.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_objects_remote.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_request.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/our_request_old.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/unified_json.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote/src/valid_json_versions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.170 → python_sdk_remote-0.0.172}/python_sdk_remote.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|