# camelot-dev/camelot

A Python library to extract tabular data from PDFs

Repository: https://github.com/camelot-dev/camelot
Canonical: https://ross.abutalabs.com/products/camelot
Homepage: https://camelot-py.readthedocs.io
Language: Python
License: MIT
License Family: permissive
Last push: 2026-08-06T07:43:57+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 87, longevity 100
- inputs: {"age_days": 2620, "days_push": 27, "days_rel": 90, "gap_med": 0, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3811, forks 543 (observed 2026-08-28T04:08:20.612526+00:00)

## What it is
Camelot is a Python library for extracting tabular data from PDFs, offering five parsers including heuristic (lattice, stream), text-alignment (network, hybrid), and an optional neural Table Transformer backend for borderless tables, plus OCR support for scanned PDFs. It outputs tables as pandas DataFrames with quality metrics and can export to CSV, JSON, Excel, HTML, Markdown, and SQLite, and also ships a CLI.

## Use cases
- extract tables from pdf files in python
- parse tabular data from pdfs into pandas dataframes
- scrape tables from borderless pdfs
- ocr tables from scanned pdf documents
- export pdf tables to csv or excel
- stitch multi-page tables across pdf pages

## When to choose
- you need structured table data out of PDFs in a Python pipeline
- you deal with ruled, whitespace-aligned, or borderless tables and want multiple parsing strategies
- you want quality metrics to filter out bad table detections
- you need a lightweight install with no system dependencies

## When to avoid
- you need general-purpose PDF text or layout extraction rather than tables
- you work outside Python and don't want a CLI-only workflow
- your PDFs are mostly images without any table structure

## Facets
- artifact type: library
- maturity: active
- function: pdf, parser, ocr, data-science, cli
- domain: pdf, data-science, files, developer-tools
- platform: python, cli, cross-platform
- tags: table-extraction, pdf-parsing, pandas, dataframe, csv-export, opencv, table-transformer

## Member repositories
- camelot-dev/camelot (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:20.612526+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:26:37.012679+00:00, confidence not recorded.
  - readme: https://github.com/camelot-dev/camelot (fetched 2026-08-28T04:08:20.612526+00:00, sha 50e99e4dc667)
- Data as of 2026-08-30T08:39:29.467469+00:00.
