{ "info": { "author": "Kevin Wetzels", "author_email": "kevin@roam.be", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3" ], "description": "==========\nSignapadpy\n==========\n\n`Signature Pad `_ is a nice tool\nthat allows users to provide a drawn signature. Because of the flakiness of\nsome browsers, it's probably recommend to generate an actual image of the\nsignature on the server. And that's what signapadpy does with a little help\nof `Pillow `_ (or PIL).\n\nFirst install it::\n\n pip install signapadpy\n\nNext, import what you need (padding is optional)::\n\n from signapadpy import create_image, Padding\n\nThen load the lines of the signature you want to convert into an image::\n\n lines = load_signature_pad_output(from_something)\n\nAnd create the image::\n\n image = create_image(lines)\n\nThe image is an instance of PIL's (or Pillow's) ``Image``, so you can choose to display it::\n\n image.show()\n\nOr save it::\n\n image.save('signature.png')\n\nIf you'd like to render the image with Django, you could do it like this::\n\n from django.http import HttpResponse\n from django.shortcuts import get_object_or_404\n\n from signapadpy import create_image\n\n\n def view_signature(request, pk):\n # Django view, assuming a Sigature model with a lines attribute\n signature = get_object_or_404(Signature, pk=pk)\n return signature_to_response(signature.lines)\n\n def signature_to_response(lines):\n image = create_image(lines)\n response = HttpResponse(mimetype='image/png')\n image.save(response, 'PNG')\n return response", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/roam/signapadpy", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "signapadpy", "package_url": "https://pypi.org/project/signapadpy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/signapadpy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/roam/signapadpy" }, "release_url": "https://pypi.org/project/signapadpy/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Turn output from Signature Pad into images", "version": "0.0.2" }, "last_serial": 1433412, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "76a67b1bfeef822795b649acdcdee150", "sha256": "7d2cf21a978af81c83aa70b4605735ea304be2f06d12b0b49d61d5bed634d5fb" }, "downloads": -1, "filename": "signapadpy-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "76a67b1bfeef822795b649acdcdee150", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6442, "upload_time": "2013-12-08T11:50:05", "url": "https://files.pythonhosted.org/packages/53/17/61f890c91583e137ea590177b5109ed579db47df9bf940742b3e110760b2/signapadpy-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "433a4f3bb1162e9140bbf072139f3e1a", "sha256": "db78a2c56baa5c3a1749f48b03b24e9635c227ac013c030e293c35e261c60323" }, "downloads": -1, "filename": "signapadpy-0.0.1.tar.gz", "has_sig": false, "md5_digest": "433a4f3bb1162e9140bbf072139f3e1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4404, "upload_time": "2013-12-08T11:49:50", "url": "https://files.pythonhosted.org/packages/48/93/66fed6506bbdc8e3742df9a148d0d68e32f536da1600499010453a691a1b/signapadpy-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "a832837d0519ca2772f87a230ab92af6", "sha256": "d6033f557cf31c10b323526b77c6dc9ecca72696b5d9200a345eaabed849d41b" }, "downloads": -1, "filename": "signapadpy-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a832837d0519ca2772f87a230ab92af6", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6472, "upload_time": "2015-02-22T19:00:33", "url": "https://files.pythonhosted.org/packages/85/31/a00d499ece51341cab58deab65628d239685d7e6a8fb57ad47e08dc2ddfb/signapadpy-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "76d4c47da07fab885b69b3fd962730cf", "sha256": "ca2c870f5b1f02ab37c017989acd2cf4b019040ef7731c77eb3234b197aa0a1f" }, "downloads": -1, "filename": "signapadpy-0.0.2.tar.gz", "has_sig": false, "md5_digest": "76d4c47da07fab885b69b3fd962730cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4416, "upload_time": "2015-02-22T19:00:20", "url": "https://files.pythonhosted.org/packages/0f/2e/121e2294db2a366009e9b1fdaaf7056d8b39113a6e9c9ca0e66217325413/signapadpy-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a832837d0519ca2772f87a230ab92af6", "sha256": "d6033f557cf31c10b323526b77c6dc9ecca72696b5d9200a345eaabed849d41b" }, "downloads": -1, "filename": "signapadpy-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a832837d0519ca2772f87a230ab92af6", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6472, "upload_time": "2015-02-22T19:00:33", "url": "https://files.pythonhosted.org/packages/85/31/a00d499ece51341cab58deab65628d239685d7e6a8fb57ad47e08dc2ddfb/signapadpy-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "76d4c47da07fab885b69b3fd962730cf", "sha256": "ca2c870f5b1f02ab37c017989acd2cf4b019040ef7731c77eb3234b197aa0a1f" }, "downloads": -1, "filename": "signapadpy-0.0.2.tar.gz", "has_sig": false, "md5_digest": "76d4c47da07fab885b69b3fd962730cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4416, "upload_time": "2015-02-22T19:00:20", "url": "https://files.pythonhosted.org/packages/0f/2e/121e2294db2a366009e9b1fdaaf7056d8b39113a6e9c9ca0e66217325413/signapadpy-0.0.2.tar.gz" } ] }