Metadata-Version: 2.4
Name: perfectum
Version: 0.1.4
Summary: Perfect your text processing pipeline.
Author-email: Georgiy Ozhegov <georgiyozhegov.rs@gmail.com>
Requires-Python: >=3.13
Description-Content-Type: text/markdown
Provides-Extra: ftfy
Requires-Dist: ftfy; extra == "ftfy"
Provides-Extra: translate
Requires-Dist: googletrans; extra == "translate"
Provides-Extra: gpt
Requires-Dist: g4f; extra == "gpt"

_Perfectum_ -- chain-based text processing library aiming for simplicity and productivity.

# Usage

To install, run:

```bash
pip install perfectum[gpt,translate]
```

And then, edit the _main.py_ file:

```python
from perfectum.all import *

chain = Chain(
    [
        Translate("en"),
        Asciify(),
        Trim(),
        CollapseWhitespace(),
        Gpt("gpt-4o-mini", "Summarize the text in a less than 10 words."),
    ]
)
print(chain)

text = open("sample.text").read()
text = chain.process(text)
print(text)
```
