Skip to main content

Python SDK for Conduix — OpenAI-compatible multi-provider AI router by iVirtualsoft.

Project description

Conduix — Python SDK

Drop-in replacement for openai pointed at Conduix.

Install

pip install conduix

Use

from conduix import Conduix
client = Conduix(api_key="cx_live_...")

resp = client.chat.completions.create(
    model="claude-sonnet-4-20250514",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

Streaming

stream = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Count to 5."}],
    stream=True,
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="")

Async

from conduix import AsyncConduix
import asyncio

async def main():
    client = AsyncConduix(api_key="cx_live_...")
    resp = await client.chat.completions.create(
        model="gemini-2.5-flash",
        messages=[{"role": "user", "content": "hi"}],
    )
    print(resp.choices[0].message.content)

asyncio.run(main())

Env vars

  • CONDUIX_API_KEY — default API key
  • CONDUIX_BASE_URL — default base URL (default: https://api.conduix.ai/v1)

Self-hosted

Conduix(api_key="cx_test_...", base_url="http://localhost:3000/v1")

Built by iVirtualsoft.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

conduix-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

conduix-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file conduix-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for conduix-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2df63e3ff96dc6beaa0479f3cbf96bfef86be669642f6ec19053a92b602c8df3
MD5 af63168ae765c0c281b8323578da62ad
BLAKE2b-256 d16695ee4d915cf90d5c0ce8a57688b4674ab2977e44dc675f6a55d359740c83

See more details on using hashes here.

Provenance

The following attestation bundles were made for conduix-0.1.0.tar.gz:

Publisher: publish-sdk-python.yml on sass-srs/conduix-ai

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

File details

Details for the file conduix-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: conduix-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for conduix-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5fd147f825a1518c5fdbd75a397249eb5cafd5243143a686a936ab5d0eddb47
MD5 fbc2ccce8917933a33c8452cf3b5ed3a
BLAKE2b-256 ac9619bf73a4d61afc35f4356334e392d913edbf4b3c6c62a95de3e821966b95

See more details on using hashes here.

Provenance

The following attestation bundles were made for conduix-0.1.0-py3-none-any.whl:

Publisher: publish-sdk-python.yml on sass-srs/conduix-ai

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