auraone-sdk 0.1.0__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.
- auraone_sdk-0.1.0/LICENSE +21 -0
- auraone_sdk-0.1.0/PKG-INFO +78 -0
- auraone_sdk-0.1.0/README.md +47 -0
- auraone_sdk-0.1.0/aura/__init__.py +8 -0
- auraone_sdk-0.1.0/aura/cli.py +61 -0
- auraone_sdk-0.1.0/aura/client.py +487 -0
- auraone_sdk-0.1.0/aura_one/__init__.py +244 -0
- auraone_sdk-0.1.0/aura_one/auth.py +267 -0
- auraone_sdk-0.1.0/aura_one/client.py +547 -0
- auraone_sdk-0.1.0/aura_one/exceptions.py +318 -0
- auraone_sdk-0.1.0/aura_one/graphql.py +127 -0
- auraone_sdk-0.1.0/aura_one/types.py +254 -0
- auraone_sdk-0.1.0/aura_one/utils.py +602 -0
- auraone_sdk-0.1.0/auraone_sdk.egg-info/PKG-INFO +78 -0
- auraone_sdk-0.1.0/auraone_sdk.egg-info/SOURCES.txt +22 -0
- auraone_sdk-0.1.0/auraone_sdk.egg-info/dependency_links.txt +1 -0
- auraone_sdk-0.1.0/auraone_sdk.egg-info/entry_points.txt +2 -0
- auraone_sdk-0.1.0/auraone_sdk.egg-info/requires.txt +9 -0
- auraone_sdk-0.1.0/auraone_sdk.egg-info/top_level.txt +2 -0
- auraone_sdk-0.1.0/pyproject.toml +42 -0
- auraone_sdk-0.1.0/setup.cfg +4 -0
- auraone_sdk-0.1.0/tests/test_client_services.py +20 -0
- auraone_sdk-0.1.0/tests/test_graphql_client.py +48 -0
- auraone_sdk-0.1.0/tests/test_robotics_service.py +138 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AuraOne
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: auraone-sdk
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Official Python SDK and CLI for the AuraOne hosted API.
|
|
5
|
+
Author: AuraOne
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://www.auraone.ai/developers
|
|
8
|
+
Project-URL: Documentation, https://www.auraone.ai/resources/docs
|
|
9
|
+
Project-URL: Source, https://github.com/auraoneai/sdk-python
|
|
10
|
+
Project-URL: Issues, https://github.com/auraoneai/sdk-python/issues
|
|
11
|
+
Keywords: auraone,sdk,evaluation,ai,human-feedback
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Intended Audience :: Developers
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Requires-Python: >=3.9
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: httpx>=0.27.0
|
|
24
|
+
Provides-Extra: async
|
|
25
|
+
Requires-Dist: httpx[http2]>=0.27.0; extra == "async"
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
28
|
+
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
|
|
29
|
+
Requires-Dist: build>=1.0; extra == "dev"
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# AuraOne Python SDK
|
|
33
|
+
|
|
34
|
+
Lightweight Python SDK and CLI for AuraOne APIs.
|
|
35
|
+
|
|
36
|
+
## Installation
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pip install auraone-sdk
|
|
40
|
+
|
|
41
|
+
# Optional extras
|
|
42
|
+
pip install "auraone-sdk[async]"
|
|
43
|
+
pip install "auraone-sdk[dev]"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
> For local development workflows, see `CONTRIBUTING.md` instead of using editable installs in production environments.
|
|
47
|
+
|
|
48
|
+
## CLI Usage
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
aura --base-url https://api.auraone.ai --org-id public --api-key test list-templates
|
|
52
|
+
|
|
53
|
+
aura --base-url https://api.auraone.ai evaluate \
|
|
54
|
+
--template-id cartpole-v1 \
|
|
55
|
+
--agent-bundle-url https://example.com/agent.zip \
|
|
56
|
+
--wait --robust
|
|
57
|
+
|
|
58
|
+
aura --base-url https://api.auraone.ai quotas
|
|
59
|
+
aura --base-url https://api.auraone.ai system-health
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Client Usage
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
from aura.client import AuraClient
|
|
66
|
+
|
|
67
|
+
client = AuraClient(api_key="test", base_url="https://api.auraone.ai", org_id="public")
|
|
68
|
+
templates = client.list_templates()
|
|
69
|
+
res = client.evaluate(template_id="cartpole-v1", agent_bundle_url="https://example.com/agent.zip", wait=False)
|
|
70
|
+
final = client.wait_for_completion(res.id, timeout_seconds=120)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Features
|
|
74
|
+
|
|
75
|
+
- Retries/backoff on transient failures (HTTP 5xx/timeouts)
|
|
76
|
+
- Idempotent evaluation creation with `X-Idempotency-Key`
|
|
77
|
+
- Polling helpers to wait for terminal states
|
|
78
|
+
- Advanced endpoints: analytics, benchmarks, quotas, safety, admin
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# AuraOne Python SDK
|
|
2
|
+
|
|
3
|
+
Lightweight Python SDK and CLI for AuraOne APIs.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install auraone-sdk
|
|
9
|
+
|
|
10
|
+
# Optional extras
|
|
11
|
+
pip install "auraone-sdk[async]"
|
|
12
|
+
pip install "auraone-sdk[dev]"
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
> For local development workflows, see `CONTRIBUTING.md` instead of using editable installs in production environments.
|
|
16
|
+
|
|
17
|
+
## CLI Usage
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
aura --base-url https://api.auraone.ai --org-id public --api-key test list-templates
|
|
21
|
+
|
|
22
|
+
aura --base-url https://api.auraone.ai evaluate \
|
|
23
|
+
--template-id cartpole-v1 \
|
|
24
|
+
--agent-bundle-url https://example.com/agent.zip \
|
|
25
|
+
--wait --robust
|
|
26
|
+
|
|
27
|
+
aura --base-url https://api.auraone.ai quotas
|
|
28
|
+
aura --base-url https://api.auraone.ai system-health
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Client Usage
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
from aura.client import AuraClient
|
|
35
|
+
|
|
36
|
+
client = AuraClient(api_key="test", base_url="https://api.auraone.ai", org_id="public")
|
|
37
|
+
templates = client.list_templates()
|
|
38
|
+
res = client.evaluate(template_id="cartpole-v1", agent_bundle_url="https://example.com/agent.zip", wait=False)
|
|
39
|
+
final = client.wait_for_completion(res.id, timeout_seconds=120)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Features
|
|
43
|
+
|
|
44
|
+
- Retries/backoff on transient failures (HTTP 5xx/timeouts)
|
|
45
|
+
- Idempotent evaluation creation with `X-Idempotency-Key`
|
|
46
|
+
- Polling helpers to wait for terminal states
|
|
47
|
+
- Advanced endpoints: analytics, benchmarks, quotas, safety, admin
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
import sys
|
|
3
|
+
from typing import List
|
|
4
|
+
from .client import AuraClient
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
8
|
+
parser = argparse.ArgumentParser(prog="aura")
|
|
9
|
+
parser.add_argument("--base-url", default="http://localhost:8000")
|
|
10
|
+
parser.add_argument("--org-id", default="public")
|
|
11
|
+
parser.add_argument("--api-key", default=None)
|
|
12
|
+
|
|
13
|
+
sub = parser.add_subparsers(dest="cmd", required=True)
|
|
14
|
+
|
|
15
|
+
sub.add_parser("list-templates")
|
|
16
|
+
sub.add_parser("quotas")
|
|
17
|
+
sub.add_parser("system-health")
|
|
18
|
+
|
|
19
|
+
eval_p = sub.add_parser("evaluate")
|
|
20
|
+
eval_p.add_argument("--template-id", required=True)
|
|
21
|
+
eval_p.add_argument("--agent-bundle-url", required=True)
|
|
22
|
+
eval_p.add_argument("--wait", action="store_true", default=False)
|
|
23
|
+
eval_p.add_argument("--robust", action="store_true", default=False)
|
|
24
|
+
|
|
25
|
+
return parser
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def run_cli(argv: List[str]) -> int:
|
|
29
|
+
args = build_parser().parse_args(argv)
|
|
30
|
+
client = AuraClient(api_key=args.api_key, base_url=args.base_url, org_id=args.org_id)
|
|
31
|
+
|
|
32
|
+
if args.cmd == "list-templates":
|
|
33
|
+
items = client.list_templates()
|
|
34
|
+
for t in items:
|
|
35
|
+
print(f"{t.id}\t{t.name}\t{t.version}\t{t.domain or ''}")
|
|
36
|
+
return 0
|
|
37
|
+
|
|
38
|
+
if args.cmd == "evaluate":
|
|
39
|
+
if args.robust:
|
|
40
|
+
res = client.evaluate_robust(template_id=args.template_id, agent_bundle_url=args.agent_bundle_url, wait=args.wait)
|
|
41
|
+
else:
|
|
42
|
+
res = client.evaluate(template_id=args.template_id, agent_bundle_url=args.agent_bundle_url, wait=args.wait)
|
|
43
|
+
print(res)
|
|
44
|
+
return 0
|
|
45
|
+
|
|
46
|
+
if args.cmd == "quotas":
|
|
47
|
+
q = client.get_quotas()
|
|
48
|
+
print(q)
|
|
49
|
+
return 0
|
|
50
|
+
|
|
51
|
+
if args.cmd == "system-health":
|
|
52
|
+
h = client.get_system_health()
|
|
53
|
+
print(h)
|
|
54
|
+
return 0
|
|
55
|
+
|
|
56
|
+
return 1
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def main() -> None:
|
|
60
|
+
sys.exit(run_cli(sys.argv[1:]))
|
|
61
|
+
|