Skip to main content

ai-clients

HTTP clients for easy integration with different AI models.

Installation

To install the package, use pip:

pip install ai-clients

Usage

Here is a simple example of how to use the Codestral client:

import aiohttp
from ai_clients.codestral.client import Codestral
import asyncio

async def main():
    async with aiohttp.ClientSession() as session:
        client = Codestral(base_url="https://api.example.com", api_key="your_api_key", session=session)
        response = await client.chat_completion("Hello, how are you?")
        print(response)

asyncio.run(main())

Development

To set up the development environment, run:

python -m pip install --upgrade pip
python -m pip install uv
uv venv
source .venv/bin/activate
uv sync --all-extras

Testing

To run the tests, use:

uv run pytest -vv

Metadata

Release files for ai-clients 0.2.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 ai-clients 0.2.0
File Size Uploaded Provenance
ai_clients-0.2.0.tar.gz 29.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-clients 0.2.0
File Interpreter ABI Platform
ai_clients-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.0 kB

Release files / ai_clients-0.2.0.tar.gz

Download URL ai_clients-0.2.0.tar.gz
Size 29.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ead50be147503c12be549bc04dedb3a14a3631f48c586d6667bf9c91b0b3a5e9
BLAKE2b-256 checksum
How to use checksums
464d9e30774754e01caf8a85e7b35257fefdbc062c34a649e3fe00bd6696557f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Mar 2, 2025.

Transparency log

Release files / ai_clients-0.2.0-py3-none-any.whl

Download URL ai_clients-0.2.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f244ee4d6656d132ec1124820a63d0a28952e3ed45d18b19df46c4ad5a7219e1
BLAKE2b-256 checksum
How to use checksums
f046cdea716e84b7e26bf2c2bec016d8a141693160673c4283d2749a4ac141ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Mar 2, 2025.

Transparency log

Security for ai-clients 0.2.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ai_clients-0.2.0.tar.gz

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 Mar 2, 2025.

Transparency log

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.

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