autonomize-core 0.1.7__tar.gz → 0.1.9__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.
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/PKG-INFO +1 -1
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/core/base_client.py +2 -11
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/core/credential.py +2 -1
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/pyproject.toml +1 -1
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/LICENSE +0 -0
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/README.md +0 -0
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/__init__.py +0 -0
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/core/__init__.py +0 -0
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/exceptions/__init__.py +0 -0
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/exceptions/core/__init__.py +0 -0
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/exceptions/core/credentials.py +0 -0
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/py.typed +0 -0
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/types/__init__.py +0 -0
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/types/core/__init__.py +0 -0
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/types/core/base_client.py +0 -0
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/utils/__init__.py +0 -0
- {autonomize_core-0.1.7 → autonomize_core-0.1.9}/autonomize/utils/logger.py +0 -0
@@ -71,7 +71,8 @@ class BaseClient:
|
|
71
71
|
if isinstance(self.verify_ssl, str):
|
72
72
|
if os.path.isdir(self.verify_ssl):
|
73
73
|
self.verify_ssl = ssl.create_default_context(capath=self.verify_ssl)
|
74
|
-
|
74
|
+
else:
|
75
|
+
self.verify_ssl = ssl.create_default_context(cafile=self.verify_ssl) # type: ignore[arg-type]
|
75
76
|
|
76
77
|
# Create HTTP clients with retry configured
|
77
78
|
self.client = self._setup_client()
|
@@ -124,12 +125,7 @@ class BaseClient:
|
|
124
125
|
Returns:
|
125
126
|
httpx.Client: Configured client object.
|
126
127
|
"""
|
127
|
-
transport = httpx.HTTPTransport(
|
128
|
-
retries=3, # Total number of retries
|
129
|
-
)
|
130
|
-
|
131
128
|
return httpx.Client(
|
132
|
-
transport=transport,
|
133
129
|
timeout=self.timeout,
|
134
130
|
follow_redirects=True,
|
135
131
|
verify=self.verify_ssl,
|
@@ -142,12 +138,7 @@ class BaseClient:
|
|
142
138
|
Returns:
|
143
139
|
httpx.AsyncClient: Configured async client object.
|
144
140
|
"""
|
145
|
-
transport = httpx.AsyncHTTPTransport(
|
146
|
-
retries=3, # Total number of retries
|
147
|
-
)
|
148
|
-
|
149
141
|
return httpx.AsyncClient(
|
150
|
-
transport=transport,
|
151
142
|
timeout=self.timeout,
|
152
143
|
follow_redirects=True,
|
153
144
|
verify=self.verify_ssl,
|
@@ -106,7 +106,8 @@ class ModelhubCredential:
|
|
106
106
|
if isinstance(self.verify_ssl, str):
|
107
107
|
if os.path.isdir(self.verify_ssl):
|
108
108
|
self.verify_ssl = ssl.create_default_context(capath=self.verify_ssl)
|
109
|
-
|
109
|
+
else:
|
110
|
+
self.verify_ssl = ssl.create_default_context(cafile=self.verify_ssl) # type: ignore[arg-type]
|
110
111
|
|
111
112
|
# Validate credentials
|
112
113
|
if self._client_id is None or self._client_secret is None:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|