liteparse
Python bindings for LiteParse - fast, lightweight PDF and document parsing
What it is and what it does
LiteParse is a Python wrapper around a Rust-based PDF and document parser that extracts text while preserving spatial layout information. It supports multiple input formats (PDF, Office documents, images) and can output structured data as JSON, plain text, or reconstructed Markdown. The package includes built-in OCR via Tesseract, configurable image extraction, annotation and form-field parsing, and a CLI tool (`lit`) for command-line workflows.
Typical use cases include feeding documents into RAG pipelines and LLMs by converting PDFs to clean Markdown, routing documents to different processing pipelines based on complexity detection, and extracting structured data (images, links, annotations) from mixed document types. The package is designed to be lightweight and fast, with no runtime Python dependencies, though some features (like OCR and Office format support) require optional system libraries.
Use it for:
- Convert PDFs to Markdown for ingestion into LLM and RAG systems with preserved structure and links.
- Extract and route documents based on complexity signals (scanned vs. digital text) to optimize processing cost.
- Batch-parse large document collections via the CLI or Python API with configurable OCR and image extraction.
- Recover structured data from PDFs including images, annotations, form fields, and tagged logical structure.
- Generate PNG screenshots of specific document pages for preview or archival purposes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
LiteParse provides Python bindings for fast, lightweight PDF and document parsing with spatial text extraction, OCR support, and output to JSON, plain text, or Markdown.
Yes. LiteParse is actively maintained, has no known vulnerabilities, supports modern Python versions, and solves a real problem (document parsing for LLM/RAG workflows) with a clean API. The permissive Apache-2.0 license and zero runtime Python dependencies keep friction low. Install it if you need to parse PDFs or mixed document formats into structured text or Markdown; skip it only if you have a simpler use case or a strong preference for pure-Python solutions.
Install
liteparse on PyPI
pip
pip install liteparseuv
uv add liteparsepoetry
poetry add liteparseInstalling liteparse
Before you install
Medium install friction due to compiled wheels, but well-supported across Python 3.10–3.14 on Linux, macOS, and Windows. Active maintenance with a recent release (1 day old) and 12093 repository stars suggest solid upkeep.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production and proprietary projects.
Quickstart
pip install liteparse
from liteparse import LiteParse
parser = LiteParse()
result = parser.parse("document.pdf")
print(result.text)
print(f"Source document pages: {result.total_pages}")
Requires Python 3.10 or later. LibreOffice is required to parse Microsoft Office and OpenDocument formats (.docx, .xlsx, .pptx, .odt, .ods, .odp).
Verify before relying
- Performance characteristics (parsing speed, memory usage) for large documents or batch operations.
- Accuracy of OCR and Markdown reconstruction quality on complex or scanned documents.
- Whether the `lit` CLI command is fully featured or a subset of the Python API.
- Compatibility or integration with specific RAG frameworks or LLM pipelines.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 383,995/month — #7,070 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: liteparse-2.12.0-cp310-cp310-manylinux_2_28_aarch64.whl; liteparse-2.12.0-cp310-cp310-manylinux_2_28_x86_64.whl; liteparse-2.12.0-cp310-cp310-win_amd64.whl; liteparse-2.12.0-cp311-cp311-macosx_10_12_x86_64.whl; liteparse-2.12.0-cp311-cp311-macosx_11_0_arm64.whl; liteparse-2.12.0-cp311-cp311-manylinux_2_28_aarch64.whl; liteparse-2.12.0-cp311-cp311-manylinux_2_28_x86_64.whl; liteparse-2.12.0-cp311-cp311-win_amd64.whl; liteparse-2.12.0-cp312-cp312-macosx_10_12_x86_64.whl; liteparse-2.12.0-cp312-cp312-macosx_11_0_arm64.whl; liteparse-2.12.0-cp312-cp312-manylinux_2_28_aarch64.whl; liteparse-2.12.0-cp312-cp312-manylinux_2_28_x86_64.whl; liteparse-2.12.0-cp312-cp312-musllinux_1_2_x86_64.whl; liteparse-2.12.0-cp312-cp312-win_amd64.whl; liteparse-2.12.0-cp312-cp312-win_arm64.whl; liteparse-2.12.0-cp313-cp313-macosx_10_12_x86_64.whl; liteparse-2.12.0-cp313-cp313-macosx_11_0_arm64.whl; liteparse-2.12.0-cp313-cp313-manylinux_2_28_aarch64.whl; liteparse-2.12.0-cp313-cp313-manylinux_2_28_x86_64.whl; liteparse-2.12.0-cp313-cp313-win_amd64.whl
Keywords: pdf, parsing, ocr, document, text-extraction
Tags
More Text Processing packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyparsingpyparsing provides a library for building text…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
RapidFuzzRapidFuzz provides fast fuzzy string matching…
permissive · top 1,000 on PyPI
tinycss2tinycss2 parses CSS strings into token and…
permissive · top 1,000 on PyPI
llama-parseLlamaParse parses complex documents (PDFs,…
permissive · top 1,000 on PyPI
pymupdf4llmConverts PDFs and documents into clean,…
agpl · top 1,000 on PyPI
opendataloader-pdfExtracts structured data (Markdown, JSON, HTML)…
permissive · top 15,000 on PyPI
mineruConverts PDF, DOCX, PPTX, XLSX, images, and web…
unclear · top 15,000 on PyPI
unPDFExtracts individual characters and metadata…
permissive · top 15,000 on PyPI
pymupdfPyMuPDF extracts, renders, converts, and…
agpl · top 1,000 on PyPI
pdf-oxideExtracts text, images, and metadata from PDFs…
permissive · top 15,000 on PyPI
pdftotextExtracts text from PDF files, including…
permissive · top 15,000 on PyPI
amazon-textract-callerWrapper around Amazon Textract that handles…
permissive · top 5,000 on PyPI
llama-cloudPython SDK for LlamaParse, an enterprise OCR…
permissive · top 1,000 on PyPI