camelot-py
PDF Table Extraction for Humans.
Decision gist · record as of 2026-08-14
Yes. Actively maintained, no known vulnerabilities, installs with low friction (no system dependencies by default), and well-suited for any workflow requiring PDF table extraction into pandas. The multiple parsing strategies and optional neural backend make it flexible for ruled, borderless, and scanned tables. MIT license poses no restrictions.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- For scanned/image-only PDFs, install optional OCR backend: pip install 'camelot-py[ml,ocr]'.
- Low friction: ships as a pure wheel with no system dependencies by default.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute freely in commercial or private projects with minimal restrictions.
last release 2026-06-04 (71 days) · last repo commit 2026-08-06 · 3,811 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 844,528 downloads/mo, #4,922 on PyPI
Alternatives
Verify before relying
pip install camelot-py
import camelot
tables = camelot.read_pdf('file.pdf')
tables.export('output.csv', f='csv')
df = tables[0].df- Accuracy of the optional neural (ml) backend on your specific table types and whether it justifies the PyTorch dependency.
- Performance characteristics when processing very large PDFs or many tables in batch.
- Whether the optional ghostscript or poppler backends are available as extras in the current release.
What it is and what it does
This library extracts tables from PDF files into structured data using five parsing strategies: lattice (for ruled tables with visible grid lines), stream and network (for borderless tables using whitespace heuristics), hybrid (combining text alignment), and an optional neural backend using a Table Transformer model for hard borderless cases. It also supports scanned PDFs via optional OCR integration. Every extracted table becomes a pandas DataFrame, ready for analysis or export to multiple formats (CSV, JSON, Excel, HTML, Markdown, SQLite).
The package handles both text-based and image-only PDFs, provides quality metrics (accuracy, whitespace, confidence scores) to filter noise, supports multi-page table continuations, and includes a command-line interface. Default installation requires no system dependencies—the pdfium backend is bundled as a wheel. Optional extras add neural parsing and OCR capabilities. Configuration is extensive, covering table areas, column separators, and text processing.
Use it for
- Extract financial tables from annual reports or regulatory filings into DataFrames for analysis.
- Batch-convert tabular data from scanned PDFs or image-only documents using the optional OCR backend.
- Automatically recover table structure from borderless PDFs using the neural ml backend when heuristics fail.
- Build ETL pipelines that read PDF tables, filter by quality metrics, and export to CSV or databases.
- Parse mixed PDF documents with both ruled and borderless tables using flavor='auto' for automatic parser selection.
- Stitch multi-page tables across PDF boundaries with stack_contiguous() for continuous data extraction.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Actively maintained, no known vulnerabilities, installs with low friction (no system dependencies by default), and well-suited for any workflow requiring PDF table extraction into pandas. The multiple parsing strategies and optional neural backend make it flexible for ruled, borderless, and scanned tables. MIT license poses no restrictions.
Install
camelot-py on PyPI
Before you install
Low friction: ships as a pure wheel with no system dependencies by default. Active maintenance with recent release 71 days ago and 3811 repository stars. Supports Python 3.10–3.14.
Requires Python 3.10 or later. For scanned/image-only PDFs, install optional OCR backend: pip install 'camelot-py[ml,ocr]'.
License in practice
MIT license is permissive; you can use, modify, and distribute freely in commercial or private projects with minimal restrictions.
Quickstart
pip install camelot-py
import camelot
tables = camelot.read_pdf('file.pdf')
tables.export('output.csv', f='csv')
df = tables[0].df
Verify before relying
- Accuracy of the optional neural (ml) backend on your specific table types and whether it justifies the PyTorch dependency.
- Performance characteristics when processing very large PDFs or many tables in batch.
- Whether the optional ghostscript or poppler backends are available as extras in the current release.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 10 packagesclicknumpyopenpyxlpandastabulatetyping-extensionsopencv-python-headlesspypdfium2pillowplaya-pdf |
| Maintenance | Actively maintained 71 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 844,528 / month, #4,922 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: camelot_py-2.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pdf table extraction”
- camelot-pyExtracts tables from PDFs into pandas DataFrames using multiple…
- pdfplumberExtract detailed information about text characters, rectangles,…
- tabula-pyExtracts tables from PDF files and converts them into pandas…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also tabula-py · img2table · pymupdf · pdftext · pdfplumber · opendataloader-pdf · pdf-oxide · pantab · html-table-parser-python3 · fpdf2