Skip to main content

ModelsHub

A unified interface for various Large Language Model (LLM) providers, making it easy to work with different LLM APIs in a consistent way.

Installation

pip install modelshub

Quick Start

from modelshub import Gemini, OpenAI, Groq, Anthropic

# Initialize any model
model = Gemini(api_key="your-api-key")
# or
model = OpenAI(api_key="your-api-key")
# or
model = Groq(api_key="your-api-key")
# or
model = Anthropic(api_key="your-api-key")

# Use the model
response = model.generate("What is the capital of France?")
print(response)

Features

  • Unified interface for multiple LLM providers
  • Easy to use and extend
  • Production-ready implementation
  • Consistent API across different providers
  • Built on top of LangChain for maximum compatibility

Supported Models

  • Google Gemini
  • OpenAI
  • Groq
  • Anthropic Claude
  • (More coming soon!)

Environment Variables

You can set your API keys as environment variables:

export GOOGLE_API_KEY="your-google-api-key"
export OPENAI_API_KEY="your-openai-api-key"
export GROQ_API_KEY="your-groq-api-key"
export ANTHROPIC_API_KEY="your-anthropic-api-key"

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for modelshub 0.1.0

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

Source distribution (sdist)

Source distribution for modelshub 0.1.0
File Size Uploaded Provenance Actions
modelshub-0.1.0.tar.gz 3.5 kB Without provenance Details for modelshub-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 7.2 kB

Release files / modelshub-0.1.0.tar.gz

Download URL modelshub-0.1.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f60e331ebd12f3b5b105a598212c7605701ef4bbc93fce594c0966347d31145e
BLAKE2b-256 checksum
How to use checksums
0edf44ca7de7d63134f8dbcea4b5b6de1270db833573ca7d9fdb82f67e521be4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / modelshub-0.1.0-py3-none-any.whl

Download URL modelshub-0.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0297d0c50a6bfdf957563bde34b03d18cdc065cc2f95379e47480b5d36a5015d
BLAKE2b-256 checksum
How to use checksums
be8efe98e0e552c696369232edc3695f23438fd2259410cb5f024bd81a7af685
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for modelshub 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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