python-sdk-remote 0.0.147__tar.gz → 0.0.149__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.147 → python_sdk_remote-0.0.149}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/constants.py +2 -2
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/utilities.py +6 -2
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/setup.py +1 -1
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/README.md +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/pyproject.toml +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/http_response.py +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/is_test_data.py +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/mini_logger.py +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/setup.cfg +0 -0
|
@@ -7,7 +7,7 @@ OBJECT_TO_INSERT_CODE = {
|
|
|
7
7
|
'component_id': PYTHON_SDK_REMOTE_COMPONENT_ID,
|
|
8
8
|
'component_name': PYTHON_SDK_REMOTE_COMPONENT_NAME,
|
|
9
9
|
'component_category': LoggerComponentEnum.ComponentCategory.Code.value,
|
|
10
|
-
'
|
|
10
|
+
'developer_email_address': 'sahar.g@circ.zone'
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
OBJECT_TO_INSERT_TEST = {
|
|
@@ -15,5 +15,5 @@ OBJECT_TO_INSERT_TEST = {
|
|
|
15
15
|
'component_name': PYTHON_SDK_REMOTE_COMPONENT_NAME,
|
|
16
16
|
'component_category': LoggerComponentEnum.ComponentCategory.Unit_Test.value,
|
|
17
17
|
'testing_framework': LoggerComponentEnum.testingFramework.pytest.value,
|
|
18
|
-
'
|
|
18
|
+
'developer_email_address': 'sahar.g@circ.zone'
|
|
19
19
|
}
|
|
@@ -296,6 +296,7 @@ def get_environment_name(raise_if_not_found: bool = True,
|
|
|
296
296
|
return environment_name
|
|
297
297
|
|
|
298
298
|
|
|
299
|
+
# TODO add optional_prefix optional parameter. First check with optional_prefix, if not found, check without it.
|
|
299
300
|
def our_get_env(key: str, default: str = None, raise_if_not_found: bool = True,
|
|
300
301
|
raise_if_empty: bool = False) -> str:
|
|
301
302
|
logger.start(object={"key": key, "default": default,
|
|
@@ -311,7 +312,8 @@ def our_get_env(key: str, default: str = None, raise_if_not_found: bool = True,
|
|
|
311
312
|
|
|
312
313
|
|
|
313
314
|
# TODO As only the database package uses those, let's move those three to the database package # noqa: E501
|
|
314
|
-
def get_sql_hostname(raise_if_not_found: bool = True,
|
|
315
|
+
def get_sql_hostname(raise_if_not_found: bool = True,
|
|
316
|
+
raise_if_empty: bool = False) -> str:
|
|
315
317
|
get_sql_hostname_result = our_get_env("RDS_HOSTNAME",
|
|
316
318
|
raise_if_empty=raise_if_empty)
|
|
317
319
|
return get_sql_hostname_result
|
|
@@ -456,8 +458,10 @@ def camel_to_snake(camel_str: str) -> str:
|
|
|
456
458
|
return snake_str
|
|
457
459
|
|
|
458
460
|
|
|
461
|
+
# We have both deprecation_warning as method in Logger and as a standalone function
|
|
462
|
+
# We can call the deprecation_warning_function from the logger
|
|
459
463
|
@lru_cache(maxsize=64) # don't print the same warning multiple times
|
|
460
|
-
def
|
|
464
|
+
def deprecation_warning_function(old_name: str, new_name: str, start_date: date = None) -> None:
|
|
461
465
|
if start_date and start_date < date.today():
|
|
462
466
|
return
|
|
463
467
|
warnings_message = f"Please use {old_name} instead of {new_name}."
|
|
@@ -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.149', # 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
|
{python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/http_response.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/is_test_data.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/mini_logger.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/unified_json.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote/src/valid_json_versions.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.147 → python_sdk_remote-0.0.149}/python_sdk_remote.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|