Catalog PyPI
Back to packageRELEASE DETAILS

0.2.0

PyPI

ai-clients

HTTP clients for easy integration with different ai models

Published2 Mar 2025
Direct dependencies3
Transitive dependenciesNot calculated

README

Version 0.2.0 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 3

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
aiohttp
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
aiohttp>=3.11.12runtime
pydantic
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
pydantic>=2.10.6runtime
ujson
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
ujson>=5.10.0runtime

Distribution files

2 collected
ai_clients-0.2.0-py3-none-any.whl

bdist_wheel · 5.86 KB · Python py3

Source file
ai_clients-0.2.0.tar.gz

sdist · 28.35 KB · Python source

Source file

Repository

PENDING
vladimir-titov/ai-clients

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:09 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:9ee1669e6794e8373fda00cff3d4816044da7d8e7eb77e6d2184fd4210d0edb2

Other collected versions

View all collected versions →