Metadata-Version: 2.4
Name: hamtaa-batch-runner
Version: 0.0.0
Summary: A tool to process large datasets using OpenAI's batch API
Author-email: Givechi <mohamad.m.givechi@gmail.com>, Tohidi <the.mohammad.tohidi@gmail.com>, Erfan Moosavi <erfanmoosavi84@gmail.com>
License: MIT
Keywords: nlp,llm,text-processing,openai
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openai>=1.97.1
Requires-Dist: pydantic>=2.0.0
Dynamic: license-file

# Batch Runner

## 📌 Overview

Process large datasets efficiently using OpenAI's batch API.

---

## 🚀 Installation

Install the latest release via PyPI:

```bash
pip install -U hamtaa-batch-runner
```

---

## ⚡ Quick Start

```python
from pydantic import BaseModel
from texttools import BatchRunner, BatchConfig

config = BatchConfig(
    system_prompt="Extract entities from the text",
    job_name="entity_extraction",
    input_data_path="data.json",
    output_data_filename="results.json",
    model="gpt-4o-mini"
)

class Output(BaseModel):
    entities: list[str]

runner = BatchRunner(config, output_model=Output)
runner.run()
```
