Skip to main content

Python SDK and CLI for Orbit API service

Project description

Orbit Python SDK

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

Usage

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:

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"}'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orbitai_cli-0.1.5.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orbitai_cli-0.1.5-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file orbitai_cli-0.1.5.tar.gz.

File metadata

  • Download URL: orbitai_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for orbitai_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 adf08f6f6deba9ff1340e9828ad94c30826b3a5f0f815a6e2fd34bd22dc9869f
MD5 b1d4beaf5a7621ab94903449462651ce
BLAKE2b-256 1c0567c4c602ac419a6d1b4ee940ca307e6675128df965e6f1b77f8a5fa51343

See more details on using hashes here.

Provenance

The following attestation bundles were made for orbitai_cli-0.1.5.tar.gz:

Publisher: release.yml on AlexanderHabscheid/Orbit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file orbitai_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: orbitai_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for orbitai_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1ced6c4c5b02b3694dd2ac84aad1cb18f9fae05f64eac3e7f45422440b69cf7d
MD5 9f5400e517bb1fcbbdec0c8eb0f50203
BLAKE2b-256 d0c63033c0386e9ebe0fcd468a80ee3e31b9949d6ed621db0763026a5fda82f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for orbitai_cli-0.1.5-py3-none-any.whl:

Publisher: release.yml on AlexanderHabscheid/Orbit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page