semvec/pypi-packages huggingface dataset:
hamtaa-batch-runner 0.0.1
A tool to process large datasets using OpenAI's batch API
License: MIT
Requires Python: >=3.9
Keywords: nlp, llm, text-processing, openai

# Batch Runner

![PyPI](https://img.shields.io/pypi/v/hamtaa-batch-runner)
![License](https://img.shields.io/pypi/l/hamtaa-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()
```

---

## 🤝 Contributing

Contributions are welcome!  
Feel free to **open issues, suggest new features, or submit pull requests**.