Skip to main content

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 pandas DataFrames
  • Saves output as .xlsx Excel files using openpyxl
  • 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdfsp-0.1.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

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

Hashes for pdfsp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 75c7f9aa73ca952b0768d33648b1ba2c8343a6a444d5467c5d186198607a1c28
MD5 6860154b9f2f186e390e97cf29f9f4ff
BLAKE2b-256 fdcaea3f0d58e7c004d9a53bfec26d7dc1e6ddf84b3deb003b8b4d70c627fb5a

See more details on using hashes here.

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

Hashes for pdfsp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8ec575b9093547bed3c71e05073984f8f726fe30713247bee132981bf3bb0bb1
MD5 adc8a4812ef2c2fd13658a2400e51524
BLAKE2b-256 0a0af92d178a5b2dacf89eb2f2219cc66d4538e57ad71baca5195c502c490794

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page