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.3.tar.gz
(66.0 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.3-py3-none-any.whl
(6.8 kB
view details)
File details
Details for the file pdfsp-0.1.3.tar.gz.
File metadata
- Download URL: pdfsp-0.1.3.tar.gz
- Upload date:
- Size: 66.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75c7f9aa73ca952b0768d33648b1ba2c8343a6a444d5467c5d186198607a1c28
|
|
| MD5 |
6860154b9f2f186e390e97cf29f9f4ff
|
|
| BLAKE2b-256 |
fdcaea3f0d58e7c004d9a53bfec26d7dc1e6ddf84b3deb003b8b4d70c627fb5a
|
File details
Details for the file pdfsp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pdfsp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ec575b9093547bed3c71e05073984f8f726fe30713247bee132981bf3bb0bb1
|
|
| MD5 |
adc8a4812ef2c2fd13658a2400e51524
|
|
| BLAKE2b-256 |
0a0af92d178a5b2dacf89eb2f2219cc66d4538e57ad71baca5195c502c490794
|