Skip to main content

rusty-agent-sdk

PyPI License

Rust-powered Python SDK for OpenAI-compatible text generation and streaming.

Installation

pip install rusty-agent-sdk

Quick Start

Set your API key:

export OPENROUTER_API_KEY="your-key"

Then use the SDK:

from rusty_agent_sdk import Provider

provider = Provider("openai/gpt-4o-mini")

# Blocking generation
text = provider.generate_text("Say hello in one sentence.")
print(text)

# Streaming
for chunk in provider.stream_text("Count to 3."):
    print(chunk, end="", flush=True)
print()

Custom Endpoint

provider = Provider(
    "gpt-4o-mini",
    api_key="sk-...",
    base_url="https://api.openai.com/v1",
)

Example

See examples/basic_usage.py for a runnable demo.

Development

# Build and install locally
uv run maturin develop

# Run checks
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test

License

Apache 2.0

Metadata

Release files for rusty-agent-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rusty-agent-sdk 0.1.0
File Size Uploaded
rusty_agent_sdk-0.1.0.tar.gz 31.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for rusty-agent-sdk 0.1.0
File
rusty_agent_sdk-0.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
rusty_agent_sdk-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
rusty_agent_sdk-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details
rusty_agent_sdk-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
rusty_agent_sdk-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
rusty_agent_sdk-0.1.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
rusty_agent_sdk-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details

Total release size: 17.2 MB

Release files / rusty_agent_sdk-0.1.0.tar.gz

Download URL rusty_agent_sdk-0.1.0.tar.gz
Size 31.6 kB
Tags Source
SHA-256 checksum
How to use checksums
491fb618c8350d88306f7681189682ac1ebe04e2e00928f956b6e7273fa528eb
BLAKE2b-256 checksum
How to use checksums
a6e556aca31793b066ec040e72a1a4936538e5060513f23c8baed54632031c18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

Release files / rusty_agent_sdk-0.1.0-cp39-abi3-win_amd64.whl

Download URL rusty_agent_sdk-0.1.0-cp39-abi3-win_amd64.whl
Size 2.1 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
20380e9c6ea62c0275c11b49454a1ed7a2682daef1878b6e7404c71266f53b70
BLAKE2b-256 checksum
How to use checksums
8797eb9caf6345874997c2477291507be76879ed4874184777fe52b8bc0cc40d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

Release files / rusty_agent_sdk-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL rusty_agent_sdk-0.1.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 2.5 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
a5bf01d7c4d90b7c522e7677f03eafc995b3bf94438ff61a2ae019b5ef401fdf
BLAKE2b-256 checksum
How to use checksums
10a2c78d2a0e2593cf8922d3d76fd0c30e0a42b6171e08866fa3febd43c9f1f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

Release files / rusty_agent_sdk-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL rusty_agent_sdk-0.1.0-cp39-abi3-musllinux_1_2_aarch64.whl
Size 2.4 MB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
b59b1d5f42a185c254e073a67bc4a9abc6283d91f39a788e4890ecabad65cd2b
BLAKE2b-256 checksum
How to use checksums
f631801c3f531f3e5aebe15b63cbe02fa7793a4cc0a0fff97b480ceb0d5a389b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

Release files / rusty_agent_sdk-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL rusty_agent_sdk-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.5 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
822ebb38adeb250d41385897ee2916b4b50d8fd7a925714a7422a4091cfc0554
BLAKE2b-256 checksum
How to use checksums
00769d9ac633aae82a8c6ff22ade9338ae3e0fa34bb03f1ab81c7f6135bfd96f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

Release files / rusty_agent_sdk-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL rusty_agent_sdk-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 2.4 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
df6e78ea66261bb863a6b36dfe3d7faf5d16117c50be875e8f706a643cfec5a6
BLAKE2b-256 checksum
How to use checksums
b401ee88b629c129aef31533757f428b017ef823637c55047ded275b9fa6a69b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

Release files / rusty_agent_sdk-0.1.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL rusty_agent_sdk-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Size 2.6 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b51bfacc6103be2b18a9b4bf144809fb1a9c7d833faf59837cb6023726eb9c29
BLAKE2b-256 checksum
How to use checksums
75f94cf5847bef072dae5914dfffc197a7f9bafc432b71d94539c351fe013306
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

Release files / rusty_agent_sdk-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL rusty_agent_sdk-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 2.7 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
738b7e5489dac80077d46597a50b392e62772a2f1b53beec52860b785fc46888
BLAKE2b-256 checksum
How to use checksums
fc35d2c09f76a9ef42c2ad7101f51a688e0afb670adb53e910f4085697392bff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

8 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page