python-sdk-remote 0.0.125__tar.gz → 0.0.126__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.125 → python_sdk_remote-0.0.126}/PKG-INFO +1 -1
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/constants.py +0 -9
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/http_response.py +6 -6
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/utilities.py +4 -2
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote.egg-info/PKG-INFO +1 -1
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/setup.py +1 -1
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/README.md +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/pyproject.toml +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/__init__.py +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/item.py +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/mini_logger.py +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/our_object.py +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/unified_json.py +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/valid_json_versions.py +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/validate_environment.py +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote.egg-info/SOURCES.txt +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote.egg-info/dependency_links.txt +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote.egg-info/requires.txt +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote.egg-info/top_level.txt +0 -0
- {python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/setup.cfg +0 -0
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import os
|
|
2
|
-
|
|
3
1
|
from logger_local.LoggerComponentEnum import LoggerComponentEnum
|
|
4
2
|
|
|
5
3
|
PYTHON_SDK_REMOTE_COMPONENT_ID = 184
|
|
6
4
|
PYTHON_SDK_REMOTE_COMPONENT_NAME = 'python_sdk_remote'
|
|
7
5
|
|
|
8
|
-
ENVIRONMENT_NAME = os.getenv("ENVIRONMENT_NAME")
|
|
9
|
-
BRAND_NAME = os.getenv("BRAND_NAME")
|
|
10
|
-
LOGZIO_TOKEN = os.getenv("LOGZIO_TOKEN")
|
|
11
|
-
# TODO Shall Can we use python-sdk function to get the value from Environment?
|
|
12
|
-
# TODO Shall we get the value from environment here of send the value to the function as @akiva-skolnik did?
|
|
13
|
-
GOOGLE_PORT_FOR_AUTHENTICATION = os.getenv("PORT_FOR_AUTHENTICATION")
|
|
14
|
-
|
|
15
6
|
OBJECT_TO_INSERT_CODE = {
|
|
16
7
|
'component_id': PYTHON_SDK_REMOTE_COMPONENT_ID,
|
|
17
8
|
'component_name': PYTHON_SDK_REMOTE_COMPONENT_NAME,
|
{python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/http_response.py
RENAMED
|
@@ -36,12 +36,12 @@ def get_request_parameters_from_event(event: dict) -> dict:
|
|
|
36
36
|
"""Extracts all params from the event object.
|
|
37
37
|
The order of precedence is: payload > path > query string
|
|
38
38
|
returns a dictionary with all the parameters, with both camelCase and snake_case keys."""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return
|
|
39
|
+
all_parameters_dict = get_payload_dict_from_event(event)
|
|
40
|
+
all_parameters_dict.update(get_path_parameters_dict_from_event(event))
|
|
41
|
+
all_parameters_dict.update(get_query_string_parameters_from_event(event))
|
|
42
|
+
all_parameters_dict = {camel_to_snake(key): value for key, value in all_parameters_dict.items()}
|
|
43
|
+
all_parameters_dict.update({snake_to_camel(key): value for key, value in all_parameters_dict.items()})
|
|
44
|
+
return all_parameters_dict
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
# TODO: test
|
|
@@ -430,10 +430,12 @@ def camel_to_snake(camel_str: str) -> str:
|
|
|
430
430
|
|
|
431
431
|
|
|
432
432
|
@lru_cache(maxsize=64) # don't print the same warning multiple times
|
|
433
|
-
def deprecation_warning(old_name: str, new_name: str):
|
|
433
|
+
def deprecation_warning(old_name: str, new_name: str, start_date: date = None) -> None:
|
|
434
|
+
if start_date and start_date < date.today():
|
|
435
|
+
return
|
|
434
436
|
warnings_message = f"Please use {old_name} instead of {new_name}."
|
|
435
437
|
try:
|
|
436
|
-
warnings_message += " Called from: " + inspect.stack()[
|
|
438
|
+
warnings_message += " Called from: " + inspect.stack()[2].filename
|
|
437
439
|
except Exception:
|
|
438
440
|
pass
|
|
439
441
|
logger.warning(warnings_message)
|
|
@@ -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.126', # 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.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/mini_logger.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/unified_json.py
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote/src/valid_json_versions.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote.egg-info/requires.txt
RENAMED
|
File without changes
|
{python_sdk_remote-0.0.125 → python_sdk_remote-0.0.126}/python_sdk_remote.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|