arcane-clients 1.5.0__py3-none-any.whl → 1.5.7__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.
arcane/clients.py CHANGED
@@ -12,8 +12,8 @@ def get_client(
12
12
  CLIENTS_URL: str,
13
13
  firebase_api_key: str,
14
14
  auth_enabled=True,
15
- credentials_path: str = None,
16
- uid: str = None
15
+ credentials_path: Optional[str] = None,
16
+ uid: Optional[str] = None
17
17
  ):
18
18
  url = f"{CLIENTS_URL}/api/clients?client_id={client_id}"
19
19
  client_list = call_get_route(
@@ -32,8 +32,8 @@ def get_client_old(
32
32
  CLIENTS_URL: str,
33
33
  firebase_api_key: str,
34
34
  auth_enabled=True,
35
- credentials_path: str = None,
36
- uid: str = None
35
+ credentials_path: Optional[str] = None,
36
+ uid: Optional[str] = None
37
37
  ):
38
38
  url = f"{CLIENTS_URL}/api/clients/old?client_id={client_id}"
39
39
  old_client_list = call_get_route(
@@ -53,8 +53,8 @@ def get_user(
53
53
  user_id: Optional[str] = None,
54
54
  user_email: Optional[str] = None,
55
55
  auth_enabled=True,
56
- credentials_path: str = None,
57
- uid: str = None
56
+ credentials_path: Optional[str] = None,
57
+ uid: Optional[str] = None
58
58
  ):
59
59
  if None not in set((user_id, user_email)):
60
60
  raise ValueError(
@@ -69,7 +69,7 @@ def get_user(
69
69
  retry_decorator=backoff.on_exception(
70
70
  backoff.expo,
71
71
  (ConnectionError, requests.HTTPError, requests.Timeout),
72
- 3
72
+ max_tries=3,
73
73
  ),
74
74
  credentials_path=credentials_path)
75
75
  response.raise_for_status()
@@ -82,8 +82,8 @@ def get_user_list_by_client_id(
82
82
  UTILS_SERVICES_URL: str,
83
83
  firebase_api_key: str,
84
84
  auth_enabled=True,
85
- credentials_path: str = None,
86
- uid: str = None
85
+ credentials_path: Optional[str] = None,
86
+ uid: Optional[str] = None
87
87
  ):
88
88
  """ get list of users by client right """
89
89
  url = f"{UTILS_SERVICES_URL}/api/users"
@@ -113,12 +113,11 @@ def get_user_list_by_client_id(
113
113
 
114
114
  def get_scope_content(
115
115
  scope_definition_id: Union[int, str],
116
- client_id: str,
117
116
  CLIENTS_URL: str,
118
117
  firebase_api_key: str,
119
118
  auth_enabled=True,
120
- credentials_path: str = None,
121
- uid: str = None
119
+ credentials_path: Optional[str] = None,
120
+ uid: Optional[str] = None
122
121
  ) -> List[Account]:
123
122
  if scope_definition_id is not None:
124
123
  url = f"{CLIENTS_URL}/api/scopes/{scope_definition_id}"
@@ -144,13 +143,11 @@ def get_scope_content(
144
143
 
145
144
  def get_recipients_from_scope(
146
145
  scope_definition_id: Union[int, str],
147
- client_id: str,
148
146
  CLIENTS_URL: str,
149
- UTILS_SERVICES_URL: str,
150
147
  firebase_api_key: str,
151
148
  auth_enabled=True,
152
- credentials_path: str = None,
153
- uid: str = None
149
+ credentials_path: Optional[str] = None,
150
+ uid: Optional[str] = None
154
151
  ) -> List[str]:
155
152
  url = f"{CLIENTS_URL}/api/scopes?scope_id={scope_definition_id}"
156
153
  scope = call_get_route(
@@ -171,8 +168,8 @@ def get_name_from_scope(
171
168
  CLIENTS_URL: str,
172
169
  firebase_api_key: str,
173
170
  auth_enabled=True,
174
- credentials_path: str = None,
175
- uid: str = None
171
+ credentials_path: Optional[str] = None,
172
+ uid: Optional[str] = None
176
173
  ) -> str:
177
174
  url = f"{CLIENTS_URL}/api/scopes?scope_id={scope_definition_id}"
178
175
  scope = call_get_route(
@@ -1,19 +1,23 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: arcane-clients
3
- Version: 1.5.0
3
+ Version: 1.5.7
4
4
  Summary: Utility functions to interact with our clients_service
5
5
  Author: Arcane
6
- Author-email: product@arcane.run
6
+ Author-email: product@wearcane.com
7
7
  Requires-Python: >=3.6,<4.0
8
8
  Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.10
10
9
  Classifier: Programming Language :: Python :: 3.6
11
10
  Classifier: Programming Language :: Python :: 3.7
12
11
  Classifier: Programming Language :: Python :: 3.8
13
12
  Classifier: Programming Language :: Python :: 3.9
14
- Requires-Dist: arcane-core (>=1.6.0,<2.0.0)
15
- Requires-Dist: arcane-requests (>=0.3.0,<0.4.0)
16
- Requires-Dist: backoff (>=1.10.0,<2.0.0)
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Requires-Dist: arcane-core (>=1.6,<2.0)
19
+ Requires-Dist: arcane-requests (>=1,<2)
20
+ Requires-Dist: backoff (>=1.10.0)
17
21
  Requires-Dist: requests (>=2.23.0,<3.0.0)
18
22
  Description-Content-Type: text/markdown
19
23
 
@@ -0,0 +1,4 @@
1
+ arcane/clients.py,sha256=_TVdWrsJQSk20Ddk9G9NJBjYbSJMIU_e0zT1nsk5TL4,6068
2
+ arcane_clients-1.5.7.dist-info/METADATA,sha256=9kG55nGeGjKJ_0JiT0g8hzMVPBqpkf-vp49WzkyQQQg,972
3
+ arcane_clients-1.5.7.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
4
+ arcane_clients-1.5.7.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry 1.0.8
2
+ Generator: poetry-core 2.3.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,4 +0,0 @@
1
- arcane/clients.py,sha256=1M-d9WDYoreyU1YQB1Vi9i5Ymvhym5PoatYmz5qYfaA,5986
2
- arcane_clients-1.5.0.dist-info/WHEEL,sha256=DA86_h4QwwzGeRoz62o1svYt5kGEXpoUTuTtwzoTb30,83
3
- arcane_clients-1.5.0.dist-info/METADATA,sha256=B8nqWRBMx9_sTuxXFsNOjW7qb7n-rezu8JrMTP_WLBA,785
4
- arcane_clients-1.5.0.dist-info/RECORD,,