python-sdk-remote 0.0.114__tar.gz → 0.0.115__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.114 → python_sdk_remote-0.0.115}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/utilities.py +7 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/setup.py +1 -1
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/README.md +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/pyproject.toml +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/constants.py +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/http_response.py +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/mini_logger.py +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/setup.cfg +0 -0
|
@@ -17,6 +17,9 @@ from .http_response import (create_authorization_http_headers, # noqa - used fo
|
|
|
17
17
|
create_http_body)
|
|
18
18
|
|
|
19
19
|
load_dotenv()
|
|
20
|
+
override = True if os.getenv("override", "").lower() in ("t", "true", "0") else False
|
|
21
|
+
load_dotenv(dotenv_path=os.environ.get("DOTENV_PATH"), override=override) # add another .env file if needed
|
|
22
|
+
|
|
20
23
|
# raise Exception("Failed to load environment variables from .env file\n"
|
|
21
24
|
# "Please check if the file exists, maybe you are not in the right venv?")
|
|
22
25
|
|
|
@@ -24,6 +27,8 @@ load_dotenv()
|
|
|
24
27
|
|
|
25
28
|
# TODO Use the const/enum from language package
|
|
26
29
|
DEFAULT_LANG_CODE_STR = "en"
|
|
30
|
+
# TODO If no one is using DEFAULT_DATETIME_FORMAT, let's comment it
|
|
31
|
+
# TODO Lets split DEFAULT_DATETIME_FORMAT into two const 1. Displayable to Humans (MMM) 2. Internal (sortable) with %m
|
|
27
32
|
DEFAULT_DATETIME_FORMAT = "%Y-%m-%d %H:%M:%S"
|
|
28
33
|
|
|
29
34
|
|
|
@@ -346,6 +351,7 @@ def obfuscate_log_dict(log_dict: dict) -> dict:
|
|
|
346
351
|
if isinstance(value, dict):
|
|
347
352
|
obfuscated_log_dict[key] = obfuscate_log_dict(value)
|
|
348
353
|
elif re.search(r'password|secret|token|jwt|e[\-_]?mail|phone|name|address|ssn', key, re.IGNORECASE):
|
|
354
|
+
# TODO Maybe we can reveal a small part
|
|
349
355
|
obfuscated_log_dict[key] = "***"
|
|
350
356
|
else:
|
|
351
357
|
obfuscated_log_dict[key] = value
|
|
@@ -395,6 +401,7 @@ def reformat_time_string(input_str: str) -> str:
|
|
|
395
401
|
minutes = "00" if len(input_str) < 4 else input_str[2:4]
|
|
396
402
|
seconds = "00" if len(input_str) < 6 else input_str[4:6]
|
|
397
403
|
milliseconds = "00" if len(input_str) < 8 else input_str[6:8]
|
|
404
|
+
# TODO Shall we use DEFAULT_DATETIME_FORMAT and have the formats in central
|
|
398
405
|
time_format = f"{hours}:{minutes}:{seconds}:{milliseconds}"
|
|
399
406
|
return time_format
|
|
400
407
|
|
|
@@ -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.115', # 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.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/http_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/mini_logger.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/unified_json.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote/src/valid_json_versions.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.114 → python_sdk_remote-0.0.115}/python_sdk_remote.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|