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.5.tar.gz
(68.8 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.5-py3-none-any.whl
(6.9 kB
view details)
File details
Details for the file pdfsp-0.1.5.tar.gz.
File metadata
- Download URL: pdfsp-0.1.5.tar.gz
- Upload date:
- Size: 68.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bd82d7ef017fbf7e468f2c832cb4463f67d45b930a9279b43a4eb9e63e8f642
|
|
| MD5 |
5481141f3740af6cdd0def6a4be21174
|
|
| BLAKE2b-256 |
5a0a156145812c19443f5ba5f4315c792fd763e8ebde3735257b5036c5c63e1b
|
File details
Details for the file pdfsp-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pdfsp-0.1.5-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 |
b1e328c169d9c20f136af5dad3ef9fb294359d9a4ca8c93bad11a4856b483b70
|
|
| MD5 |
21ad3783af17a34042b32dd95bb21c98
|
|
| BLAKE2b-256 |
83f1da4a0d0cd12ad89c1a4bc069ad6f3efc39f8430a11e036c74349a23ebec4
|