autonomize-core 0.1.6__py3-none-any.whl → 0.1.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.
@@ -56,8 +56,12 @@ class BaseClient:
56
56
  self.credential = credential
57
57
 
58
58
  # Get client and copilot IDs from args or environment
59
- self.client_id = client_id or os.getenv("CLIENT_ID")
60
- self.copilot_id = copilot_id or os.getenv("COPILOT_ID")
59
+ self.client_id = (
60
+ client_id or os.getenv("GENESIS_CLIENT_ID") or os.getenv("CLIENT_ID")
61
+ )
62
+ self.copilot_id = (
63
+ copilot_id or os.getenv("GENESIS_COPILOT_ID") or os.getenv("COPILOT_ID")
64
+ )
61
65
 
62
66
  # Other configuration
63
67
  self.timeout = timeout
@@ -72,13 +72,19 @@ class ModelhubCredential:
72
72
  """
73
73
  # Initialize base URL
74
74
  self._modelhub_url = modelhub_url or (
75
- os.getenv("MODELHUB_BASE_URL", "").strip() or None
75
+ os.getenv("MODELHUB_URI", "").strip()
76
+ or os.getenv("MODELHUB_BASE_URL", "").strip()
77
+ or None
76
78
  )
77
79
  self._client_id = client_id or (
78
- os.getenv("MODELHUB_CLIENT_ID", "").strip() or None
80
+ os.getenv("MODELHUB_AUTH_CLIENT_ID", "").strip()
81
+ or os.getenv("MODELHUB_CLIENT_ID", "").strip()
82
+ or None
79
83
  )
80
84
  self._client_secret = client_secret or (
81
- os.getenv("MODELHUB_CLIENT_SECRET", "").strip() or None
85
+ os.getenv("MODELHUB_AUTH_CLIENT_SECRET", "").strip()
86
+ or os.getenv("MODELHUB_CLIENT_SECRET", "").strip()
87
+ or None
82
88
  )
83
89
  self._token = token
84
90
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: autonomize-core
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: Autonomize Core contains the unified authentication source to access platform.
5
5
  License: Proprietary
6
6
  Author: Varun Prakash
@@ -67,7 +67,7 @@ import os
67
67
  from autonomize.core.credential import ModelhubCredential
68
68
 
69
69
  cred = ModelhubCredential(
70
- auth_url=MODELHUB_AUTH_ENDPOINT,
70
+ modelhub_url=MODELHUB_URI,
71
71
  client_id=MODELHUB_AUTH_CLIENT_ID,
72
72
  client_secret=MODELHUB_AUTH_CLIENT_SECRET,
73
73
  )
@@ -84,7 +84,7 @@ import os
84
84
  from autonomize.core.credential import ModelhubCredential
85
85
 
86
86
  cred = ModelhubCredential(
87
- auth_url=MODELHUB_AUTH_ENDPOINT,
87
+ modelhub_url=MODELHUB_URI,
88
88
  client_id=MODELHUB_AUTH_CLIENT_ID,
89
89
  client_secret=MODELHUB_AUTH_CLIENT_SECRET,
90
90
  )
@@ -101,3 +101,17 @@ Copyright (C) Autonomize AI - All Rights Reserved
101
101
 
102
102
  The contents of this repository cannot be copied and/or distributed without the explicit permission from Autonomize.ai
103
103
 
104
+ # New preferred environment variables:
105
+ MODELHUB_URI=https://your-modelhub.com
106
+ MODELHUB_AUTH_CLIENT_ID=your_client_id
107
+ MODELHUB_AUTH_CLIENT_SECRET=your_secret
108
+ GENESIS_CLIENT_ID=your_genesis_client
109
+ GENESIS_COPILOT_ID=your_copilot
110
+
111
+ # Old environment variables (still work for backward compatibility):
112
+ MODELHUB_BASE_URL=https://your-modelhub.com
113
+ MODELHUB_CLIENT_ID=your_client_id
114
+ MODELHUB_CLIENT_SECRET=your_secret
115
+ CLIENT_ID=your_client
116
+ COPILOT_ID=your_copilot
117
+
@@ -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=r2lyhz6RqB1fb8qt6YHOHfb3-nSl8tB_5D5Bf6vjH18,17824
4
- autonomize/core/credential.py,sha256=1A4WEA8irscJ00PR2gp_gmDK5lQFDPD3u8e0taz9hGo,10521
3
+ autonomize/core/base_client.py,sha256=CC04iADLF4-ABjge73C14r1cx0yrNXacrqUy_xM7jDU,17941
4
+ autonomize/core/credential.py,sha256=xnR5d3szi_TFb9rut_6xo69EIFj-6vNnUQO4tOskN6c,10742
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.6.dist-info/LICENSE,sha256=1BOgDsbiPB_RVAQMpdx88RIvXmu5u5X5bSd4aVhxUok,170
15
- autonomize_core-0.1.6.dist-info/METADATA,sha256=7xn5safiNrckDQ1zBbSWPkJLH_mJM9BcGhp2uQ20zNw,3641
16
- autonomize_core-0.1.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
- autonomize_core-0.1.6.dist-info/RECORD,,
14
+ autonomize_core-0.1.7.dist-info/LICENSE,sha256=1BOgDsbiPB_RVAQMpdx88RIvXmu5u5X5bSd4aVhxUok,170
15
+ autonomize_core-0.1.7.dist-info/METADATA,sha256=FeTQnLUYMYVns7vMPOykjTgR7FqhOSDJTnW4He-ie2E,4086
16
+ autonomize_core-0.1.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
+ autonomize_core-0.1.7.dist-info/RECORD,,