Metadata-Version: 2.4
Name: rendrkit
Version: 0.1.0
Summary: Python SDK for RendrKit - Design API for AI Agents
Author: RendrKit
License: MIT
Project-URL: Homepage, https://rendrkit.dev
Project-URL: Repository, https://github.com/vbiff/rendrkit-python
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Provides-Extra: langchain
Requires-Dist: langchain-core; extra == "langchain"
Provides-Extra: crewai
Requires-Dist: crewai-tools; extra == "crewai"
Provides-Extra: all
Requires-Dist: langchain-core; extra == "all"
Requires-Dist: crewai-tools; extra == "all"
Dynamic: license-file

# RendrKit Python SDK

Python SDK for [RendrKit](https://rendrkit.dev) — the Design API for AI Agents. Generate professional images, social media posts, banners, certificates, and documents from text prompts or templates.

Works with **LangChain**, **CrewAI**, and as a standalone client.

## Installation

```bash
pip install rendrkit
```

With LangChain support:
```bash
pip install rendrkit[langchain]
```

With CrewAI support:
```bash
pip install rendrkit[crewai]
```

## Quick Start

```python
from rendrkit import RendrKit

client = RendrKit(api_key="your-api-key")

# Generate from a text prompt
result = client.generate(prompt="A modern Instagram post about coffee shop grand opening")
print(result["url"])

# Generate from a template
result = client.generate(
    template_id="tmpl_abc123",
    slots={"title": "Grand Opening!", "date": "March 1, 2026"},
    size="1080x1080"
)
print(result["url"])

# List templates
templates = client.list_templates(search="instagram")
```

## LangChain

```python
from rendrkit.langchain_tool import RendrKitTool, RendrKitDirectTool, RendrKitListTemplatesTool

# Add to your LangChain agent
tools = [
    RendrKitTool(api_key="your-api-key"),
    RendrKitDirectTool(api_key="your-api-key"),
    RendrKitListTemplatesTool(api_key="your-api-key"),
]
```

## CrewAI

```python
from rendrkit.crewai_tool import RendrKitCrewTool

# Add to your CrewAI agent
tools = [RendrKitCrewTool(api_key="your-api-key")]
```

## Supported Sizes

- `1080x1080` — Square (Instagram, Facebook)
- `1200x628` — Landscape (Facebook, LinkedIn)
- `1080x1920` — Story (Instagram, TikTok)
- `1200x1200` — Square large
- `1280x720` — HD landscape

## Documentation

Full docs at [https://rendrkit.dev/docs](https://rendrkit.dev/docs)

## License

MIT
