langchain-paddleocr
This package provides access to PaddleOCR's capabilities within the LangChain ecosystem.
Quick Install
pip install langchain-paddleocr
Basic Usage
PaddleOCRVLLoader
The PaddleOCRVLLoader enables you to:
- Extract text and layout information from PDF and image files using models from Baidu's PaddleOCR-VL series (e.g., PaddleOCR-VL, PaddleOCR-VL-1.5, PaddleOCR-VL-1.6)
- Process documents from local files or remote URLs
Basic usage of PaddleOCRVLLoader looks as follows:
from langchain_paddleocr import PaddleOCRVLLoader
from pydantic import SecretStr
loader = PaddleOCRVLLoader(
file_path="path/to/document.pdf",
base_url="your-api-endpoint",
model="PaddleOCR-VL-1.5",
access_token=SecretStr("your-access-token") # Optional if using environment variable `PADDLEOCR_ACCESS_TOKEN`
)
docs = loader.load()
for doc in docs[:2]:
print(f"Content: {doc.page_content[:200]}...")
print(f"Source: {doc.metadata['source']}")
print("---")
📖 Documentation
For full documentation, see the LangChain Docs.
Metadata
Release files for langchain-paddleocr 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_paddleocr-0.2.2.tar.gz | 362.1 kB | Without provenance | Details for langchain_paddleocr-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_paddleocr-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for langchain_paddleocr-0.2.2-py3-none-any.whl |
Total release size: 368.8 kB
Release files / langchain_paddleocr-0.2.2.tar.gz
| Download URL | langchain_paddleocr-0.2.2.tar.gz |
|---|---|
| Size | 362.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc3fdecaf35871280d96af96952227710e19c94398ca07842e671a38f20da76b
|
|
BLAKE2b-256 checksum How to use checksums |
7ef9dc75a33bbec9457f7ea56f1e79476cf28128a9704b5adb8a144051ac693d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / langchain_paddleocr-0.2.2-py3-none-any.whl
| Download URL | langchain_paddleocr-0.2.2-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9a60a879b1a23b8607827a953a8a2b368a7057ce3b240fb6346e844a413da81
|
|
BLAKE2b-256 checksum How to use checksums |
7ef01f4ffd21b616cd12b8ac6481fe6ab43389127e49a57ceb0fa7b921ad8dae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for langchain-paddleocr 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.