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
from pdfsp import extract_tables
source_folder = "."
output_folder = "output"
extract_tables(source_folder, output_folder )
From console
# 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.2.tar.gz
(65.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.2-py3-none-any.whl
(6.4 kB
view details)
File details
Details for the file pdfsp-0.1.2.tar.gz.
File metadata
- Download URL: pdfsp-0.1.2.tar.gz
- Upload date:
- Size: 65.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ca8b7e5267a7eaf7023716b10b4e86b3bc3590201aee69d5f8c86e6fb91db0e
|
|
| MD5 |
f940f6570c8fc9924831bda5dbdae4b4
|
|
| BLAKE2b-256 |
cdb1542ef3fa0d37e979baa6ee6317acec049e655e7c1699dfcb0dae7598b185
|
File details
Details for the file pdfsp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pdfsp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f864998f20656cdae1f0212233a2655a5cbff5b292e7d321721a303ac502702
|
|
| MD5 |
4f9470358a9d7600565b03d14b75b194
|
|
| BLAKE2b-256 |
d51a55fa054bba4abdb1d0ae753d935885437923e94aae76cb21a5d4fe403de9
|