{ "info": { "author": "Filip Wasilewski", "author_email": "en@ig.ma", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Django PDF rendering\n====================\n\nDjango PDF rendering, the easy way.\n\n.. image:: https://img.shields.io/pypi/v/django-easy-pdf.svg\n :target: https://pypi.python.org/pypi/django-easy-pdf/\n :alt: Latest Version\n.. image:: https://img.shields.io/badge/wheel-yes-green.svg\n :target: https://pypi.python.org/pypi/django-easy-pdf/\n :alt: Wheel\n.. image:: https://img.shields.io/pypi/l/django-easy-pdf.svg\n :target: https://pypi.python.org/pypi/django-easy-pdf/\n :alt: License\n\nDeveloped at `en.ig.ma software shop `_.\n\nDevelopment Version\n-------------------\n\nNote: A new PDF rendering backend using WeasyPrint for more accurate rendering is in development under the develop branch.\nSee https://github.com/nigma/django-easy-pdf/pull/34 for changes, testing and discussion.\n\nIf you rely on the ``xhtml2pdf`` rendering backend and templates pin the package version to ``django-easy-pdf>=0.1.1<0.2.0``.\n\nOverview\n--------\n\nThis app makes rendering PDF files in Django really easy.\nIt can be used to create invoices, bills and other documents\nfrom simple HTML markup and CSS styles. You can even embed images\nand use custom fonts.\n\nThe library provides both Class-Based View that is almost a drop-in\nreplacement for Django's ``TemplateView`` as well as helper functions\nto render PDFs in the backend outside the request scope\n(i.e. using Celery workers).\n\n\nQuickstart\n----------\n\n1. Include ``django-easy-pdf``, ``xhtml2pdf`` in your ``requirements.txt`` file.\n If you are on Python 3 you need to install the latest version of Reportlab and the beta version of xhtml2pdf::\n\n $ pip install xhtml2pdf>=0.2b1\n\n2. Add ``easy_pdf`` to ``INSTALLED_APPS``.\n\n3. Create HTML template for PDF document and add a view that will render it:\n\n .. code-block:: css+django\n\n {% extends \"easy_pdf/base.html\" %}\n\n {% block content %}\n
\n

Hi there!

\n
\n {% endblock %}\n\n .. code-block:: python\n\n from easy_pdf.views import PDFTemplateView\n\n class HelloPDFView(PDFTemplateView):\n template_name = 'hello.html'\n\n4. You can also use a mixin to output PDF from Django generic views:\n\n .. code-block:: python\n\n class PDFUserDetailView(PDFTemplateResponseMixin, DetailView):\n model = get_user_model()\n template_name = 'user_detail.html'\n\nDocumentation\n-------------\n\nThe full documentation is at `django-easy-pdf.readthedocs.io `_.\n\nA live demo is at `easy-pdf.herokuapp.com `_.\nYou can run it locally after installing dependencies by running ``python demo.py``\nscript from the cloned repository or through Docker with ``make demo``.\n\n\nDependencies\n------------\n\n``django-easy-pdf`` depends on:\n\n - ``django>=1.10``\n - ``xhtml2pdf>=0.2b1``\n - ``reportlab``\n\n\nLicense\n-------\n\n``django-easy-pdf`` is released under the MIT license.\n\n\nOther Resources\n---------------\n\n- GitHub repository - https://github.com/nigma/django-easy-pdf\n- PyPi Package site - https://pypi.python.org/pypi/django-easy-pdf\n- Docs - https://django-easy-pdf.readthedocs.io/\n\n\nCommercial Support\n------------------\n\nThis app and many other help us build better software\nand focus on delivering quality projects faster.\nWe would love to help you with your next project so get in touch\nby dropping an email at en@ig.ma.\n\n\n\n\nHistory\n-------\n\n0.1.1 (2017-04-19)\n++++++++++++++++++\n\n* Update for Django 1.11 and Python 3\n\n0.1.0 (2014-01-24)\n++++++++++++++++++\n\n* First release", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nigma/django-easy-pdf", "keywords": "django-easy-pdf", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-easy-pdf", "package_url": "https://pypi.org/project/django-easy-pdf/", "platform": "", "project_url": "https://pypi.org/project/django-easy-pdf/", "project_urls": { "Homepage": "https://github.com/nigma/django-easy-pdf" }, "release_url": "https://pypi.org/project/django-easy-pdf/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Django PDF views, the easy way", "version": "0.1.1" }, "last_serial": 2815810, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "3cf463df5ef1e9531076ed0dcb690565", "sha256": "711626b9ca0e3ca73886316061e6ef38addd6f619af3f72916a7c6132f7b72ee" }, "downloads": -1, "filename": "django-easy-pdf-0.1.0.zip", "has_sig": false, "md5_digest": "3cf463df5ef1e9531076ed0dcb690565", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14457, "upload_time": "2014-01-25T00:34:21", "url": "https://files.pythonhosted.org/packages/8b/9c/9e7d60d3943224147adfa293e5c14bf0db46824ae9b1753811d19e7557ae/django-easy-pdf-0.1.0.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "87a959fe5857e94756dc731ad1aa2bb7", "sha256": "f7cb58e896791d28718219c54d2c8930e442fa1327817037e1c480bead77cddb" }, "downloads": -1, "filename": "django_easy_pdf-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "87a959fe5857e94756dc731ad1aa2bb7", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11484, "upload_time": "2017-04-20T00:03:12", "url": "https://files.pythonhosted.org/packages/1d/28/1b86e9beb929e11afd3f0fdeb23ad680b8533811ac47742f234563a461b2/django_easy_pdf-0.1.1-py2.py3-none-any.whl" } ], "0.2.0.dev1": [ { "comment_text": "", "digests": { "md5": "a4ac68efa92ffc1dbecd210457ebd9d2", "sha256": "4cc089dd8d10c1a32ca8fc77c368b45a88970aad13623df798426848bdb58046" }, "downloads": -1, "filename": "django_easy_pdf-0.2.0.dev1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a4ac68efa92ffc1dbecd210457ebd9d2", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11623, "upload_time": "2017-04-20T00:33:40", "url": "https://files.pythonhosted.org/packages/3c/97/57a97c7bb1595e5aba6ce596ac29ba88d376077baa7b3ebfff9fad29081c/django_easy_pdf-0.2.0.dev1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "87a959fe5857e94756dc731ad1aa2bb7", "sha256": "f7cb58e896791d28718219c54d2c8930e442fa1327817037e1c480bead77cddb" }, "downloads": -1, "filename": "django_easy_pdf-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "87a959fe5857e94756dc731ad1aa2bb7", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11484, "upload_time": "2017-04-20T00:03:12", "url": "https://files.pythonhosted.org/packages/1d/28/1b86e9beb929e11afd3f0fdeb23ad680b8533811ac47742f234563a461b2/django_easy_pdf-0.1.1-py2.py3-none-any.whl" } ] }