autonomize-core 0.1.8__py3-none-any.whl → 0.1.10__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.
@@ -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
- self.verify_ssl = ssl.create_default_context(cafile=self.verify_ssl) # type: ignore[arg-type]
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,13 +125,7 @@ class BaseClient:
124
125
  Returns:
125
126
  httpx.Client: Configured client object.
126
127
  """
127
- transport = httpx.HTTPTransport(
128
- verify=self.verify_ssl, #patch done for molina ssl issue
129
- retries=3, # Total number of retries
130
- )
131
-
132
128
  return httpx.Client(
133
- transport=transport,
134
129
  timeout=self.timeout,
135
130
  follow_redirects=True,
136
131
  verify=self.verify_ssl,
@@ -143,12 +138,7 @@ class BaseClient:
143
138
  Returns:
144
139
  httpx.AsyncClient: Configured async client object.
145
140
  """
146
- transport = httpx.AsyncHTTPTransport(
147
- retries=3, # Total number of retries
148
- )
149
-
150
141
  return httpx.AsyncClient(
151
- transport=transport,
152
142
  timeout=self.timeout,
153
143
  follow_redirects=True,
154
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
- self.verify_ssl = ssl.create_default_context(cafile=self.verify_ssl) # type: ignore[arg-type]
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: autonomize-core
3
- Version: 0.1.8
3
+ Version: 0.1.10
4
4
  Summary: Autonomize Core contains the unified authentication source to access platform.
5
5
  License: Proprietary
6
6
  Author: Varun Prakash
@@ -92,26 +92,30 @@ cred = ModelhubCredential(
92
92
  token = await cred.aget_token()
93
93
  ```
94
94
 
95
- ## Contribution
96
-
97
- To contribute in our Autonomize Core SDK, please refer to our [Contribution Guidelines](CONTRIBUTING.md).
98
-
99
- ## License
100
- Copyright (C) Autonomize AI - All Rights Reserved
101
-
102
- The contents of this repository cannot be copied and/or distributed without the explicit permission from Autonomize.ai
103
-
104
- # New preferred environment variables:
95
+ ## New preferred environment variables:
96
+ ```
105
97
  MODELHUB_URI=https://your-modelhub.com
106
98
  MODELHUB_AUTH_CLIENT_ID=your_client_id
107
99
  MODELHUB_AUTH_CLIENT_SECRET=your_secret
108
100
  GENESIS_CLIENT_ID=your_genesis_client
109
101
  GENESIS_COPILOT_ID=your_copilot
102
+ ```
110
103
 
111
- # Old environment variables (still work for backward compatibility):
104
+ ## Old environment variables (still work for backward compatibility):
105
+ ```
112
106
  MODELHUB_BASE_URL=https://your-modelhub.com
113
107
  MODELHUB_CLIENT_ID=your_client_id
114
108
  MODELHUB_CLIENT_SECRET=your_secret
115
109
  CLIENT_ID=your_client
116
110
  COPILOT_ID=your_copilot
111
+ ```
112
+
113
+ ## Contribution
114
+
115
+ To contribute in our Autonomize Core SDK, please refer to our [Contribution Guidelines](CONTRIBUTING.md).
116
+
117
+ ## License
118
+ Copyright (C) Autonomize AI - All Rights Reserved
119
+
120
+ The contents of this repository cannot be copied and/or distributed without the explicit permission from Autonomize.ai
117
121
 
@@ -1,7 +1,7 @@
1
1
  autonomize/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  autonomize/core/__init__.py,sha256=Bc5MrXUgBLjByMP-iW1yCsFgQyNPgKxCvAKjogfdHgY,444
3
- autonomize/core/base_client.py,sha256=0m1u1_32y2qDxS_Abg0jWpbZdCGPlT5bDx8Uf_fz7L0,18012
4
- autonomize/core/credential.py,sha256=xnR5d3szi_TFb9rut_6xo69EIFj-6vNnUQO4tOskN6c,10742
3
+ autonomize/core/base_client.py,sha256=WaF5HudSQrGf1bxeZCosJ9SN1qmbdSUVwKEg12d8KB4,17688
4
+ autonomize/core/credential.py,sha256=VVe3Ei2JtZkk5OiTuVXC-pJqyChO4ccbCiaQLYH54zQ,10764
5
5
  autonomize/exceptions/__init__.py,sha256=LS0jVRjHWYuIeFuSi7SNg5dwHmH9U3kvFWByiYSV7Hw,401
6
6
  autonomize/exceptions/core/__init__.py,sha256=5flhl7JoAxV-3ofkWxpW7Am0mrdZDB3RfmAKv5XhuXc,408
7
7
  autonomize/exceptions/core/credentials.py,sha256=2kPp10ktbZFnZEaEL8jU2a-BECwkZzPpS8d56fx6g_0,1451
@@ -11,7 +11,7 @@ autonomize/types/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
11
11
  autonomize/types/core/base_client.py,sha256=DcJPT9GJuvGoUoCu3xS63qZoCZaG97Iwc7pOmN0q_6w,223
12
12
  autonomize/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  autonomize/utils/logger.py,sha256=oQLM9pmQkHBQRN9c4hCXDBOf2BqHB06JjizIaWbNFfw,2168
14
- autonomize_core-0.1.8.dist-info/LICENSE,sha256=1BOgDsbiPB_RVAQMpdx88RIvXmu5u5X5bSd4aVhxUok,170
15
- autonomize_core-0.1.8.dist-info/METADATA,sha256=bITMQT2vqdxxpXbXXLtdbYF_GKKKfLp-JjZx2FURihM,4086
16
- autonomize_core-0.1.8.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
- autonomize_core-0.1.8.dist-info/RECORD,,
14
+ autonomize_core-0.1.10.dist-info/LICENSE,sha256=1BOgDsbiPB_RVAQMpdx88RIvXmu5u5X5bSd4aVhxUok,170
15
+ autonomize_core-0.1.10.dist-info/METADATA,sha256=cUg8VC8gS0mSVpD-u_P5u8T0X8luv6m9W0PpRPezucQ,4105
16
+ autonomize_core-0.1.10.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
+ autonomize_core-0.1.10.dist-info/RECORD,,