Metadata-Version: 2.4
Name: Orbitai-CLI
Version: 0.2.0
Summary: Python SDK and CLI for Orbit API service
License-Expression: MIT
Project-URL: Homepage, https://github.com/ahabscheid/orbit
Project-URL: Documentation, https://github.com/ahabscheid/orbit/tree/main/sdk/python
Project-URL: Repository, https://github.com/ahabscheid/orbit
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Orbit Python SDK

Python client and CLI for the Orbit external API (`orbit api`).

## Usage

```python
from orbit_sdk import OrbitClient

client = OrbitClient(base_url="http://127.0.0.1:8787")
print(
    client.call(
        "text.upper",
        {"text": "hello"},
        timeout_ms=3000,
        retries=1,
        pack_file="./blob.bin",
        task_id="task-1",
        thread_id="thread-1",
        parent_message_id="msg-0",
        capabilities=["search"],
        traceparent="00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-00",
        dedupe_key="call-1",
    )
)
```

CLI:

```bash
orbit-py call text.upper --json '{"text":"hello"}' --base-url http://127.0.0.1:8787 --timeout-ms 3000 --retries 1 --pack-file ./blob.bin --task-id task-1 --thread-id thread-1 --parent-message-id msg-0 --capabilities '["search"]' --traceparent '00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-00' --dedupe-key call-1
orbit-py --token "$ORBIT_API_TOKEN" call text.upper --json '{"text":"hello"}'
```
