{ "info": { "author": "Florian Demmer", "author_email": "fdemmer@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-weasyprint\n=================\n\nA `Django`_ class-based view generating PDF responses using `WeasyPrint`_.\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n pip install -U django-weasyprint\n\nUsage\n-----\n\nUse ``WeasyTemplateView`` as class based view base class or the just the\nmixin ``WeasyTemplateResponseMixin`` on a ``TemplateView`` (or subclass\nthereof).\n\nExample\n-------\n\n.. code:: python\n\n from django.conf import settings\n from django.views.generic import DetailView\n\n from django_weasyprint import CONTENT_TYPE_PNG, WeasyTemplateResponseMixin\n\n\n class MyModelView(DetailView):\n # vanilla Django DetailView\n model = MyModel\n template_name = 'mymodel.html'\n\n\n class MyModelPrintView(WeasyTemplateResponseMixin, MyModelView):\n # output of DetailView rendered as PDF\n pdf_stylesheets = [\n settings.STATIC_ROOT + 'css/app.css',\n ]\n\n\n class MyModelImageView(WeasyTemplateResponseMixin, MyModelView):\n # generate a PNG image instead\n content_type = CONTENT_TYPE_PNG\n\n\nLinks\n-----\n\n* Releases: https://pypi.python.org/pypi/django-weasyprint\n* Issue tracker: https://github.com/fdemmer/django-weasyprint/issues\n* Code: https://github.com/fdemmer/django-weasyprint\n\n\n.. _pip: https://pip.pypa.io/en/stable/quickstart\n.. _Django: https://www.djangoproject.com\n.. _WeasyPrint: http://weasyprint.org\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/fdemmer/django-weasyprint/archive/v0.5.4.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fdemmer/django-weasyprint", "keywords": "", "license": "Apache-2.0", "maintainer": "", "maintainer_email": "", "name": "django-weasyprint", "package_url": "https://pypi.org/project/django-weasyprint/", "platform": "", "project_url": "https://pypi.org/project/django-weasyprint/", "project_urls": { "Download": "https://github.com/fdemmer/django-weasyprint/archive/v0.5.4.tar.gz", "Homepage": "https://github.com/fdemmer/django-weasyprint" }, "release_url": "https://pypi.org/project/django-weasyprint/0.5.4/", "requires_dist": [ "Django (>=1.8)", "WeasyPrint" ], "requires_python": "", "summary": "Django WeasyPrint CBV", "version": "0.5.4" }, "last_serial": 4065161, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "973f9d2f6b5207ff8215c6f3d035320a", "sha256": "bf2aefe398a633d22a861b6dc0eca251a0519c0de6c9b2be7fe3a4cb2a13a047" }, "downloads": -1, "filename": "django-weasyprint-0.1.tar.gz", "has_sig": false, "md5_digest": "973f9d2f6b5207ff8215c6f3d035320a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1556, "upload_time": "2013-11-29T14:19:13", "url": "https://files.pythonhosted.org/packages/81/46/a6d635e698798cd7194a45b5a26c5a8c2f5c87c51801d2431825953e3b19/django-weasyprint-0.1.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "39c07e024540f05f15545d2bdd3c3d8b", "sha256": "ff2137a810608668aa6aef405c8e559c1429d424393c5cea9b5a034a0d02e6e7" }, "downloads": -1, "filename": "django_weasyprint-0.5.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "39c07e024540f05f15545d2bdd3c3d8b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6071, "upload_time": "2018-02-02T21:11:08", "url": "https://files.pythonhosted.org/packages/80/7c/bf0df0c6e5b8bce60ae72523a004c0b88cb47cee2d3f40d187a4fa72d775/django_weasyprint-0.5.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0b8a1704ed8c3e30bc25405351186844", "sha256": "03bb1f20b4fe36239137f5ab000bf6d611b965ba34904f105124c3f62b0a5b70" }, "downloads": -1, "filename": "django-weasyprint-0.5.0.tar.gz", "has_sig": true, "md5_digest": "0b8a1704ed8c3e30bc25405351186844", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4381, "upload_time": "2018-02-02T21:11:11", "url": "https://files.pythonhosted.org/packages/3e/6d/012353d50b91b527f786ca6b3244cd2cc59469d60cd3c99cde8df78bab06/django-weasyprint-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "56e073541ef6de84ffe107bd3896f092", "sha256": "5a0d1d545054751028cc45b5b89634a2d5bc90eee1e62385126f69018209b818" }, "downloads": -1, "filename": "django_weasyprint-0.5.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "56e073541ef6de84ffe107bd3896f092", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6862, "upload_time": "2018-03-08T12:00:23", "url": "https://files.pythonhosted.org/packages/9c/ab/6ec13ff9c5e206006c7cdeffb4c0687aae6f8c66774725a9784063e00d8d/django_weasyprint-0.5.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3323e9eb658fd672160abc4f9f8c6bd5", "sha256": "2613816d09b44a63a8fe20c4d0cc31a9648cfd0d77a149644310a996fd47b3b3" }, "downloads": -1, "filename": "django-weasyprint-0.5.1.tar.gz", "has_sig": true, "md5_digest": "3323e9eb658fd672160abc4f9f8c6bd5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4927, "upload_time": "2018-03-08T12:00:25", "url": "https://files.pythonhosted.org/packages/f3/c4/662a515085033e654f6036db2757ef9898c570b4ab58a4d1e67c3d8ad383/django-weasyprint-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "528d7440407d07c7a17bb8999bd49e77", "sha256": "43011fbca4fa4561cceca3ea215e3dc1187cd089b78c2c49e4fe868299608182" }, "downloads": -1, "filename": "django_weasyprint-0.5.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "528d7440407d07c7a17bb8999bd49e77", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6869, "upload_time": "2018-03-08T15:13:46", "url": "https://files.pythonhosted.org/packages/4f/f4/308675a47055b0ca6cd2873f1090da3a0ed35f641b88e5f1ace9fea70c26/django_weasyprint-0.5.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9dd355e206bef06a83150546f9558089", "sha256": "5e96aace2a0d7bc79b4d18f96b51a6aa2b81325325965b624de9f7ed4fdb22c7" }, "downloads": -1, "filename": "django-weasyprint-0.5.2.tar.gz", "has_sig": true, "md5_digest": "9dd355e206bef06a83150546f9558089", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4931, "upload_time": "2018-03-08T15:13:48", "url": "https://files.pythonhosted.org/packages/a9/0d/4e5446dee555a63a03c71c5f7d1f65a63f4295103225b2ea96110035cf52/django-weasyprint-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "09b4b0ee7f68d1308b9d6d48ec0b79d8", "sha256": "a10d9d44b69041fe7a2807aa86837ffc9321fa907c2a1fd3d077acf3a538d420" }, "downloads": -1, "filename": "django_weasyprint-0.5.3-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "09b4b0ee7f68d1308b9d6d48ec0b79d8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6892, "upload_time": "2018-07-09T14:27:23", "url": "https://files.pythonhosted.org/packages/c3/3f/e73b650c5cf5cfd5b9c8024ea86872ed27d65edd52a906ad0732bcefa55a/django_weasyprint-0.5.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6a903cab380eeeeb41ef15ab55c06dc7", "sha256": "c822093e2eeb52bcb246165e381c65cea1040b7ba23cc263d915adc7091e7212" }, "downloads": -1, "filename": "django-weasyprint-0.5.3.tar.gz", "has_sig": true, "md5_digest": "6a903cab380eeeeb41ef15ab55c06dc7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4963, "upload_time": "2018-07-09T14:27:24", "url": "https://files.pythonhosted.org/packages/bf/e3/7ba2c0bfe2322731ccbf36a4c61f10b9c9f4677ca5a90409983b7abff2a1/django-weasyprint-0.5.3.tar.gz" } ], "0.5.4": [ { "comment_text": "", "digests": { "md5": "023ffada08e16fd40fdf23d2a7311beb", "sha256": "10cf8d134f5ef54a79f017a651d477da937a6798cf6f4c2bed2669af76785e9d" }, "downloads": -1, "filename": "django_weasyprint-0.5.4-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "023ffada08e16fd40fdf23d2a7311beb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7074, "upload_time": "2018-07-16T10:06:57", "url": "https://files.pythonhosted.org/packages/f4/bc/07e80c8fd18cb9b0ae7d193f2e4e5d1b4c650b9cdf64eb6bdb3f06949112/django_weasyprint-0.5.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9806198dd887d4838233c387d207bb26", "sha256": "5666e7e12fa4f2059d84c2c33e0028131768c25cc5a5dc1ee62591bf940b5a49" }, "downloads": -1, "filename": "django-weasyprint-0.5.4.tar.gz", "has_sig": true, "md5_digest": "9806198dd887d4838233c387d207bb26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4901, "upload_time": "2018-07-16T10:06:58", "url": "https://files.pythonhosted.org/packages/b1/9b/37bd24d0aebd40662f608b143467ade467d2acb2e178fb4e6b7002ba9b39/django-weasyprint-0.5.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "023ffada08e16fd40fdf23d2a7311beb", "sha256": "10cf8d134f5ef54a79f017a651d477da937a6798cf6f4c2bed2669af76785e9d" }, "downloads": -1, "filename": "django_weasyprint-0.5.4-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "023ffada08e16fd40fdf23d2a7311beb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7074, "upload_time": "2018-07-16T10:06:57", "url": "https://files.pythonhosted.org/packages/f4/bc/07e80c8fd18cb9b0ae7d193f2e4e5d1b4c650b9cdf64eb6bdb3f06949112/django_weasyprint-0.5.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9806198dd887d4838233c387d207bb26", "sha256": "5666e7e12fa4f2059d84c2c33e0028131768c25cc5a5dc1ee62591bf940b5a49" }, "downloads": -1, "filename": "django-weasyprint-0.5.4.tar.gz", "has_sig": true, "md5_digest": "9806198dd887d4838233c387d207bb26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4901, "upload_time": "2018-07-16T10:06:58", "url": "https://files.pythonhosted.org/packages/b1/9b/37bd24d0aebd40662f608b143467ade467d2acb2e178fb4e6b7002ba9b39/django-weasyprint-0.5.4.tar.gz" } ] }