chunkr-ai
Python client for Chunkr: open source document intelligence
What it is and what it does
Chunkr-ai is a Python client library for the Chunkr document intelligence API. It wraps HTTP calls to a remote Chunkr service (hosted or self-deployed) to upload documents and images, then retrieve processed results with configurable extraction strategies. The client handles both synchronous and asynchronous I/O, supports file paths, file objects, and PIL images as input, and allows fine-grained control over processing via Configuration objects (OCR strategy, segmentation approach, chunk sizing, JSON schema extraction, and result expiration).
The package is built on httpx, pydantic, and python-dotenv, making it lightweight and straightforward to integrate into existing Python workflows. It supports concurrent processing via asyncio or multiprocessing, and manages resource cleanup through context-aware close methods. The primary use case is extracting structured or semi-structured data from unstructured documents at scale, with the actual intelligence work delegated to the Chunkr backend.
Use it for:
- Batch extract text, tables, and metadata from a folder of PDFs using async concurrency.
- Build a document ingestion pipeline that converts images and scans into structured JSON matching a custom schema.
- Integrate document processing into a web service that accepts file uploads and returns parsed results.
- Automate OCR and layout analysis on high-resolution scans with configurable segmentation strategies.
- Process documents across multiple worker processes to parallelize I/O-bound uploads and polling.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client for the Chunkr document intelligence API that uploads files and images for processing, supporting both synchronous and asynchronous workflows.
Yes, if you need to integrate Chunkr's document processing service into a Python application. The client is straightforward to use, supports both sync and async patterns, and has no known vulnerabilities. Install friction is low. However, you depend entirely on the Chunkr backend's availability and the package's aging maintenance status suggests reduced active development—verify that the service meets your reliability and support expectations before committing.
Install
chunkr-ai on PyPI
pip
pip install chunkr-aiuv
uv add chunkr-aipoetry
poetry add chunkr-aiInstalling chunkr-ai
Before you install
Low friction install with five straightforward runtime dependencies. The package is aging (373 days since release) but continues to receive updates; maintenance status suggests it may not be actively developed.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install chunkr-ai
from chunkr_ai import Chunkr
chunkr = Chunkr()
task = chunkr.upload("document.pdf")
print(task.task_id)
chunkr.close()
Requires Python 3.10 or later. API key from Chunkr or self-hosted instance required; set via CHUNKR_API_KEY environment variable or direct initialization.
Verify before relying
- Whether the Chunkr backend service is actively maintained and what its uptime/reliability guarantees are.
- Performance characteristics for concurrent processing at scale (throughput, latency, rate limits).
- Whether the package's aging status reflects stable maturity or reduced active development.
Package facts
| License | MIT License Copyright (c) 2025 Lumina AI INC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — httpx, nest-asyncio, pillow, pydantic, python-dotenv |
| Maintenance | aging — 373 days since the last release |
| First released | |
| Downloads | 3,834,366/month — #2,486 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: chunkr_ai-0.3.7-py3-none-any.whl
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
datalab-python-sdkA Python SDK for calling the Datalab API to…
permissive · top 15,000 on PyPI
python-documentcloudA Python wrapper for the DocumentCloud API that…
permissive · top 15,000 on PyPI
mistralaiPython client SDK for the Mistral AI API,…
unclear · top 1,000 on PyPI
unstructured.pytesseractPython wrapper for Google's Tesseract OCR…
permissive · top 15,000 on PyPI
google-resumable-mediaHandles resumable uploads and downloads for…
permissive · top 1,000 on PyPI
pymupdfPyMuPDF extracts, renders, converts, and…
agpl · top 1,000 on PyPI
kreuzbergExtracts text, tables, images, and metadata…
permissive · top 15,000 on PyPI
aurelio-sdkClient library for the Aurelio Platform that…
unclear · top 15,000 on PyPI
python-multipartParses multipart form data from HTTP requests…
permissive · top 1,000 on PyPI
layoutparserLayoutParser provides deep learning-based…
permissive · top 5,000 on PyPI