Simple wrappers for various AI APIs including LLMs, ASR, and TTS
Project description
Wrapperz (WIP - agent generated)
Simple wrappers for various AI APIs including LLMs, ASR, and TTS.
Installation
pip install wrapperz
uv add wrapperz
Features
- LLM API Wrappers: Unified interface for OpenAI, Anthropic, Google, and other LLM providers
- ASR (Automatic Speech Recognition): Convert speech to text
- TTS (Text-to-Speech): Convert text to speech
- Async Support: Asynchronous API calls for improved performance
Quick Start
from wrapperz import call_ai, MessageBuilder
messages = MessageBuilder().add_system("You are a helpful assistant.").add_user("What's 1+1?")
# Call an LLM with a simple interface
response = call_ai(
model="gpt-4o", # or "claude-3-5-sonnet", "gemini-1.5-pro", etc.
messages=messages
)
print(response)
Environment Variables
Set up your API keys in environment variables to enable providers.
OPENAI_API_KEY=your_openai_key
ANTHROPIC_API_KEY=your_anthropic_key
GOOGLE_API_KEY=your_google_key
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
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
wrapperz-0.1.0.tar.gz
(88.8 kB
view details)
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
wrapperz-0.1.0-py3-none-any.whl
(23.5 kB
view details)
File details
Details for the file wrapperz-0.1.0.tar.gz.
File metadata
- Download URL: wrapperz-0.1.0.tar.gz
- Upload date:
- Size: 88.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
682244487374c55014ac95aaf9badfe3c32a8b3ad5154f066150b27b05e49419
|
|
| MD5 |
d20357d2007ac09c91c7e5b975eb3b58
|
|
| BLAKE2b-256 |
981f464d8a4215d1f9cbbb8a732c9a01746ec0fd6d92409f8e3dcc0f659c9301
|
File details
Details for the file wrapperz-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wrapperz-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c319710faae4d98525a13f5edc2072e04469ff3eef37a0240364c66882abcd14
|
|
| MD5 |
71f490add8c67834e086ce4a22f4916d
|
|
| BLAKE2b-256 |
9d6c1d009ba10d9f2f6f834cc2930b8fbd8337214b6f96e38c4d54b25b2bde9d
|