Skip to main content

Simple wrappers for various AI APIs including LLMs, ASR, and TTS

Project description

wraipperz (WIP - agent generated)

Simple wrappers for various AI APIs including LLMs, ASR, and TTS.

Installation

pip install wraipperz
uv add wraipperz

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 wraipperz import call_ai, MessageBuilder

os.environ["OPENAI_API_KEY"] = "your_openai_key" # if not defined in environment variables
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
# ...  todo add all

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

wraipperz-0.1.1.tar.gz (174.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wraipperz-0.1.1-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file wraipperz-0.1.1.tar.gz.

File metadata

  • Download URL: wraipperz-0.1.1.tar.gz
  • Upload date:
  • Size: 174.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for wraipperz-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ef4930a0161c3b24a1d8ec0db3e5dd87945c30d92e22d31da27dd0d208a08b95
MD5 47aad8c4a66bd418ec1482d110787df1
BLAKE2b-256 7a8909adf5482639555a3337e30aa90a6a5fd5f7b6b7ef8cf43301adf675c0be

See more details on using hashes here.

File details

Details for the file wraipperz-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: wraipperz-0.1.1-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.10.12

File hashes

Hashes for wraipperz-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e3a3c4f55a49633e4d00c04706c80b12a1d28403b2f0e0b8d5c7d02a6496288
MD5 96688562d8a72d4ae0e31cb6e9e6e94e
BLAKE2b-256 13acc30ac3871177ae0d7f14a4578c54d093f9194eefa8bf7ff0756bbf77d57e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page