python-sdk-local 0.0.126__tar.gz → 0.0.127__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.
Files changed (20) hide show
  1. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/PKG-INFO +1 -1
  2. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_local.egg-info/PKG-INFO +1 -1
  3. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_remote/src/constants.py +0 -9
  4. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_remote/src/http_response.py +6 -6
  5. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_remote/src/utilities.py +1 -1
  6. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/setup.py +1 -1
  7. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/README.md +0 -0
  8. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/pyproject.toml +0 -0
  9. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_local.egg-info/SOURCES.txt +0 -0
  10. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_local.egg-info/dependency_links.txt +0 -0
  11. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_local.egg-info/requires.txt +0 -0
  12. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_local.egg-info/top_level.txt +0 -0
  13. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_remote/src/__init__.py +0 -0
  14. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_remote/src/item.py +0 -0
  15. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_remote/src/mini_logger.py +0 -0
  16. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_remote/src/our_object.py +0 -0
  17. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_remote/src/unified_json.py +0 -0
  18. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_remote/src/valid_json_versions.py +0 -0
  19. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/python_sdk_remote/src/validate_environment.py +0 -0
  20. {python_sdk_local-0.0.126 → python_sdk_local-0.0.127}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-sdk-local
3
- Version: 0.0.126
3
+ Version: 0.0.127
4
4
  Summary: PyPI Package for Circles Python SDK Local Python
5
5
  Home-page: https://github.com/circles-zone/python-sdk-remote-python-package
6
6
  Author: Circles
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-sdk-local
3
- Version: 0.0.126
3
+ Version: 0.0.127
4
4
  Summary: PyPI Package for Circles Python SDK Local Python
5
5
  Home-page: https://github.com/circles-zone/python-sdk-remote-python-package
6
6
  Author: Circles
@@ -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,
@@ -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
- all_params = get_payload_dict_from_event(event)
40
- all_params.update(get_path_parameters_dict_from_event(event))
41
- all_params.update(get_query_string_parameters_from_event(event))
42
- all_params = {camel_to_snake(key): value for key, value in all_params.items()}
43
- all_params.update({snake_to_camel(key): value for key, value in all_params.items()})
44
- return all_params
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
@@ -435,7 +435,7 @@ def deprecation_warning(old_name: str, new_name: str, start_date: date = None) -
435
435
  return
436
436
  warnings_message = f"Please use {old_name} instead of {new_name}."
437
437
  try:
438
- warnings_message += " Called from: " + inspect.stack()[1].filename
438
+ warnings_message += " Called from: " + inspect.stack()[2].filename
439
439
  except Exception:
440
440
  pass
441
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="python-sdk-local", # TODO PACKAGE_NAME
10
- version='0.0.126', # https://pypi.org/project/python-sdk-remote/
10
+ version='0.0.127', # 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",