gen-wrapper
A unified interface for multiple LLM providers (OpenAI, Anthropic, Groq, DeepSeek, Fireworks, Gemini, local).
Installation
pip install gen-wrapper
# or with extras
pip install "gen-wrapper[llm-providers,langchain,async]"
Environment
Set needed API keys, e.g. (PowerShell):
$env:OPENAI_API_KEY="your_openai_key"
$env:ANTHROPIC_API_KEY="your_anthropic_key"
$env:GROQ_API_KEY="your_groq_key"
$env:DEEPSEEK_API_KEY="your_deepseek_key"
$env:FIREWORKS_API_KEY="your_fireworks_key"
$env:GOOGLE_API_KEY="your_google_key"
# Azure OpenAI (optional)
$env:AZURE_OPENAI_API_KEY="..."
$env:AZURE_OPENAI_ENDPOINT="..."
$env:AZURE_OPENAI_DEPLOYMENT="..."
$env:AZURE_OPENAI_API_VERSION="..."
Quickstart (Python)
from gen_wrapper import LLMWrapper
wrapper = LLMWrapper(provider="openai", model="gpt-4o")
print(wrapper.simple_chat("Hello!"))
CLI
llm-cli --list-providers
llm-cli --list-models openai
llm-cli --provider openai --prompt "Hello world"
Extras
- llm-providers: OpenAI, Anthropic, Google Generative AI SDKs
- langchain: LangChain core + provider adapters
- async: aiohttp, httpx
- monitoring: prometheus-client
Links
- Source, docs, and issues: https://github.com/lakshya811/gen_wrapper
- PyPI: https://pypi.org/project/gen-wrapper/
License
MIT
Metadata
Release files for gen-wrapper 0.1.1
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 | Actions |
|---|---|---|---|---|
| gen_wrapper-0.1.1.tar.gz | 12.7 kB | Without provenance | Details for gen_wrapper-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gen_wrapper-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for gen_wrapper-0.1.1-py3-none-any.whl |
Total release size: 33.7 kB
Release files / gen_wrapper-0.1.1.tar.gz
| Download URL | gen_wrapper-0.1.1.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a3cb276573dd69213c10604e0dfeb1498d67923623dcc937f1712dffca975a8
|
|
BLAKE2b-256 checksum How to use checksums |
9411c6aca18c4284bdd1f5e1a14763e8166b352ba1c3a17ec80e777268b9ef21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / gen_wrapper-0.1.1-py3-none-any.whl
| Download URL | gen_wrapper-0.1.1-py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
773a8209658a47275a30ae227f946034b05e471bee5a65fabe51b2ce2ce7af10
|
|
BLAKE2b-256 checksum How to use checksums |
2c0add9b888d1758e3316e105b36b36e3bc3d9b3e553bd9d440c4ca71eb1fcfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Security for gen-wrapper 0.1.1
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.