Metadata-Version: 2.4
Name: lfx-paddle
Version: 0.1.0
Summary: PaddleOCR component (OCR and layout-aware document parsing via the AI Studio async Job API) as a standalone Langflow Extension Bundle.
Project-URL: Homepage, https://github.com/langflow-ai/langflow
Project-URL: Documentation, https://docs.langflow.org/extensions
Project-URL: Repository, https://github.com/langflow-ai/langflow
Author-email: Langflow <contact@langflow.org>
License: MIT
Keywords: bundle,extension,langflow,lfx,ocr,paddle,paddleocr
Requires-Python: <3.15,>=3.10
Requires-Dist: httpx<1.0.0,>=0.24.0
Requires-Dist: lfx<2.0.0,>=1.11.0.dev0
Description-Content-Type: text/markdown

# lfx-paddle

PaddleOCR as a standalone Langflow Extension Bundle.

Ships the **PaddleOCR** component, which performs either layout-aware document
parsing into Markdown (`PP-StructureV3`, `PaddleOCR-VL-1.6`) or plain OCR text
recognition (`PP-OCRv5`, `PP-OCRv6`). It talks to the PaddleOCR
[AI Studio async Job HTTP API](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/paddleocr_and_ppstructure.html)
(`submit -> poll -> fetch`) directly via `httpx`, so it does **not** require the
`paddleocr` Python SDK (whose transitive `pyyaml` constraint conflicts with
Langflow's dependency tree).

## Install

```bash
pip install lfx-paddle
```

The bundle is registered automatically via the `langflow.extensions`
entry-point. After install, restart your Langflow server; the component will
appear in the palette under the `paddle` group.

You will need an AI Studio access token
(<https://aistudio.baidu.com/account/accessToken>) to run the component.

## Develop

```bash
cd src/bundles/paddle
pip install -e .
lfx extension validate src/lfx_paddle
```

## Migration

Saved flows referencing the legacy class name or the old import paths under
`lfx.components.paddle.*` are rewritten to the new namespaced ID
`ext:paddle:PaddleOCRComponent@official` by the migration table in
`src/lfx/src/lfx/extension/migration/migration_table.json`.
