pyHanko
Python library and CLI that signs, stamps, validates and encrypts PDFs with certificates, PKCS#11 tokens, timestamps and PAdES profiles.
pyHanko (785 stars, 0.37.0 on PyPI 31 Aug 2026) is a Python 3.10+ library plus a separate pyhanko-cli package. It signs PDFs you already have with your own certificate or a PKCS#11 token or smartcard, supports PAdES B-B to B-LTA, RFC 3161 timestamps and multiple signatures, and validates signatures, including against EU trusted lists. MIT licence. The author calls it beta and not yet production-ready. It has no web UI, no sending to other signers, no reminders, tracking or templates.
The facts
| Question | Answer | Source | Checked |
|---|---|---|---|
| Runs on my machine? | Yes. Python library and command-line tool on your own machine | github.com | Checked 7 weeks ago |
| Code licence | Open source. MIT (includes modified PyPDF2 code under its own licence) | github.com | Checked 7 weeks ago |
| Commercial use | Yes. Under MIT; the author says it is beta and not yet production-ready | github.com | Checked 7 weeks ago |
| Paid services needed? | None required; you supply your own certificate or token, and optionally a timestamp server | github.com | Checked 7 weeks ago |
| Hardware | No hardware needs of its own; a Python library and command-line tool (3.10+) | github.com | Checked 4 weeks ago |
| Operating systems | Any OS with Python 3.10+ (PyPI lists it as OS independent) | pypi.org | Checked 7 weeks ago |
| Setup effort | Easy; pip install with optional extras for PKCS#11, images, fonts and the CLI | github.com | Checked 7 weeks ago |
Each fact has its own date. Unknown means nobody has published it. We read their documentation; we didn’t install it. Running it yourself costs your hardware, electricity and setup time. Report a correction.
No licence changes since we started watching. Licence changes: follow pyHanko and we email you if its terms change.
What it replaces, job by job
| Paid tool | Jobs | How far it goes |
|---|---|---|
| DocuSign |
| 1 of 6 jobs. Certificate-based PDF signing and validation from code or the command line; no signing workflow for other people. |
Stars over time
Steady +7 stars this week (2.3× its usual pace). Stars show attention, not quality. Where these numbers come from.