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
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
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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8561df11c008781fcab134ec9c84d335c4678829583379245f5780f5433f9d5b
|
|
| MD5 |
7f17f34a0e665011d6c84bfc7d5d7b45
|
|
| BLAKE2b-256 |
4e0f4479b9a8876c7525a1298ea8c21120fc3fd06df67132429f712c52f0b99e
|
File details
Details for the file eservice_unlock_pdf-0.1.2-py3-none-any.whl.
File metadata
- Download URL: eservice_unlock_pdf-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
030a1a906842c2fc19966e692a5cec64621c883a2a80c464bbfb835bf7f0825f
|
|
| MD5 |
944f7e1b494cd317e826558b515284fd
|
|
| BLAKE2b-256 |
6f8db5f6f6813cc56cc2adc706641e3c7fd2eae8381adf614606b6815fc9df24
|