Metadata-Version: 2.4
Name: amyrmahdy-llmwrap
Version: 0.1.0
Summary: Lightweight, production-ready adapter for LLM chat completions (text + multimodal)
Project-URL: Homepage, https://github.com/amyrmahdy/llmwrap
Project-URL: Repository, https://github.com/amyrmahdy/llmwrap.git
Project-URL: Documentation, https://github.com/amyrmahdy/llmwrap#readme
Project-URL: Issues, https://github.com/amyrmahdy/llmwrap/issues
Author-email: amyrmahdy <amyrmahdy1@gmail.com>
License: MIT
Keywords: ai,llm,multimodal,openai,wrapper
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Requires-Dist: openai>=1.0.0
Description-Content-Type: text/markdown

# llmwrap

Lightweight adapter for LLM chat completions — text, images, PDFs/files.  
OpenAI-compatible (works great with OpenRouter, Anthropic via compat layer, etc.).

## Installation

```bash
pip install llmwrap
# or
uv add llmwrap
```

## Quick start
```python
from llmwrap import LLM

llm = LLM(
    api_key="sk-...",
    base_url="https://openrouter.ai/api/v1",
    model="anthropic/claude-3.5-sonnet",
)

# Text
print(llm.complete([{"role": "user", "content": "Hi!"}]))

# Image + text
messages = [
    {"role": "user", "content": [
        LLM.text_content("Describe this."),
        LLM.image_content("photo.jpg"),
    ]}
]
print(llm.complete(messages))
```