autonomize-core 0.1.6__tar.gz → 0.1.7__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.6 → autonomize_core-0.1.7}/PKG-INFO +17 -3
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/README.md +16 -2
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/core/base_client.py +6 -2
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/core/credential.py +9 -3
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/pyproject.toml +1 -1
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/LICENSE +0 -0
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/__init__.py +0 -0
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/core/__init__.py +0 -0
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/exceptions/__init__.py +0 -0
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/exceptions/core/__init__.py +0 -0
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/exceptions/core/credentials.py +0 -0
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/py.typed +0 -0
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/types/__init__.py +0 -0
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/types/core/__init__.py +0 -0
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/types/core/base_client.py +0 -0
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/utils/__init__.py +0 -0
- {autonomize_core-0.1.6 → autonomize_core-0.1.7}/autonomize/utils/logger.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: autonomize-core
|
3
|
-
Version: 0.1.
|
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
|
-
|
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
|
-
|
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
|
+
|
@@ -40,7 +40,7 @@ import os
|
|
40
40
|
from autonomize.core.credential import ModelhubCredential
|
41
41
|
|
42
42
|
cred = ModelhubCredential(
|
43
|
-
|
43
|
+
modelhub_url=MODELHUB_URI,
|
44
44
|
client_id=MODELHUB_AUTH_CLIENT_ID,
|
45
45
|
client_secret=MODELHUB_AUTH_CLIENT_SECRET,
|
46
46
|
)
|
@@ -57,7 +57,7 @@ import os
|
|
57
57
|
from autonomize.core.credential import ModelhubCredential
|
58
58
|
|
59
59
|
cred = ModelhubCredential(
|
60
|
-
|
60
|
+
modelhub_url=MODELHUB_URI,
|
61
61
|
client_id=MODELHUB_AUTH_CLIENT_ID,
|
62
62
|
client_secret=MODELHUB_AUTH_CLIENT_SECRET,
|
63
63
|
)
|
@@ -73,3 +73,17 @@ To contribute in our Autonomize Core SDK, please refer to our [Contribution Guid
|
|
73
73
|
Copyright (C) Autonomize AI - All Rights Reserved
|
74
74
|
|
75
75
|
The contents of this repository cannot be copied and/or distributed without the explicit permission from Autonomize.ai
|
76
|
+
|
77
|
+
# New preferred environment variables:
|
78
|
+
MODELHUB_URI=https://your-modelhub.com
|
79
|
+
MODELHUB_AUTH_CLIENT_ID=your_client_id
|
80
|
+
MODELHUB_AUTH_CLIENT_SECRET=your_secret
|
81
|
+
GENESIS_CLIENT_ID=your_genesis_client
|
82
|
+
GENESIS_COPILOT_ID=your_copilot
|
83
|
+
|
84
|
+
# Old environment variables (still work for backward compatibility):
|
85
|
+
MODELHUB_BASE_URL=https://your-modelhub.com
|
86
|
+
MODELHUB_CLIENT_ID=your_client_id
|
87
|
+
MODELHUB_CLIENT_SECRET=your_secret
|
88
|
+
CLIENT_ID=your_client
|
89
|
+
COPILOT_ID=your_copilot
|
@@ -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 =
|
60
|
-
|
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("
|
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("
|
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("
|
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
|
|
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
|