Data & ExtractionOpen source codecamelot-dev/camelot

Camelot: Open Source AI Repository & Self-Hosting Guide

Open-source Python library engineered to extract bordered and whitespace-aligned tables from digital PDFs directly into pandas DataFrames, CSV, and Excel.

GitHub Stars
3,863 stars
Repository License
MIT
Last Push (UTC)
Nov 28, 2026
Check the repo's license. Model weights may have a different license.
git clone https://github.com/camelot-dev/camelot.git
View on GitHub
Installpip install 'camelot-py[cv]'

Camelot: Architecture & Practical Workflow

Unlike generic OCR tools, Camelot reads native PDF vector lines (`lattice` mode using OpenCV) and character coordinates (`stream` mode) to extract crisp tables with per-page accuracy/whitespace scores and matplotlib visual debugging overlays.

Recommended End-to-End Pipeline

Inspect digital bank statements or government PDF tables with `camelot.read_pdf('report.pdf', flavor='lattice')`, verify extraction metrics, and export `.to_excel()`.

Runtime Target
Python library (GitHub)
Primary Users
Analysts, Developers
Code License
MIT
Focus Topics
open-source, github, tables, pdf, self-hosted

Quick Setup & Installation Steps

Platform target: Python library (GitHub). Always verify environment variables and dependencies in the upstream repository README.

  1. 1Clone the repository from GitHub: `git clone https://github.com/camelot-dev/camelot.git && cd camelot`.
  2. 2Review the MIT license (Check the repo's license. Model weights may have a different license.) and note any separate terms on external model weights.
  3. 3Install or launch the project directly: `pip install 'camelot-py[cv]'` (use an isolated Python virtualenv, Node workspace, or Docker volume so dependencies remain clean).
  4. 4Validate end-to-end behavior with a small sample input (Inspect digital bank statements or government PDF tables with `camelot.read_pdf('report.pdf', flavor='lattice')`, verify extraction metrics, and export `.to_excel()`.)

Hardware & VRAM Notes

Runs on standard developer workstations without specialized hardware unless loading large local weights.

CPU & Memory

Modern multi-core CPU with 8 GB–16 GB RAM for orchestration, CLI agents, OCR/document parsing, or UI workflows (32 GB+ if co-hosting large local LLMs).

GPU / VRAM

Optional unless running local neural weights; pairs cleanly with local inference servers (Ollama / llama.cpp) or remote endpoints.

Runtime Target

Python library (GitHub)

Strengths & Best For

  • Table extraction
  • Exports to CSV or Excel
  • Visual debugging tools
  • Best suited for: Analysts, Developers

Limitations & Caveats

  • Does not read scanned PDFs without OCR
  • Needs tuning for complex tables
  • Check the repo's license. Model weights may have a different license.

3 Similar Tools on /tools (Data)

Prefer a hosted web app instead of managing local weights or Docker containers? Explore these cloud alternatives.

Browse all tools
Self-Hosted Camelot vs. Hosted Alternatives (AI PDF Data Extractor & Formula Bot)
FactorCamelot (Self-Hosted)AI PDF Data ExtractorFormula Bot
Execution & PrivacyRuns locally via Python library (GitHub); data stays on your disk or private server.Hosted cloud web interface; zero local dependency setup required.Hosted cloud web interface; zero local dependency setup required.
Cost & QuotaMIT code; bound only by local CPU/GPU hardware.Free; subject to vendor free-tier limits or paid plans.Freemium; subject to vendor free-tier limits or paid plans.
Primary FitTable extraction; Exports to CSV or ExcelExtract tables, form fields, and scanned PDF documents into structured Excel (.xlsx), CSV, or JSON without coding or regex templates.AI spreadsheet and data analytics tool turning plain-English prompts into complex Excel/Google Sheets formulas, SQL, and charts.
Key Trade-offDoes not read scanned PDFs without OCRRequires internet access and vendor account/quota limits.Requires internet access and vendor account/quota limits.

Matching Ready-Made Prompts

All Prompts →

Customize variables in Live Prompt Studio for Camelot workflows.

Commercial Bank Loan Amortization Schedule TabulatorExtraction · Banking, Loan, Amortization, Mortgage
Open in Studio
Complex Bank Statement & Ledger NormalizerExtraction · Finance, Bank Statement, Excel, CSV
Open in Studio
Freight Bill of Lading (BOL) & Shipping Manifest ExtractorExtraction · Logistics, Bill of Lading, Freight, Shipping
Open in Studio

More Open Source Data & Extraction Repositories

Frequently Asked Questions

What does Camelot do and how does it work?

Camelot (camelot-dev/camelot) is an open-source data & extraction project with 3,863 stars on GitHub. Open-source Python library engineered to extract bordered and whitespace-aligned tables from digital PDFs directly into pandas DataFrames, CSV, and Excel. Unlike generic OCR tools, Camelot reads native PDF vector lines (`lattice` mode using OpenCV) and character coordinates (`stream` mode) to extract crisp tables with per-page accuracy/whitespace scores and matplotlib visual debugging overlays.

Is Camelot free to self-host and use commercially?

Camelot provides open source code licensed under MIT. Check the repo's license. Model weights may have a different license. Always verify both source code and model weight licenses in the GitHub repository before commercial deployment.

What hardware, runtime, or VRAM does Camelot require?

Camelot targets Python library (GitHub). Typical installation runs via `pip install 'camelot-py[cv]'`. Does not read scanned PDFs without OCR

How does self-hosting Camelot compare to hosted tools like AI PDF Data Extractor?

Self-hosting Camelot gives you full local data control, zero per-usage vendor fees, and customizable Python library (GitHub) pipelines—at the cost of managing your own setup and compute. By contrast, AI PDF Data Extractor (Free) runs in the browser with no local installation, though usage quotas and cloud privacy policies apply.

Is Camelot actively maintained and what workflow fits it best?

Repository metadata records 3,863 stars on GitHub with the latest recorded push on Nov 28, 2026. Inspect digital bank statements or government PDF tables with `camelot.read_pdf('report.pdf', flavor='lattice')`, verify extraction metrics, and export `.to_excel()`.