WSGI routing library weasyprint plugin
Project description
Weasyprint plugin for wsgirouter3
Usage
Configure application to use plugin
application = wsgirouter3.WsgiApp(router)
wsgirouter3_weasyprint.install(
application,
wsgirouter3_weasyprint.PdfConfig(html_generator=_generator)
)
Return instance of Pdf from endpoint
@router.get('/get', produces='application/pdf')
def get() -> Pdf:
html_generation_ctx = {'context': 'variable'}
return Pdf('html_template_id', html_generation_ctx)
Installation
$ pip install wsgirouter3_weasyprint
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
Close
Hashes for wsgirouter3_weasyprint-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38a24a42ade9985f6bc5aaa338bcceb8fd2960d7c4a9a964158f9838b8b9bb14 |
|
MD5 | 9cbdad744f25efc86c8756b65ace75eb |
|
BLAKE2b-256 | 716fa2b178af307b37b8ad0f569b2a790fb2cb16353ff8367aadcfb011bbd22d |
Close
Hashes for wsgirouter3_weasyprint-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e52f73a12090f11e925e0f179669fdaf70509537ec87416280daab0ea4978ed |
|
MD5 | 25f43e22c6e299899702e90611504e2e |
|
BLAKE2b-256 | 6f5614ddef2f1810e485fc76b0e654883f9f76795334d78d472da413b17f09e1 |