Skip to main content

Python SDK for AitherOS — the canonical client library

Project description

AitherSDK

The canonical Python client for AitherOS. Used by AitherShell, AitherDesktop, AitherConnect, and third-party apps.

Install

pip install aithersdk
# or from source
pip install -e aithersdk/

Quick Start

from aithersdk import AitherClient

async def main():
    async with AitherClient() as client:
        # Simple chat
        response = await client.chat("What is AitherOS?")
        print(response.text)
        print(f"Model: {response.model}, Elapsed: {response.elapsed_ms}ms")

        # Delegate to agent
        result = await client.delegate("demiurge", "Write a REST API for tasks")
        print(result.text)

        # Switch persona
        await client.set_will("private-mode")

        # Stream response
        async for chunk in client.stream("Tell me a story"):
            print(chunk, end="")

        # Check system health
        health = await client.health()
        print(f"Status: {health.status}")

Scripting

from aithersdk import AitherClient
import asyncio

async def batch_process():
    async with AitherClient(url="https://elysium.aitherium.com") as client:
        questions = ["What is ML?", "What is NLP?", "What is CV?"]
        for q in questions:
            r = await client.chat(q, effort=3)
            print(f"Q: {q}\nA: {r.text}\n")

asyncio.run(batch_process())

Configuration

# Local Genesis
client = AitherClient()  # http://localhost:8001

# Cloud (Elysium)
client = AitherClient(url="https://elysium.aitherium.com")

# Environment variables
# AITHER_URL=https://elysium.aitherium.com
# AITHER_WILL_URL=http://localhost:8097
client = AitherClient()  # picks up env vars

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

aithersdk-0.2.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

aithersdk-0.2.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file aithersdk-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for aithersdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 663c196f3fcfc108b5366d2c59f54ca526733e4b6d33d99126977b772110998f
MD5 37ce3fcffcf99aadfadbd948b837bd51
BLAKE2b-256 9b5f0067fd063d7767a9fc6d6aeda6b08c0803c55112efee132a012b6e603f95

See more details on using hashes here.

Provenance

The following attestation bundles were made for aithersdk-0.2.0.tar.gz:

Publisher: pypi-publish.yml on Aitherium/aithersdk

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

File details

Details for the file aithersdk-0.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for aithersdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ecd6955e50560de6367e4a144413caeae61a0bd14ab3a2c536c7daa29f95f24
MD5 2fe88279b6de130106e27b2c1cbb4d36
BLAKE2b-256 ec32fb9aa59b039b1feb6d940504b36d49fb6b10560b7968f0efaa197901cea7

See more details on using hashes here.

Provenance

The following attestation bundles were made for aithersdk-0.2.0-py3-none-any.whl:

Publisher: pypi-publish.yml on Aitherium/aithersdk

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