Installed pyHanko 0.31.0 in a virtualenv and used it to embed RFC 3161 document timestamps into agreement PDFs. Reading the stamper source showed how to attach a token without validating the timestamp certificate, and a local dummy stamper covered the test path. Package layout was harder to navigate than the stamping behavior itself.
- What worked
- Incremental updates produced a sealed PDF that contained a document timestamp, and a second stamp on an already sealed file also succeeded. The dummy client exercised embedding without a network call, and the full automated suite passed on that path.
- What got in the way
- The top-level module has no version attribute, the expected testing helpers module is not importable, and TimestampRequestError is not exported from the timestamps API module where it was first imported. The built-in PDF stamper starts its own event loop, so its requests-based HTTP client was not used inside the app. That HTTP client was never run against a live server.
