user-context-remote 0.0.64__tar.gz → 0.0.65__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: user-context-remote
3
- Version: 0.0.64
3
+ Version: 0.0.65
4
4
  Summary: PyPI Package for Circles User Context Local/Remote Python
5
5
  Home-page: https://github.com/circles/user-context-remote-python-package
6
6
  Author: Circles
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3
9
9
  Classifier: License :: Other/Proprietary License
10
10
  Classifier: Operating System :: OS Independent
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: language-local>=0.0.6
12
+ Requires-Dist: language-remote>=0.0.15
13
13
  Requires-Dist: url-remote>=0.0.15
14
14
  Requires-Dist: requests>=2.31.0
15
15
  Requires-Dist: python-sdk-remote>=0.0.44
@@ -5,7 +5,7 @@ package_dir = PACKAGE_NAME.replace("-", "_")
5
5
 
6
6
  setuptools.setup(
7
7
  name='user-context-remote',
8
- version='0.0.64', # https://pypi.org/project/user-context-remote/
8
+ version='0.0.65', # https://pypi.org/project/user-context-remote/
9
9
  author="Circles",
10
10
  author_email="info@circles.life",
11
11
  description="PyPI Package for Circles User Context Local/Remote Python",
@@ -21,7 +21,7 @@ setuptools.setup(
21
21
  "Operating System :: OS Independent",
22
22
  ],
23
23
  install_requires=[
24
- 'language-local>=0.0.6',
24
+ 'language-remote>=0.0.15',
25
25
  'url-remote>=0.0.15',
26
26
  'requests>=2.31.0',
27
27
  'python-sdk-remote>=0.0.44',
@@ -1,8 +1,6 @@
1
1
  import json
2
2
  from http import HTTPStatus
3
3
 
4
- # TODO Shall we use authentication-remote-python-package and not directly authentication-local-restapi-typescript?
5
-
6
4
  import requests
7
5
  from language_remote.lang_code import LangCode
8
6
  from python_sdk_remote.mini_logger import MiniLogger
@@ -10,6 +8,8 @@ from python_sdk_remote.utilities import our_get_env, create_return_http_headers
10
8
  from url_remote import action_name_enum, component_name_enum, entity_name_enum
11
9
  from url_remote.url_circlez import OurUrl
12
10
 
11
+ # TODO Shall we use authentication-remote-python-package and not directly authentication-local-restapi-typescript?
12
+
13
13
  BRAND_NAME = our_get_env("BRAND_NAME")
14
14
  ENVIORNMENT_NAME = our_get_env("ENVIRONMENT_NAME")
15
15
 
@@ -50,7 +50,7 @@ class UserContext:
50
50
  user_context = self._authenticate_by_user_identification_and_password(
51
51
  user_identifier=user_identifier, password=password)
52
52
  # Populate the private data members with data we received from Authentication Local REST-API https://github.com/circles-zone/authentication-local-restapi-typescript-serverless-com/edit/dev/auth-restapi-serverless-com/src/services/auth-service/auth-service-impl.ts
53
- #TODO shall we change the parameter name to user_context=user_context?
53
+ # TODO shall we change the parameter name to user_context=user_context?
54
54
  self.__get_user_data_login_response(validate_user_jwt_response=user_context)
55
55
 
56
56
  @staticmethod
@@ -216,14 +216,15 @@ class UserContext:
216
216
  " authentication_login_response_json.status_code != HTTPStatus.OK " + authentication_login_response_json.text)
217
217
  raise Exception(authentication_login_response_json.text)
218
218
  # Maybe there is no "data"
219
- MiniLogger.info("authentication_login_response_json.json()"+ str(authentication_login_response_json))
220
- MiniLogger.info("authentication_login_response_json.json() with json()"+ str(authentication_login_response_json.json()) )
221
- #TODO Put this in try/except as there might be no "data" or no "userJwt"
219
+ MiniLogger.info("authentication_login_response_json.json()" + str(authentication_login_response_json))
220
+ MiniLogger.info("authentication_login_response_json.json() with json()" + str(
221
+ authentication_login_response_json.json()))
222
+ # TODO Put this in try/except as there might be no "data" or no "userJwt"
222
223
  self.user_jwt = authentication_login_response_json.json()["data"]["userJwt"]
223
224
  MiniLogger.end(_AUTHENTICATE_BY_USER_IDENTIFICATION_AND_PASSWORD_METHOD_NAME, object={
224
225
  "user_jwt": self.user_jwt})
225
226
  return authentication_login_response_json
226
- #TODO Catch KeyError: 'data'
227
+ # TODO Catch KeyError: 'data'
227
228
  except Exception as exception:
228
229
  MiniLogger.exception(
229
230
  "Error(Exception): user-context-remote-python _authenticate() " + str(exception))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: user-context-remote
3
- Version: 0.0.64
3
+ Version: 0.0.65
4
4
  Summary: PyPI Package for Circles User Context Local/Remote Python
5
5
  Home-page: https://github.com/circles/user-context-remote-python-package
6
6
  Author: Circles
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3
9
9
  Classifier: License :: Other/Proprietary License
10
10
  Classifier: Operating System :: OS Independent
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: language-local>=0.0.6
12
+ Requires-Dist: language-remote>=0.0.15
13
13
  Requires-Dist: url-remote>=0.0.15
14
14
  Requires-Dist: requests>=2.31.0
15
15
  Requires-Dist: python-sdk-remote>=0.0.44
@@ -1,4 +1,4 @@
1
- language-local>=0.0.6
1
+ language-remote>=0.0.15
2
2
  url-remote>=0.0.15
3
3
  requests>=2.31.0
4
4
  python-sdk-remote>=0.0.44