arthur-client 1.4.1503__py3-none-any.whl → 1.4.1505__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.

Potentially problematic release.


This version of arthur-client might be problematic. Click here for more details.

@@ -28,11 +28,12 @@ class DeviceAuthorizer:
28
28
  This class implements the OAuth2 Device Authorization Flow to generate a Session object with the Arthur API.
29
29
  """
30
30
 
31
- def __init__(self, arthur_host: str, client_id=CLIENT_ID):
31
+ def __init__(self, arthur_host: str, client_id=CLIENT_ID, verify_ssl: bool = True):
32
32
  self.arthur_host = arthur_host
33
33
  self.metadata = ArthurOIDCMetadata(arthur_host)
34
34
  self.client_id = client_id
35
35
  self._oauth_sess = OAuth2Session(client_id=self.client_id, scope=OPENID_SCOPE)
36
+ self._oauth_sess.session.verify = verify_ssl
36
37
  self._browser_open_f = webbrowser.open
37
38
 
38
39
  def authorize(self) -> ArthurAPISession:
@@ -19,6 +19,7 @@ class ArthurOAuthSessionAPIConfiguration(Configuration):
19
19
  self,
20
20
  session: ArthurAPISession,
21
21
  leeway_seconds: int = 30,
22
+ verify_ssl: bool = True,
22
23
  *args: Any,
23
24
  **kwargs: Any,
24
25
  ) -> None:
@@ -26,6 +27,7 @@ class ArthurOAuthSessionAPIConfiguration(Configuration):
26
27
  super().__init__(*args, host=host, **kwargs)
27
28
  self.session = session
28
29
  self.leeway_seconds = leeway_seconds
30
+ self.verify_ssl = verify_ssl
29
31
  self.logger = logging.getLogger(__name__)
30
32
 
31
33
  @property
@@ -60,6 +60,7 @@ class ArthurClientCredentialsAPISession(ArthurAPISession):
60
60
  client_id: str,
61
61
  client_secret: str,
62
62
  metadata: ArthurOIDCMetadata,
63
+ verify: bool = True,
63
64
  ):
64
65
  self.client_id = client_id
65
66
  self.client_secret = client_secret
@@ -68,6 +69,7 @@ class ArthurClientCredentialsAPISession(ArthurAPISession):
68
69
  client_secret=self.client_secret,
69
70
  scope=OPENID_SCOPE,
70
71
  )
72
+ self._oauth_session.session.verify = verify
71
73
  self._metadata = metadata
72
74
  self._lock = threading.Lock()
73
75
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arthur-client
3
- Version: 1.4.1503
3
+ Version: 1.4.1505
4
4
  Summary: Arthur Python API Client Library
5
5
  License: MIT
6
6
  Keywords: api arthur client ArthurAI sdk ml model monitoring
@@ -984,10 +984,10 @@ arthur_client/api_bindings/test/test_workspaces_v1_api.py,sha256=z9bGcDGQyv_iSR3
984
984
  arthur_client/api_bindings_README.md,sha256=8WAXmSdc6VF7FtCfEdFyiEB7H-Q35j3k8MF1D5uAVLw,54804
985
985
  arthur_client/auth/__init__.py,sha256=f4XqpGe9d1V0xlocq2JlNtd8l_GUoUOy6_1yTMCBsc0,210
986
986
  arthur_client/auth/constants.py,sha256=lIEdf1UujvAZhueQ8WZGjd3ErcJlCmrXRxjRhTRNb18,38
987
- arthur_client/auth/device_authorizer.py,sha256=bJMIZRjkwQwoSWTLEp7OoXM2MytO3ADSD97Qlc1accA,2598
987
+ arthur_client/auth/device_authorizer.py,sha256=j6cMQEDhtokZqTOqWKocT-8HAgXXB4nqq_H1wspipdc,2676
988
988
  arthur_client/auth/discovery.py,sha256=hR0MglzRWHdwyi72If5hTnjO50fDJhquP_DD7OzjIQQ,1188
989
- arthur_client/auth/oauth_api_config.py,sha256=MB-bwm6Qo_USZD_4KVId6d_v5OtLBphwBjMjslVjTlo,1348
990
- arthur_client/auth/session.py,sha256=wCriib5ajfm1e1WTL_QXVCJmEOrGwQg_0v91e5qrC6g,2649
991
- arthur_client-1.4.1503.dist-info/METADATA,sha256=ryEyhNLuNx-9PMxLkWPJgBgtC09h0k2_AYKRJOee34E,1730
992
- arthur_client-1.4.1503.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
993
- arthur_client-1.4.1503.dist-info/RECORD,,
989
+ arthur_client/auth/oauth_api_config.py,sha256=K4UiyWm3ioBkARouNaXS5Iy8dI3YgkvSfORe-nyeKug,1418
990
+ arthur_client/auth/session.py,sha256=b8AXauCkGn4H-gFzP8Y3cCIwuxGuygLQNB4tGi1Y8-4,2730
991
+ arthur_client-1.4.1505.dist-info/METADATA,sha256=zqKB8Jwu8utzvCtszXP1hYd41WHyKNGQbepqQwzMuHg,1730
992
+ arthur_client-1.4.1505.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
993
+ arthur_client-1.4.1505.dist-info/RECORD,,