python-sdk-remote 0.0.126__py3-none-any.whl → 0.0.128__py3-none-any.whl

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.
@@ -77,6 +77,7 @@ def handler_decorator(logger):
77
77
  # TODO: should we auto detect user_jwt if not provided?
78
78
  def create_authorization_http_headers(user_jwt: str) -> dict:
79
79
  logger.start(object={"user_jwt": user_jwt})
80
+ #TODO check the validity of user_jwt and it is not None and raise exception, please do the same in all other functions.
80
81
  authorization_http_headers = {
81
82
  'Content-Type': 'application/json',
82
83
  'Authorization': AUTHORIZATION_PREFIX + user_jwt,
@@ -97,6 +98,8 @@ def get_user_jwt_from_event(event: dict) -> str:
97
98
 
98
99
  def create_return_http_headers() -> dict:
99
100
  logger.start()
101
+ # Adding "Access-Control-Allow-Origin" : "*" to take care of CORS from localhost
102
+ # TODO Do we need to add those? In which cases? try adding crossDomain: true, to the request, 'Access-Control-Allow-Credentials': true to header
100
103
  return_http_headers = {
101
104
  "Content-Type": "application/json",
102
105
  "Access-Control-Allow-Origin": "*",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-sdk-remote
3
- Version: 0.0.126
3
+ Version: 0.0.128
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
  python_sdk_remote/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  python_sdk_remote/constants.py,sha256=0bg3t_4wzZLWFapseENer7qSx3NvniEF5n0H8AZ2G38,751
3
- python_sdk_remote/http_response.py,sha256=U-my8Gr4P9xHtcvazpBbEWuPAn-NNmrIJzF47o69JLI,5638
3
+ python_sdk_remote/http_response.py,sha256=4hrSo9_ns7F-sOsSt9-1U5XeonJWh9eWj9q9XtsC8pc,5997
4
4
  python_sdk_remote/item.py,sha256=HnSLHkZTKTLNhlaZoPhKAwqG-yHPsd7zvqPPOqnrKVg,287
5
5
  python_sdk_remote/mini_logger.py,sha256=E6OUZ39uBkPN_cjemO6hfJcRcYtP1xh1ZwaCFyZYsXA,4132
6
6
  python_sdk_remote/our_object.py,sha256=ASD_Pfk1mIqAuHDAsfsWpIhwhRvSwhhwSWRHZcfrGgU,2101
@@ -8,7 +8,7 @@ python_sdk_remote/unified_json.py,sha256=tLkikIVpFAtpioYwtovkGX8-3U9YElGWe4Ph34q
8
8
  python_sdk_remote/utilities.py,sha256=O02QqYqN-s3AZ3OC3-oYHOljZQgEA32Kcl-YzBs02DA,15100
9
9
  python_sdk_remote/valid_json_versions.py,sha256=-ZU65JYI6gTEfK8o6gu9Dmm9SQmwzj5pDbEXiyUbBhQ,138
10
10
  python_sdk_remote/validate_environment.py,sha256=nzCHZDw56G56ekrTQT3gG48utjsU4VCwQi9dVsBDas0,2268
11
- python_sdk_remote-0.0.126.dist-info/METADATA,sha256=DJzKNJr6b3FZheE4IYy15sNpTFu0hH9_Lli3DRM0i30,606
12
- python_sdk_remote-0.0.126.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
13
- python_sdk_remote-0.0.126.dist-info/top_level.txt,sha256=JTpEq_svPlI5hTlPq30Ne-NkR-u5464gjVDP2U74PvE,18
14
- python_sdk_remote-0.0.126.dist-info/RECORD,,
11
+ python_sdk_remote-0.0.128.dist-info/METADATA,sha256=QdXMNVQBjhy0I3-TjAbaUD3ciwQ28BPHPKpMibnRRe4,606
12
+ python_sdk_remote-0.0.128.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
13
+ python_sdk_remote-0.0.128.dist-info/top_level.txt,sha256=JTpEq_svPlI5hTlPq30Ne-NkR-u5464gjVDP2U74PvE,18
14
+ python_sdk_remote-0.0.128.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.1.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5