{ "info": { "author": "Sian Lerk Lau", "author_email": "kiawin@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "===============================\nTemplated-docs\n===============================\n\n\n.. image:: https://badge.fury.io/py/templated-docs.svg\n :target: https://pypi.python.org/pypi/templateddocs\n\n.. image:: https://img.shields.io/travis/kiawin/templated-docs.svg\n :target: https://travis-ci.org/kiawin/templated-docs\n\n.. image:: https://readthedocs.org/projects/templated-docs/badge/?version=latest\n :target: https://templated-docs.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://requires.io/github/kiawin/templated-docs/requirements.svg?branch=master\n :target: https://requires.io/github/kiawin/templated-docs/requirements?branch=master\n :alt: Dependencies\n\nGenerate templated documents within Django in any format supported by\nLibreOffice: texts, spreadsheets, presentations etc.\n\n\n* Free software: MIT license\n* Documentation: https://templated-docs.readthedocs.io.\n\n\nRequirements\n------------\n\n* Python 2.7 or 3.4+\n* Django >= 1.8\n* A recent LibreOffice version (>=4.3.0) supporting LibreOfficeKit API.\n\nExample usage\n-------------\n\nCreate a ``sample.odt`` document (make sure it's in OpenDocument format) and\nput it in your Django templates folder. It should look something like this:\n\n.. image:: https://github.com/kiawin/templated-docs/raw/master/docs/document-template.png\n\nThen write a view to generate documents from this template:\n\n .. code-block:: python\n\n from templated_docs import fill_template\n from templated_docs.http import FileResponse\n\n def get_document(request):\n \"\"\"\n A view to get a document filled with context variables.\n \"\"\"\n context = {'user': request.user} # Just an example\n\n filename = fill_template('sample.odt', context, output_format='pdf')\n visible_filename = 'greeting.pdf'\n\n return FileResponse(filename, visible_filename)\n\nNavigate to the url your view is connected to, and you'll see a rendered and converted document:\n\n.. image:: https://github.com/kiawin/templated-docs/raw/master/docs/generated-document.png\n\nFor more examples, see the ``examples/`` subfolder in the repository. More detailed documentation is available on https://templated-docs.readthedocs.io.\n\nCredits\n---------\n\nTemplated-docs was written by `Alex Morozov`_.\n\nAs the repository is left idle for 2 years, `Sian Lerk Lau`_ has forked and resume the task of updating the module.\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n.. _pylokit: https://github.com/xrmx/pylokit\n.. _`Alex Morozov`: http://morozov.ca\n.. _`Sian Lerk Lau`: https://github.com/kiawin\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kiawin/templated-docs", "keywords": "templateddocs", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "templateddocs", "package_url": "https://pypi.org/project/templateddocs/", "platform": "", "project_url": "https://pypi.org/project/templateddocs/", "project_urls": { "Homepage": "https://github.com/kiawin/templated-docs" }, "release_url": "https://pypi.org/project/templateddocs/0.3.4/", "requires_dist": null, "requires_python": "", "summary": "Generate PDF, MS Word and Excel documents from templates in Django.", "version": "0.3.4" }, "last_serial": 5505020, "releases": { "0.3.2": [ { "comment_text": "", "digests": { "md5": "5bc18f729c4e5420182e3ec041e881da", "sha256": "27097a757fe1d0c497ad8bd6799599cf454eaaea1521af26d66586ea9991732c" }, "downloads": -1, "filename": "templateddocs-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5bc18f729c4e5420182e3ec041e881da", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 18868, "upload_time": "2018-09-05T09:04:03", "url": "https://files.pythonhosted.org/packages/0c/1d/d33207499d4b4e46fbb6254aa17b9a234f7a40575769c9813416eb0bf214/templateddocs-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7da533f068fd3e65c099643e8a8c0311", "sha256": "5405cb1ceee8a34ea716df559ce680ab4d2a2c18ee2045b1eb6c65e92a33d1e0" }, "downloads": -1, "filename": "templateddocs-0.3.2.tar.gz", "has_sig": false, "md5_digest": "7da533f068fd3e65c099643e8a8c0311", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48135, "upload_time": "2018-09-05T09:03:55", "url": "https://files.pythonhosted.org/packages/da/f2/a6938d6ce78df7c3c852fe301bd07515c9fcb9b12655e709769517d0af10/templateddocs-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "c0b21504d2cf5e6ad4175a4466d0bea0", "sha256": "373ac2ee9f363a362c700a8bc1448dc05445a14f4f319c73d2dfa4c1f80633f2" }, "downloads": -1, "filename": "templateddocs-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c0b21504d2cf5e6ad4175a4466d0bea0", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 18956, "upload_time": "2019-06-10T08:03:43", "url": "https://files.pythonhosted.org/packages/14/d2/a62f03c8ef4242c1d028163069ab495abb67cbf829424e83efe8965e7095/templateddocs-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9c794f7bd1be0af45a12b4fb1b9ca666", "sha256": "7461e73d6a689b158da8a80a812aaa594b7007baa607fd7c2ec9a8f1465d2b93" }, "downloads": -1, "filename": "templateddocs-0.3.3.tar.gz", "has_sig": false, "md5_digest": "9c794f7bd1be0af45a12b4fb1b9ca666", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48254, "upload_time": "2019-06-10T08:03:34", "url": "https://files.pythonhosted.org/packages/d2/0f/2ea48c6378f7ddfa464dfc25a5612a9477827148ac5f34d4586aae83142a/templateddocs-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "6980e8eeb761d49933f15553a35fe742", "sha256": "15d5ea7e397a0acd08a59a022e9656c4aeb64135ca51d2afaa8c6261c67ed20b" }, "downloads": -1, "filename": "templateddocs-0.3.4.tar.gz", "has_sig": false, "md5_digest": "6980e8eeb761d49933f15553a35fe742", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48446, "upload_time": "2019-07-09T06:31:12", "url": "https://files.pythonhosted.org/packages/ab/24/97c989d71465cbf2d3dda953e60e5f561c4b8bb5c0303ff672aab83f74bc/templateddocs-0.3.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6980e8eeb761d49933f15553a35fe742", "sha256": "15d5ea7e397a0acd08a59a022e9656c4aeb64135ca51d2afaa8c6261c67ed20b" }, "downloads": -1, "filename": "templateddocs-0.3.4.tar.gz", "has_sig": false, "md5_digest": "6980e8eeb761d49933f15553a35fe742", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48446, "upload_time": "2019-07-09T06:31:12", "url": "https://files.pythonhosted.org/packages/ab/24/97c989d71465cbf2d3dda953e60e5f561c4b8bb5c0303ff672aab83f74bc/templateddocs-0.3.4.tar.gz" } ] }