{ "info": { "author": "Maykin Media, Robin Ramael, Sergei Maertens", "author_email": "robin.ramael@maykinmedia.nl, sergei@maykinmedia.nl", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=========\nBurocracy\n=========\n\nBurocracy is a library that allows you to use .docx templates as\ntemplates using MailMerge fields and can save them as docx's or pdfs. It\ncan insert plain text, images, tables and (simple) HTML. See\n`django-bureaucracy`_ for some mild django integration.\n\nWIP: PPTX as templates.\n\nUsage\n=====\n\nExample\n-------\n\n.. code-block::\n\n from bureaucracy import DocxTemplate, HTML, Image, Table\n\n doc = DocxTemplate('examples/sample.docx')\n\n context = {\n 'table': Table(data=[['this is the first cell of the first row', 'this is the second cell of the first row'],\n ['the second row', 'etc'],\n ['etc', 'etc]],\n headers=['header 1', 'header 2']),\n 'image': Image('pigeon.jpg')\n 'html': HTML(
bold-notbold