Open source implementation of RML (Report Markup Language) from ReportLab
RML User Guide (or beginner tutorial)
Not all tags are supported, but most of them work.
Install
pip install trml2pdf
Examples
Create a PDF file:
import trml2pdf
print trml2pdf.parseString(open('file.rml','rt').read())
If you are using this for Django you can dynamically create an .rml file with the template system and then render it.
from django.template.loader import get_template
from django.template.context import Context
import trml2pdf
data = {'key1': 'foo'}
template = get_template('template.rml')
context = Context(data)
xmlstring = template.render(context)
pdfstr = trml2pdf.parseString(xmlstring)
Looking for maintainer
I no longer use this library in my own projects, so there is no interest in adding new feature or improving things. If you are intersted in taking it over or being actively involved, please let me know
Metadata
Release files for trml2pdf 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| trml2pdf-0.6.tar.gz | 23.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| trml2pdf-0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.3 kB
Release files / trml2pdf-0.6.tar.gz
| Download URL | trml2pdf-0.6.tar.gz |
|---|---|
| Size | 23.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3b1e138ec07132729fff5cb3862e29a4f55818ea8c111a403e13d83a8d3ff0b
|
|
BLAKE2b-256 checksum How to use checksums |
0e80771d21178a1d588f29cd85b3d9f55b7de0441c50edff920cec69778228bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / trml2pdf-0.6-py3-none-any.whl
| Download URL | trml2pdf-0.6-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d41fb751e31759ec33a539fb6746d6231f9ff297332745b0462794e76fcc1231
|
|
BLAKE2b-256 checksum How to use checksums |
31d50c9fe4f8571c0c1348304e6c91a9b3570f1cd7ee294c18f598e89a4a3d81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|