skillfed

liteparse

Python bindings for LiteParse - fast, lightweight PDF and document parsing

liteparse v2.12.0 384.0K downloads/30d#7,070 on PyPI12,093
Permissive license Apache-2.0 Active released

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 liteparse

uv

uv add liteparse

poetry

poetry add liteparse

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: RustTopic :: Scientific/Engineering :: Information AnalysisTopic :: Text ProcessingTyping :: Typed

Tags

pdf parsing pythondocument text extractionocr pdf extractionmarkdown from pdfspatial text layoutlightweight pdf parserrag document processing
pdf-parsingocrrag-pipeline

More Text Processing packages