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
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.4.tar.gz
(68.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.4-py3-none-any.whl
(6.9 kB
view details)
File details
Details for the file pdfsp-0.1.4.tar.gz.
File metadata
- Download URL: pdfsp-0.1.4.tar.gz
- Upload date:
- Size: 68.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
076cb888f0cacc44a67f48fc45b7944190f5309c50ba0e3cd157826300c9cd6c
|
|
| MD5 |
06a357cde50887c9225e0f0de425fbd3
|
|
| BLAKE2b-256 |
f4ac29b8fe375897dfbfcfd4287af5e101daaf9077b07bfd12b764b9d70a18ac
|
File details
Details for the file pdfsp-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pdfsp-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f11f7aca90aa128082358909569bcdcba800786bb1a21a63bc78b7338475f02
|
|
| MD5 |
607615f854791c21f02cab63ed38413e
|
|
| BLAKE2b-256 |
8168b5828374029c5262c62b07149857dffa3ee5db9a32ad5b8df3ede2639ec9
|