{ "info": { "author": "Lance Moore", "author_email": "lance@adminout.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "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.4", "Programming Language :: Python :: 3.6" ], "description": "=============================\nDjango Endesive\n=============================\n\n.. image:: https://badge.fury.io/py/django-endesive.svg\n :target: https://badge.fury.io/py/django-endesive\n\n.. image:: https://travis-ci.org/zengoma/django-endesive.svg?branch=master\n :target: https://travis-ci.org/zengoma/django-endesive\n\n.. image:: https://codecov.io/gh/zengoma/django-endesive/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/zengoma/django-endesive\n\nDjango endesive PDF digital signing utility. This package allows you to digitally sign a PDF document from your Django\napplication. It is based on https://github.com/m32/endesive\n\nIn order to digitally sign your pdf documents you will need a valid p12 / pfx certificate. You can use a self-signed\ncertificate for testing purposes but you should aquire a certificate from a Certificate Authority for production.\n\nSpecial PDF certificates issued by partners on the `AATL `_\n(Adobe Approved Trust List).\n\nDocumentation\n-------------\n\nThe full documentation is at https://django-endesive.readthedocs.io.\n\nQuickstart\n----------\n\nInstall Django Endesive::\n\n pip install django-endesive\n\nAdd it to your `INSTALLED_APPS`:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'django_endesive.apps.DjangoEndesiveConfig',\n ...\n )\n\n\n\nAdd the following to your setup to your settings.py file:\n\n.. code-block:: python\n\n DJANGO_ENDESIVE = {\n 'PDF_CERTIFICATE_PATH': 'required: /path/to/your/certificate',\n 'PDF_CERTIFICATE_PASSWORD': 'optional: certificate password if applicable',\n 'PDF_ATTRIBUTES': {\n 'CONTACT': 'optional: ',\n 'LOCATION': 'optional: ',\n 'REASON': 'optional: '\n }\n }\n\n\nHere is a rather contrived example of how you would sign your pdf:\n\n.. code-block:: python\n\n from django_endesive import pdf\n from endesive.pdf import fpdf\n\n # Generate a pdf file (this could be any file already generated by your app)\n doc = fpdf.FPDF()\n doc.add_page()\n doc.set_font('helvetica', '', 13.0)\n doc.cell(w=75.0, h=22.0, align='C',\n txt='Hello, world page=1.', border=0, ln=0)\n doc.output('./pdf.pdf', \"F\")\n\n # Open file and feed bytes to the sign function\n pdf_bytes = open('./pdf.pdf', 'rb').read()\n\n signed_pdf = pdf.sign(pdf_bytes=pdf_bytes)\n\n # signed_pdf bytes can now be written to a bytestream in memory or saved to a file on disk\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n::\n\n source /bin/activate\n (myenv) $ pip install tox\n (myenv) $ tox\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n* Endesive_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n.. _Endesive: https://github.com/m32/endesive/blob/master/examples/pdf-sign-cms.py\n\nAuthor\n-------\n* This project was created by Lance Moore from `Engineer ROI `_.\n\n\n\n\nHistory\n-------\n\n0.1.0 (2018-12-04)\n++++++++++++++++++\n\n* First release on PyPI.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zengoma/django-endesive", "keywords": "django-endesive", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-endesive", "package_url": "https://pypi.org/project/django-endesive/", "platform": "", "project_url": "https://pypi.org/project/django-endesive/", "project_urls": { "Homepage": "https://github.com/zengoma/django-endesive" }, "release_url": "https://pypi.org/project/django-endesive/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "Django endesive PDF digital signing utility.", "version": "0.1.0" }, "last_serial": 4624771, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ecb3f822f03b229158b061c9ef9a1e46", "sha256": "bf3bed8a7a24c0eff1c9443780b1f6e118048cf5db0e5c63464543ece06e78d1" }, "downloads": -1, "filename": "django-endesive-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ecb3f822f03b229158b061c9ef9a1e46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6656, "upload_time": "2018-12-21T11:51:46", "url": "https://files.pythonhosted.org/packages/2e/13/fc1df928af9f7f6f5f0093c4bc9b4843c1643f55666be069126a74ae52d3/django-endesive-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ecb3f822f03b229158b061c9ef9a1e46", "sha256": "bf3bed8a7a24c0eff1c9443780b1f6e118048cf5db0e5c63464543ece06e78d1" }, "downloads": -1, "filename": "django-endesive-0.1.0.tar.gz", "has_sig": false, "md5_digest": "ecb3f822f03b229158b061c9ef9a1e46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6656, "upload_time": "2018-12-21T11:51:46", "url": "https://files.pythonhosted.org/packages/2e/13/fc1df928af9f7f6f5f0093c4bc9b4843c1643f55666be069126a74ae52d3/django-endesive-0.1.0.tar.gz" } ] }