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
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.6.tar.gz
(111.7 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.6-py3-none-any.whl
(7.4 kB
view details)
File details
Details for the file pdfsp-0.1.6.tar.gz.
File metadata
- Download URL: pdfsp-0.1.6.tar.gz
- Upload date:
- Size: 111.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99b5ebd8893ec053a1bd9ee14a7d8a916fa1dea4c853f069e989d30d12db56a6
|
|
| MD5 |
d80486d08be77e759894ff401a5a1b45
|
|
| BLAKE2b-256 |
c13368cb5d2260f1969ae7f97cd97dbe0446f310a9150a87112e10c97310fc1c
|
File details
Details for the file pdfsp-0.1.6-py3-none-any.whl.
File metadata
- Download URL: pdfsp-0.1.6-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86cea998200f07bf3bbc4e379a9d1c0deaac768fd2c5983f70238400e90a0250
|
|
| MD5 |
f2259d78da10c162e790c9b0abb7909f
|
|
| BLAKE2b-256 |
1d9c85ac74aafe1b458f71b539b2d77515627de5d222a5ce2d0e8eae9bdbff4d
|