Skip to main content

Python SDK for the Aither platform - contextual intelligence and model observability

Project description

aither

Python SDK for the Aither platform - contextual intelligence and model observability.

Installation

pip install aither

Quick Start

import aither

# Initialize with your API key
aither.init(api_key="ak_your_api_key")

# Log a prediction
aither.log_prediction(
    model_id="churn-classifier-v2",
    prediction=0.73,
    features={"tenure": 24, "monthly_charges": 65.5},
    metadata={"user_id": "u_123"}
)

Configuration

Environment Variables

export AITHER_API_KEY="ak_your_api_key"
export AITHER_ENDPOINT="https://aither.computer"  # optional

Explicit Initialization

import aither

aither.init(
    api_key="ak_your_api_key",
    endpoint="https://aither.computer"
)

API Reference

aither.init(api_key=None, endpoint=None)

Initialize the global client.

  • api_key: Your Aither API key (or set AITHER_API_KEY env var)
  • endpoint: API endpoint URL (default: https://aither.computer)

aither.log_prediction(model_id, prediction, features=None, metadata=None)

Log a model prediction.

  • model_id: Identifier for your model (e.g., "churn-classifier-v2")
  • prediction: The prediction value (float, int, str, or dict)
  • features: Dictionary of input features (optional)
  • metadata: Additional context (optional)

AitherClient

For more control, use the client class directly:

from aither import AitherClient

client = AitherClient(api_key="ak_your_api_key")
client.log_prediction(
    model_id="my-model",
    prediction=0.5
)

License

MIT

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

aither-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

aither-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file aither-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for aither-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a0969ebb17c3c4b197c1df6dc9b2edf8024005f107dd4daa04f34a9cbfbfc708
MD5 9b913ec30ba2031752fe595bfe5473f0
BLAKE2b-256 1243e2fc92993772c02e8c8d9c46436dce05652a3d5c48c06337f5a0468453e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for aither-0.1.0.tar.gz:

Publisher: publish.yml on hyperprior/aither-sdk

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

File details

Details for the file aither-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for aither-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5728f8d09b7989d7d959a307c3139ad6bf3123a7ab86be201dc9291fa8da6035
MD5 1a8ecaa475bc100600b9b8c3d93cf80a
BLAKE2b-256 7f80e9ec6d81039efde7850194e8f8468753b0d29215bf6d49c755aae62e277c

See more details on using hashes here.

Provenance

The following attestation bundles were made for aither-0.1.0-py3-none-any.whl:

Publisher: publish.yml on hyperprior/aither-sdk

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