Skip to main content

A lightweight wrapper for multiple LLM providers with optional LangChain integrations.

Project description

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"

Usage (Python)

from gen_wrapper import LLMWrapper

wrapper = LLMWrapper("openai", "gpt-4o")
print(wrapper.simple_chat("Hello!"))

CLI

llm-cli --list-providers
llm-cli --list-models openai
llm-cli --provider openai --prompt "Hello world"

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

gen_wrapper-0.1.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

gen_wrapper-0.1.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file gen_wrapper-0.1.0.tar.gz.

File metadata

  • Download URL: gen_wrapper-0.1.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for gen_wrapper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 06f3c87b0750257232f32ccad128cd00c7a75205faf60cc1aca56498e999b291
MD5 5087cea20dd96516f9548e2ab88df31d
BLAKE2b-256 5d6b1dabfc5d120134437fc5ccc72575ebaa56b18d07afb861cbf23750823789

See more details on using hashes here.

File details

Details for the file gen_wrapper-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gen_wrapper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for gen_wrapper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0c330ae55f36c639a55711a1dd419a9d0b8187c925fe93d1a528f3d370c17e3
MD5 4796b1479cb6ff2ecde22bdcba686ebd
BLAKE2b-256 f18de4402d0d3191e5f4c58afb0c8b26e87d0740ab24108dc00be20e2bed9fc0

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