A SVG and LateX template renderer from table data based on Inkscape and Jinja2.
Project description
.. -*- mode: rst -*-
|Python27|_ |Python35|_ |PyPi|_
.. |Python27| image:: https://img.shields.io/badge/python-2.7-blue.svg
.. _Python27: https://badge.fury.io/py/docstamp
.. |Python35| image:: https://img.shields.io/badge/python-3.5-blue.svg
.. _Python35: https://badge.fury.io/py/docstamp
.. |PyPi| image:: https://badge.fury.io/py/docstamp.svg
.. _PyPi: https://badge.fury.io/py/docstamp
docstamp
========
Initially it was a conference badge creator based on SVG templates (https://github.com/PythonSanSebastian/pydger), 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 or a Google Spreadsheet 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::
pip install git+https://www.github.com/PythonSanSebastian/docstamp.git
To install the latest release::
pip install docstamp
Requirements
------------
See `requirements.txt` 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.
License
-------
New BSD license
Authors
-------
Alexandre M. Savio @alexsavio
Contributors
------------
Oier Etxaniz @oechaniz
Luis Javier Salvatierra @ljsalvatierra
Haseeb Majid
Changelog
=========
Version 0.4.3 (10.10.2018)
--------------------------
- Fixed bug to correctly call `rsvg-convert`.
Version 0.4.2 (09.10.2018)
--------------------------
- Fixed bug to find the default path to `rsvg-convert`.
Version 0.4.1
-------------
- Fixed bugs in unicode support.
- Removed support for Google spreadsheets.
Version 0.4.0 by Haseeb Majid
-------------
- Added support for unicode in PDFs.
- Fixed small typos.
- Removed `flag_value` from click.options.
Version 0.3.5
-------------
- Code style fixes.
- setup.py now uses requirements.txt file to pick dependencies.
- Fixed the Makefile.
Version 0.3.4
-------------
- Bugfixes.
Version 0.3.3
-------------
- Moved CLI to click.
Previous versions
-----------------
- Lost in History...
|Python27|_ |Python35|_ |PyPi|_
.. |Python27| image:: https://img.shields.io/badge/python-2.7-blue.svg
.. _Python27: https://badge.fury.io/py/docstamp
.. |Python35| image:: https://img.shields.io/badge/python-3.5-blue.svg
.. _Python35: https://badge.fury.io/py/docstamp
.. |PyPi| image:: https://badge.fury.io/py/docstamp.svg
.. _PyPi: https://badge.fury.io/py/docstamp
docstamp
========
Initially it was a conference badge creator based on SVG templates (https://github.com/PythonSanSebastian/pydger), 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 or a Google Spreadsheet 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::
pip install git+https://www.github.com/PythonSanSebastian/docstamp.git
To install the latest release::
pip install docstamp
Requirements
------------
See `requirements.txt` 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.
License
-------
New BSD license
Authors
-------
Alexandre M. Savio @alexsavio
Contributors
------------
Oier Etxaniz @oechaniz
Luis Javier Salvatierra @ljsalvatierra
Haseeb Majid
Changelog
=========
Version 0.4.3 (10.10.2018)
--------------------------
- Fixed bug to correctly call `rsvg-convert`.
Version 0.4.2 (09.10.2018)
--------------------------
- Fixed bug to find the default path to `rsvg-convert`.
Version 0.4.1
-------------
- Fixed bugs in unicode support.
- Removed support for Google spreadsheets.
Version 0.4.0 by Haseeb Majid
-------------
- Added support for unicode in PDFs.
- Fixed small typos.
- Removed `flag_value` from click.options.
Version 0.3.5
-------------
- Code style fixes.
- setup.py now uses requirements.txt file to pick dependencies.
- Fixed the Makefile.
Version 0.3.4
-------------
- Bugfixes.
Version 0.3.3
-------------
- Moved CLI to click.
Previous versions
-----------------
- Lost in History...
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
docstamp-0.4.3.tar.gz
(21.1 kB
view details)
File details
Details for the file docstamp-0.4.3.tar.gz
.
File metadata
- Download URL: docstamp-0.4.3.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.8.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f608b5519913361774e55ce72f10126c669151a401d50c770e0c972db9a85ca5 |
|
MD5 | 9fa4a86daac06e0af7e90d92a9446132 |
|
BLAKE2b-256 | ca323340a2daab69462c2fe8ee57946a936f82e68011880e7d9e8f2a8efc46fd |