Metadata-Version: 2.4
Name: dddocr-py
Version: 0.1.0
Summary: Python client for the 3DOCR.com OCR API
Author-email: 3DOCR <info@3docr.com>
License: MIT
Project-URL: Homepage, https://github.com/3DOCR/DDDOCR-py
Project-URL: Issues, https://github.com/3DOCR/DDDOCR-py/issues
Keywords: ocr,3docr,document-processing,pdf,image
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Classifier: Intended Audience :: Developers
Requires-Python: >=3.3
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.28
Dynamic: license-file

# DDDOCR-py

Python client for the [3DOCR.com](https://3docr.com) OCR service.

## Install
```bash
pip install dddocr-py
```
## Quick start

```python
from dddocr_py import OCRService

service = OCRService(api_key="YOUR_API_KEY", auto_download=True)
job = service.convert(
    input_file_path="sample.pdf",
    options={"output_type": "pdf", "language": "eng"},
    save_path="sample_ocr.pdf",
)
print(job)  # status will update in background
```
## Manual download

```python
if job.status == "completed":
    job.download("output.pdf")
```
