The lack of open-source CLI tooling to handle digitally signing and stamping PDF files was bothering me, so I went ahead and rolled my own.
Installing
PyHanko is hosted on PyPI,
and can be installed using pip:
pip install pyhanko-cli
Documentation
The documentation for pyHanko is hosted on ReadTheDocs and includes information on CLI usage, library usage, and API reference documentation derived from inline docstrings.
Optional features
Optional dependencies are managed at the level of the pyhanko package.
pip install 'pyHanko[pkcs11,image-support,opentype,qr]' pyhanko-cli
Depending on your shell, you might have to leave off the quotes:
pip install pyHanko[pkcs11,image-support,opentype,qr] pyhanko-cli
This pip invocation includes the optional dependencies required for PKCS#11, image handling,
OpenType/TrueType support and QR code generation.
Metadata
Release files for pyhanko-cli 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyhanko_cli-0.5.0.tar.gz | 7.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyhanko_cli-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 MB
Release files / pyhanko_cli-0.5.0.tar.gz
| Download URL | pyhanko_cli-0.5.0.tar.gz |
|---|---|
| Size | 7.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
164250dd905520c6217e743d3b42b11ae87c5b14bc7a0162ae45845baaebf76e
|
|
BLAKE2b-256 checksum How to use checksums |
712d61e0b8aa1828fe9dd9df24ca26b6537100fb176a574574f0fff8084d37e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency logRelease files / pyhanko_cli-0.5.0-py3-none-any.whl
| Download URL | pyhanko_cli-0.5.0-py3-none-any.whl |
|---|---|
| Size | 40.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
625e57ae5578a3a25c0a839bcc38d1bbb984b2b5d8a36db6660e0964c364054f
|
|
BLAKE2b-256 checksum How to use checksums |
1fcf2073d874ca177f9389e0729692eb29727cb7366e7a93bf6cb71bdf50310b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency log