Skip to main content

A SVG and LateX template renderer from table data based on Inkscape and Jinja2

Project description

docstamp

Initially it was a conference badge creator based on SVG templates, but we thought it could be more generic and have many other applications.

DocStamp is a generic template renderer which takes the data from a .CSV file and creates one rendered template file for each row of the data.

It is PDF centric, however it can also export in some cases to PNG.

It needs:

  • Inkscape or rsvg-convert for .SVG templates, and
  • PDFLateX or XeLateX for LateX templates.

CLI Usage

The CSV header fields must match the ones in the template file.

docstamp create -i badge.csv -t badge_template.svg -o badges

Installation

To install the development version:

python -m pip install git+https://www.github.com/PythonSanSebastian/docstamp.git

To install the latest release:

python -m pip install docstamp

Requirements

See setup.cfg file. Also you will need Inkscape, XeLatex, or PDFLatex installed in your system.

For unicode support in SVG exports, you need to install rsvg-convert, which is available in librsvg-bin.

Compatibility

DocStamp is compatible with Python 2 (we wish to believe) and 3.

We could not test it on Windows.

Authors

  • Alexandre M. Savio @alexsavio

Contributors

  • Oier Etxaniz @oechaniz
  • Luis Javier Salvatierra @ljsalvatierra
  • Haseeb Majid

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

docstamp-0.4.4.tar.gz (24.0 kB view details)

Uploaded Source

File details

Details for the file docstamp-0.4.4.tar.gz.

File metadata

  • Download URL: docstamp-0.4.4.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3

File hashes

Hashes for docstamp-0.4.4.tar.gz
Algorithm Hash digest
SHA256 243ac545f8c9c22d82552c8a87f906372e719a827a5c7a6ec9c9bfbef52f4567
MD5 f3fcb26526777fc63c1b33d7f0103d98
BLAKE2b-256 36377a28d4be79a078a519d6f978e381ba2636c2edecbee5723e0f4aaa5471ab

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