multillm-core
A unified interface for multiple LLM providers (OpenAI, Anthropic, Gemini, Mistral).
Installation
pip install multillm-core
Install with specific providers:
pip install "multillm-core[openai]"
pip install "multillm-core[anthropic]"
pip install "multillm-core[gemini]"
pip install "multillm-core[mistral]"
pip install "multillm-core[all]"
Example Usage
Synchronous:
from multillm import create_client
client = create_client("openai", api_key="your-key")
response = client.generate(
model="gpt-4o",
prompt="Explain quantum entanglement in one sentence."
)
print(f"[{response.provider}] {response.text}")
Asynchronous:
import asyncio
from multillm import create_client
async def main():
client = create_client("openai", api_key="your-key")
response = await client.async_generate(
model="gpt-4o",
prompt="Explain quantum entanglement in one sentence."
)
print(f"[{response.provider}] {response.text}")
if __name__ == "__main__":
asyncio.run(main())
Supported Providers
- OpenAI
- Anthropic
- Google Gemini
- Mistral (Pixtral for images)
License
MIT
Metadata
Release files for multillm-core 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| multillm_core-0.2.0.tar.gz | 103.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| multillm_core-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 115.8 kB
Release files / multillm_core-0.2.0.tar.gz
| Download URL | multillm_core-0.2.0.tar.gz |
|---|---|
| Size | 103.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
408148dcfb9b6fd21c1b5994b46ea704b057818e562600cdcdf972c2d7908b18
|
|
BLAKE2b-256 checksum How to use checksums |
593a8fd1d37e4d4d7e609a9823173913caadcaeb358b1d536d4427c493c0291f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / multillm_core-0.2.0-py3-none-any.whl
| Download URL | multillm_core-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1fb9a73d5b819fe955d545254c5f41cc34e1ded4d3394a9b300651beab2b7c95
|
|
BLAKE2b-256 checksum How to use checksums |
f6a80996f86001ee1b35f89ceface144e740780831d5aa9f2d3f9493083bda4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for multillm-core 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.
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.