Homogene
Homogene is a Python library that helps data scientists apply LLM instructions to every row of a pd.DataFrame for data processing.
Running an LLM over a pd.DataFrame column is easy for 10 rows. At 10,000 rows, you're managing threads, catching per-row errors, and checkpointing progress. Homogene handles all of that so you focus on the instruction, not the infrastructure.
Processors
Homogene currently ships with one processor: Generator, which applies a plain-text instruction to every row of a pd.DataFrame independently and in parallel. More processors are coming soon.
Homogene uses LiteLLM to route model calls. Please refer to their documentation for the full list of supported models.
Install
pip install homogene
Quick start
import os
import pandas as pd
from homogene import Generator
os.environ["OPENAI_API_KEY"] = "your-api-key"
df = pd.read_csv("tickets.csv")
generator = Generator(
df=df,
columns=["subject", "body"],
instruction="Identify the main topic of this support ticket in three words or less.",
model="gpt-5.5",
)
df["topic"] = generator.run()
For a full walkthrough see the Generator example notebook, covering:
- Model configuration
- Freeform generation
- Structured output
- Prompt inspection
- Subset runs
- Checkpointing
- Error handling
Metadata
Release files for homogene 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| homogene-0.1.0.tar.gz | 22.1 kB | Without provenance | Details for homogene-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| homogene-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for homogene-0.1.0-py3-none-any.whl |
Total release size: 37.7 kB
Release files / homogene-0.1.0.tar.gz
| Download URL | homogene-0.1.0.tar.gz |
|---|---|
| Size | 22.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02cad7b5a737c751d8a9a16accf38972eca840fa201fc7c74f93a9a99d906f7e
|
|
BLAKE2b-256 checksum How to use checksums |
b9694b1cd8ba0411d7f9ef0750f4bfaa7450e8473865a537bd152769ab8f2988
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / homogene-0.1.0-py3-none-any.whl
| Download URL | homogene-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c834ef40a848d316f6abe0554d54252025ea2cdcbcac33295cb5df75b504f234
|
|
BLAKE2b-256 checksum How to use checksums |
87f1f95073f2a446f54ac0e68f37e6b2d044c1bffe17e4cbf00341ae1062987f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for homogene 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.