Metadata-Version: 2.4
Name: rusto
Version: 0.3.2
Summary: Pure Rust OCR library for Python based on RapidOCR and PaddleOCR
Author-email: RustO Contributors <contact@rusto.dev>
License-Expression: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: test
Requires-Dist: pytest>=7.0; extra == "test"

# RustO for Python

[![PyPI](https://img.shields.io/pypi/v/rusto.svg?logo=pypi&logoColor=white&color=blue)](https://pypi.org/project/rusto/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Pure Rust OCR library for Python based on RapidOCR and PaddleOCR architectures.

## Installation

```bash
pip install rusto
```

## Quick Start

```python
from rusto import RustO, InitializeConfig

# Initialize engine with preset or model paths
engine = RustO.initialize(InitializeConfig(template="ppv6"))

# Run OCR detection
result = engine.detect_text(path="document.png")
for line in result.results:
    print(f"{line.text} (score: {line.score:.2f})")
```

## License

MIT
