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 keyCONDUIX_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2df63e3ff96dc6beaa0479f3cbf96bfef86be669642f6ec19053a92b602c8df3
|
|
| MD5 |
af63168ae765c0c281b8323578da62ad
|
|
| BLAKE2b-256 |
d16695ee4d915cf90d5c0ce8a57688b4674ab2977e44dc675f6a55d359740c83
|
Provenance
The following attestation bundles were made for conduix-0.1.0.tar.gz:
Publisher:
publish-sdk-python.yml on sass-srs/conduix-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
conduix-0.1.0.tar.gz -
Subject digest:
2df63e3ff96dc6beaa0479f3cbf96bfef86be669642f6ec19053a92b602c8df3 - Sigstore transparency entry: 1958600308
- Sigstore integration time:
-
Permalink:
sass-srs/conduix-ai@7cecb1ae63ab6605c75fc77c45d77cb38ffe4076 -
Branch / Tag:
refs/tags/sdk-py-v0.1.0-1 - Owner: https://github.com/sass-srs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk-python.yml@7cecb1ae63ab6605c75fc77c45d77cb38ffe4076 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5fd147f825a1518c5fdbd75a397249eb5cafd5243143a686a936ab5d0eddb47
|
|
| MD5 |
fbc2ccce8917933a33c8452cf3b5ed3a
|
|
| BLAKE2b-256 |
ac9619bf73a4d61afc35f4356334e392d913edbf4b3c6c62a95de3e821966b95
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
conduix-0.1.0-py3-none-any.whl -
Subject digest:
b5fd147f825a1518c5fdbd75a397249eb5cafd5243143a686a936ab5d0eddb47 - Sigstore transparency entry: 1958600421
- Sigstore integration time:
-
Permalink:
sass-srs/conduix-ai@7cecb1ae63ab6605c75fc77c45d77cb38ffe4076 -
Branch / Tag:
refs/tags/sdk-py-v0.1.0-1 - Owner: https://github.com/sass-srs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdk-python.yml@7cecb1ae63ab6605c75fc77c45d77cb38ffe4076 -
Trigger Event:
push
-
Statement type: