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

@@ -30,7 +30,7 @@ class DeviceAuthorizer:
30
30
 
31
31
  def __init__(self, arthur_host: str, client_id=CLIENT_ID, verify_ssl: bool = True):
32
32
  self.arthur_host = arthur_host
33
- self.metadata = ArthurOIDCMetadata(arthur_host)
33
+ self.metadata = ArthurOIDCMetadata(arthur_host, verify_ssl)
34
34
  self.client_id = client_id
35
35
  self._oauth_sess = OAuth2Session(client_id=self.client_id, scope=OPENID_SCOPE)
36
36
  self._oauth_sess.session.verify = verify_ssl
@@ -4,8 +4,9 @@ import requests
4
4
 
5
5
 
6
6
  class ArthurOIDCMetadata:
7
- def __init__(self, arthur_host: str):
7
+ def __init__(self, arthur_host: str, verify_ssl: bool = True):
8
8
  self.arthur_host = ArthurOIDCMetadata.extract_host(arthur_host)
9
+ self.verify_ssl = verify_ssl
9
10
  self.metadata = None
10
11
 
11
12
  @staticmethod
@@ -22,7 +23,7 @@ class ArthurOIDCMetadata:
22
23
  )
23
24
 
24
25
  def _fetch_metadata(self) -> None:
25
- resp = requests.get(self._well_known_endpoint())
26
+ resp = requests.get(self._well_known_endpoint(), verify=self.verify_ssl)
26
27
  self.metadata = resp.json()
27
28
 
28
29
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arthur-client
3
- Version: 1.4.1507
3
+ Version: 1.4.1509
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=j6cMQEDhtokZqTOqWKocT-8HAgXXB4nqq_H1wspipdc,2676
988
- arthur_client/auth/discovery.py,sha256=hR0MglzRWHdwyi72If5hTnjO50fDJhquP_DD7OzjIQQ,1188
987
+ arthur_client/auth/device_authorizer.py,sha256=gVUYQA7F--lSorrW7lYibWK5Pnhuygh1VAz5zkaNr-o,2688
988
+ arthur_client/auth/discovery.py,sha256=M-ZJGVxn14lC3eZ6KVifTU6fiFLnq4kenVhp0pFZsnM,1274
989
989
  arthur_client/auth/oauth_api_config.py,sha256=K4UiyWm3ioBkARouNaXS5Iy8dI3YgkvSfORe-nyeKug,1418
990
990
  arthur_client/auth/session.py,sha256=b8AXauCkGn4H-gFzP8Y3cCIwuxGuygLQNB4tGi1Y8-4,2730
991
- arthur_client-1.4.1507.dist-info/METADATA,sha256=zKXVDiU8lURtDYVvAyDqvH9_yyOKWTAQngU1CDozkA8,1730
992
- arthur_client-1.4.1507.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
993
- arthur_client-1.4.1507.dist-info/RECORD,,
991
+ arthur_client-1.4.1509.dist-info/METADATA,sha256=t09YZcKkDy49qZTdxoUFNY3Vzmt9k8K_J4xpqaYWOv0,1730
992
+ arthur_client-1.4.1509.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
993
+ arthur_client-1.4.1509.dist-info/RECORD,,