OzNetNerd PDF
Convenience Python module for creating templated PDF documents using Jinja2 and WeasyPrint.
Installation
pip3 install onnpdf
Usage
Pass a dictionary into onnpdf, and it will:
- Perform a "find and replace" operation (as well as other Jinja2 operations defined in your template)
- Convert the template into a PDF document
Example dictionary as seen in code snippets:
kv_pairs = {
'title': 'OzNetNerd.com Demo PDF',
'author': 'Will Robinson',
'job_title': 'DevOps Specialist',
'company': 'OzNetNerd.com',
'email': 'will@oznetnerd.com',
'phone': '+61 00 000 000',
'website': 'https://oznetnerd.com'
}
Example Document
The above produces this PDF document.
Example Use Case
Automate the creation of personalised lab guides for users.
This enables lab admins to easily provide users with unique usernames, passwords, DNS entries, etc.
Contact
- Blog: oznetnerd.com
- Email: will@oznetnerd.com
Metadata
Release files for onnpdf 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| onnpdf-0.0.3.tar.gz | 1.9 kB | Without provenance | Details for onnpdf-0.0.3.tar.gz |
Release files / onnpdf-0.0.3.tar.gz
| Download URL | onnpdf-0.0.3.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96f381f03a9849047dd82d481a512b4c71bd1bc5acb538d27bf9bd10375366ef
|
|
BLAKE2b-256 checksum How to use checksums |
18e502fe04636e081415eb59cce383a5bac350299bb11c2e5a4ea7bf96a68664
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.9
|
Security for onnpdf 0.0.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.