Metadata-Version: 2.4
Name: ozaru
Version: 0.1.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Text Processing
Classifier: Typing :: Typed
License-File: LICENSE
Summary: Extrae texto y cuenta las páginas de archivos PDF desde Python, con un núcleo en Rust.
Keywords: pdf,text-extraction,rust
Author: Jair Estupiñan
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Issues, https://github.com/Jair-dev57/ozaru/issues
Project-URL: Repository, https://github.com/Jair-dev57/ozaru

# ozaru

Extrae texto y cuenta las páginas de archivos PDF desde Python. El núcleo está
escrito en Rust y usa [pdf_oxide](https://crates.io/crates/pdf_oxide).

## Instalación

```bash
pip install ozaru
```

Requiere Python 3.10 o superior.

## Uso

```python
import ozaru

ozaru.page_count("documento.pdf")    # 3
ozaru.extract_text("documento.pdf")  # "Todo el texto del PDF..."
```

## Errores

| Excepción           | Cuándo ocurre                                          |
|---------------------|--------------------------------------------------------|
| `FileNotFoundError` | El archivo no existe.                                  |
| `ValueError`        | El archivo no se puede abrir o leer como un PDF válido. |

## Licencia

[MIT](https://github.com/Jair-dev57/ozaru/blob/main/LICENSE)

