Skip to main content

A Python package to unlock password-protected PDF files

Project description

python unlock pdf

Description

Since I have a pdf file that is locked with a password and I want to open that pdf file without entering the password every time, I want to create a script to unlock the pdf file.

This script is used to unlock a password protected pdf file. It uses the PyPDF2 library to unlock the pdf file. The password is provided as an argument to the script.

Installation

// create a virtual environment
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Usage

jupyter lab

// run the script
python unlock_pdf.py locked.pdf unlocked.pdf password

Testing

tox

Build

python setup.py sdist bdist_wheel

// check the build
twine check dist/*

// install the package
pip install dist/eservice_unlock_pdf-0.1.0-py3-none-any.whl

uploade to pypi

pip install twine

twine upload dist/*          

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

eservice_unlock_pdf-0.1.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

eservice_unlock_pdf-0.1.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file eservice_unlock_pdf-0.1.2.tar.gz.

File metadata

  • Download URL: eservice_unlock_pdf-0.1.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for eservice_unlock_pdf-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8561df11c008781fcab134ec9c84d335c4678829583379245f5780f5433f9d5b
MD5 7f17f34a0e665011d6c84bfc7d5d7b45
BLAKE2b-256 4e0f4479b9a8876c7525a1298ea8c21120fc3fd06df67132429f712c52f0b99e

See more details on using hashes here.

File details

Details for the file eservice_unlock_pdf-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for eservice_unlock_pdf-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 030a1a906842c2fc19966e692a5cec64621c883a2a80c464bbfb835bf7f0825f
MD5 944f7e1b494cd317e826558b515284fd
BLAKE2b-256 6f8db5f6f6813cc56cc2adc706641e3c7fd2eae8381adf614606b6815fc9df24

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