Skip to main content

Python SDK for Alloy Runtime - client, pipeline, and logging

Project description

alloy-runtime-sdk

Python SDK for Alloy Runtime.

Install

pip install alloy-runtime-sdk

Quick start

from alloy_runtime_sdk.api_client.client import ApiClient

async def main() -> None:
    async with ApiClient(
        base_url="https://your-alloy-runtime-host",
        api_key="your_api_key",
    ) as client:
        models = await client.list_models()
        print(models)

What it includes

  • Authenticated HTTP client methods for the Alloy Runtime API.
  • Pipeline runtime helpers for Python-based pipeline steps.
  • Structured logging helpers used by runtime integrations.

Local pipeline runner

The SDK supports both Hosted execution and SDK local execution for pipelines.

Use python -m alloy_runtime_sdk.pipeline.local_runner to run a local pipeline module against a hosted Alloy Runtime, or call run_local_pipeline() directly from Python.

See docs/pipelines/local_testing.md for the full workflow and examples.

The SDK depends on alloy-runtime-types, which is published separately for stable, versioned cross-package compatibility.

Hard-cut API migration

Use this SDK with the matching alloy-runtime-types version. Generation requests now use canonical model / agent_id, flat model_options, flat extra_headers, and canonical result.model response identity. See docs/generate/hardcut_migration.md before updating older SDK or pipeline code.

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

alloy_runtime_sdk-0.2.89.tar.gz (62.2 kB view details)

Uploaded Source

Built Distribution

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

alloy_runtime_sdk-0.2.89-py3-none-any.whl (69.8 kB view details)

Uploaded Python 3

File details

Details for the file alloy_runtime_sdk-0.2.89.tar.gz.

File metadata

  • Download URL: alloy_runtime_sdk-0.2.89.tar.gz
  • Upload date:
  • Size: 62.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for alloy_runtime_sdk-0.2.89.tar.gz
Algorithm Hash digest
SHA256 c5d5af9f13dff628f4a28ea40fadf23316daffaf5775d8dc91ff1dbdb1e15cb4
MD5 93ccca2aae84a43e83ce89ee9f2c0d63
BLAKE2b-256 e1c1f3b5b92fda5ab85f6b3b3d62e412ab8999e4d9eba94b0156d6952251c91f

See more details on using hashes here.

Provenance

The following attestation bundles were made for alloy_runtime_sdk-0.2.89.tar.gz:

Publisher: publish-python-packages.yml on alloy-runtime/alloy-runtime

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

File details

Details for the file alloy_runtime_sdk-0.2.89-py3-none-any.whl.

File metadata

File hashes

Hashes for alloy_runtime_sdk-0.2.89-py3-none-any.whl
Algorithm Hash digest
SHA256 d79e882d6fb46dfd0037b3aed985afa5c1fb737c128ac4b9a5fb4ed791dc8f65
MD5 5cb27e73a225d4ac5e9be69b2d840ad6
BLAKE2b-256 2fcf4bd1c072c337d55faddb8e490c2c836cb62c4b40d8065086bdb9d522261a

See more details on using hashes here.

Provenance

The following attestation bundles were made for alloy_runtime_sdk-0.2.89-py3-none-any.whl:

Publisher: publish-python-packages.yml on alloy-runtime/alloy-runtime

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