Skip to main content

🧪 Alquimia Python Client

AlquimiaClient is an asynchronous HTTP client for interacting with the Alquimia Runtime API, providing convenient methods for inferences, streaming responses, and uploading/downloading binary data (blobs), and extending tool capabilities on client side. It uses httpx for async HTTP operations and SSE (Server-Sent Events) for event streaming.


🚀 Installation

# Create virtual environment and install dependencies
make venv

# Build the package
make build

# Format code with ruff
make format

🧠 Quick Start

import asyncio
from alquimia_client import AlquimiaClient

API_URL = "https://api.alquimia.ai"
API_KEY = "your_api_key_here"


async def main():
    async with AlquimiaClient(base_url=API_URL, api_key=API_KEY) as client:
        # Run an inference
        result = await client.infer(
            assistant_id="assistant-123",
            session_id="session-xyz",
            query="Summarize this text",
        )
        print(result)

        # Stream live responses
        async for event in client.stream(stream_id="stream-123"):
            print("Received:", event)

asyncio.run(main())

Metadata

Release files for alquimia-client 0.1.1

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

Source distribution (sdist)

Source distribution for alquimia-client 0.1.1
File Size Uploaded Provenance Actions
alquimia_client-0.1.1.tar.gz 16.0 kB Without provenance Details for alquimia_client-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for alquimia-client 0.1.1
File Interpreter ABI Platform Actions
alquimia_client-0.1.1-py3-none-any.whl Python 3 none any Details for alquimia_client-0.1.1-py3-none-any.whl

Total release size: 32.4 kB

Release files / alquimia_client-0.1.1.tar.gz

Download URL alquimia_client-0.1.1.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e8ecb2621f438be175e4dfa294a15711a917a487970b2fff6868ecfab33ec8c1
BLAKE2b-256 checksum
How to use checksums
97bbdc8a87bbe0e8ca8492ce8445fad9aa3027b1a1b99cec364864145265181f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.3

Release files / alquimia_client-0.1.1-py3-none-any.whl

Download URL alquimia_client-0.1.1-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29f3c815069ee59a1632df3a50cef093fd8214b033f95e07b34aa3abe9865dd9
BLAKE2b-256 checksum
How to use checksums
415455f1a1db6e80e5b9cc5b8c86aaf5f484c59d8a9ea1d8a2f75d3cd842dd2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.3

Security for alquimia-client 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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