Extracts data from PDF files and saves it to Excel files.
Project description
📄 pdfsp
pdfsp is a Python package that extracts tables from PDF files and saves them to Excel. It also provides a simple Streamlit app for interactive viewing of the extracted data.
🚀 Features
- Extracts tabular data from PDFs using
pdfplumber - Converts tables into
pandasDataFrames - Saves output as
.xlsxExcel files usingopenpyxl - Ensures column names are unique to prevent issues
- Visualizes DataFrames with
streamlit
📦 Installation
Make sure you're using Python 3.10 or newer, then install with:
pip install pdfsp -U
python script
# pdf.py
from pdfsp import extract_tables
source_folder = "."
output_folder = "output"
extract_tables(source_folder, output_folder )
From console / Terminal / Command Line
# all tables from all pdf files in the current folder to current folder
pdfsp . .
# all tables from all pdf files in someFolder to current SomeOutFolder
pdfsp someFolder SomeOutFolder
# all tables of some.pdf to the current folder
pdfsp some.pdf .
# all tables of some.pdf to the toThisFolder folder
pdfsp some.pdf toThisFolder
=== 📊 Extraction Summary Report ===
✅ Successful Files: 3
- pdfs/report1.pdf → 🗂️ 5 tables extracted
- pdfs/summary2.pdf → 🗂️ 3 tables extracted
- pdfs/report2.pdf → 🗂️ 7 tables extracted
❌ Failed Files: 1
- pdfs/corrupted.pdf
⚠️ Some files failed to process. See details above.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdfsp-0.1.8.tar.gz
(112.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pdfsp-0.1.8-py3-none-any.whl
(8.1 kB
view details)
File details
Details for the file pdfsp-0.1.8.tar.gz.
File metadata
- Download URL: pdfsp-0.1.8.tar.gz
- Upload date:
- Size: 112.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79e713315fa23f4426eb1c3723af9bda79d52a408f4d171e1bb68850d94006c3
|
|
| MD5 |
90979dcde6947849d2103a06d6ea5ebf
|
|
| BLAKE2b-256 |
7024e18d2954ec51e76fa192452fdcb898aaec71e6ffd3f812e1e3c51fffecc1
|
File details
Details for the file pdfsp-0.1.8-py3-none-any.whl.
File metadata
- Download URL: pdfsp-0.1.8-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f7a75cad8d97c6b977dfe263e63de0b12bed8bb498f70e4699bd8eab7988ad1
|
|
| MD5 |
3115d2dbdac5633f1fa75fcf2f26bb75
|
|
| BLAKE2b-256 |
ad8b6fb33607c46393e5d3ae4b6e0f3cba130554e1f2b8e3d53742aee4490dcf
|