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 setAITHER_API_KEYenv 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0969ebb17c3c4b197c1df6dc9b2edf8024005f107dd4daa04f34a9cbfbfc708
|
|
| MD5 |
9b913ec30ba2031752fe595bfe5473f0
|
|
| BLAKE2b-256 |
1243e2fc92993772c02e8c8d9c46436dce05652a3d5c48c06337f5a0468453e9
|
Provenance
The following attestation bundles were made for aither-0.1.0.tar.gz:
Publisher:
publish.yml on hyperprior/aither-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aither-0.1.0.tar.gz -
Subject digest:
a0969ebb17c3c4b197c1df6dc9b2edf8024005f107dd4daa04f34a9cbfbfc708 - Sigstore transparency entry: 769351652
- Sigstore integration time:
-
Permalink:
hyperprior/aither-sdk@a320c6cf1901ba88ab4d3f4221cd00c42c1023f2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/hyperprior
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a320c6cf1901ba88ab4d3f4221cd00c42c1023f2 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5728f8d09b7989d7d959a307c3139ad6bf3123a7ab86be201dc9291fa8da6035
|
|
| MD5 |
1a8ecaa475bc100600b9b8c3d93cf80a
|
|
| BLAKE2b-256 |
7f80e9ec6d81039efde7850194e8f8468753b0d29215bf6d49c755aae62e277c
|
Provenance
The following attestation bundles were made for aither-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on hyperprior/aither-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aither-0.1.0-py3-none-any.whl -
Subject digest:
5728f8d09b7989d7d959a307c3139ad6bf3123a7ab86be201dc9291fa8da6035 - Sigstore transparency entry: 769351665
- Sigstore integration time:
-
Permalink:
hyperprior/aither-sdk@a320c6cf1901ba88ab4d3f4221cd00c42c1023f2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/hyperprior
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a320c6cf1901ba88ab4d3f4221cd00c42c1023f2 -
Trigger Event:
push
-
Statement type: