Skip to main content

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

import os
from wrapperz import call_ai, MessageBuilder

os.environ["OPENAI_API_KEY"] = "your_openai_key" # or load from .env using dotenv etc...
messages = MessageBuilder().add_system("You are a helpful assistant.").add_user("What's 1+1?")

# Call an LLM with a simple interface
response, cost = call_ai(
    model="openai/gpt-4o",
    messages=messages
)

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.

Metadata

Release files for wrapperz 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wrapperz 0.1.3
File Size Uploaded
wrapperz-0.1.3.tar.gz 174.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wrapperz 0.1.3
File Interpreter ABI Platform
wrapperz-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 198.2 kB

Release files / wrapperz-0.1.3.tar.gz

Download URL wrapperz-0.1.3.tar.gz
Size 174.7 kB
Tags Source
SHA-256 checksum
How to use checksums
13bbda76bd8a6bff752b73af5c2f1ef9d80f5305bdc96adb10a1c9942191bd7e
BLAKE2b-256 checksum
How to use checksums
6513a29ff6f11d245b3df99771f5ffe4c128933bf43bf247926ac66a46f78417
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / wrapperz-0.1.3-py3-none-any.whl

Download URL wrapperz-0.1.3-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9f0634fb68436a8b6a985151aa654fcd1d233f29891500e584f18578f0c98ee
BLAKE2b-256 checksum
How to use checksums
d561632550f26317a93a68a38cc69da97a08c902982f8a732382877b80cba653
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page