Skip to main content

Tiny RML2PDF is open source implementation of RML (Report Markup Language) from ReportLab

Project description

Open source implementation of RML (Report Markup Language) from ReportLab

Build Status

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trml2pdf-0.6.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

trml2pdf-0.6-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file trml2pdf-0.6.tar.gz.

File metadata

  • Download URL: trml2pdf-0.6.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for trml2pdf-0.6.tar.gz
Algorithm Hash digest
SHA256 f3b1e138ec07132729fff5cb3862e29a4f55818ea8c111a403e13d83a8d3ff0b
MD5 26c48aa356966e7935e11d1ae45df381
BLAKE2b-256 0e80771d21178a1d588f29cd85b3d9f55b7de0441c50edff920cec69778228bc

See more details on using hashes here.

File details

Details for the file trml2pdf-0.6-py3-none-any.whl.

File metadata

  • Download URL: trml2pdf-0.6-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for trml2pdf-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d41fb751e31759ec33a539fb6746d6231f9ff297332745b0462794e76fcc1231
MD5 460e29dd83ad2fe08b80f4d767b15269
BLAKE2b-256 31d50c9fe4f8571c0c1348304e6c91a9b3570f1cd7ee294c18f598e89a4a3d81

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page