{ "info": { "author": "Lars Heuer", "author_email": "heuer@semagia.com", "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.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Multimedia :: Graphics", "Topic :: Printing", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "Segno PIL -- Segno plugin for creating PIL/Pillow images from QR Codes\n----------------------------------------------------------------------\n\nThis `Segno `_ plugin converts a\n(Micro) QR Code to a PIL/Pillow Image.\n\nThis plugin is not required to write PNG, EPS or PDF files. Segno's native\nimplementations usually generate smaller files in less time. This plugin\nmight be useful to modify the QR Codes (i.e. rotate or blur) or to save the\nQR Codes in an image format which is not supported by Segno.\n\nThe resulting image is either a greyscale (PIL mode \"1\"), an indexed-color\nimage (PIL mode \"P\") or an RGBA image. The mode depends on the provided\n(background) color values. The plugin chooses the optimal (minimal) mode\nautomatically. Use the ``mode`` parameter to enforce a specific mode. Mode \"RGB\"\nis not supported, though.\n\n\nUsage:\n\n.. code-block:: python\n\n >>> import segno\n >>> qr = segno.make('Hello world')\n >>> pil_img = qr.to_pil() # Greyscale image, default scale\n >>> pil_img.save('example.png')\n >>> qr.to_pil(scale=10).show() # Show img with scale 10\n >>> # Different scale\n >>> pil_img = qr.to_pil(scale=10)\n >>> pil_img.save('example-2.png')\n >>> # Different scale and change module color\n >>> pil_img = qr.to_pil(scale=10, color='darkblue') # Indexed-color image\n >>> pil_img.save('example-3.png')\n >>> # Different scale and change module color and transparent background\n >>> pil_img = qr.to_pil(scale=10, color='#36c', background=None)\n >>> # transparency = 0 means that the first color in the palette should be\n >>> # transparent. The background color is ALWAYS the first entry in the palette\n >>> pil_img.save('example-4.png', transparency=0)\n >>> # Different scale and change module color and yellow background\n >>> # Enforce 'RGBA' mode since 'P' isn't supported by JPEG even if no color\n >>> # uses the alpha channel\n >>> qr.to_pil(scale=10, color='#36c', background='yellow', mode='RGBA').save('example-4.jpg')\n >>> rotated_img = pil_img.rotate(45, expand=True)\n >>> rotated_img.convert('RGB').save('example-5.jpg')\n\n\nChanges\n=======\n\n0.1.6 -- 2016-09-19\n-------------------\n* Fixed Python packaging\n\n\n0.1.5 -- 2016-08-24\n-------------------\n* Adapt Segno's 0.1.6 API changes.\n\n\n0.1.4 -- 2016-08-16\n-------------------\n* Updated docs\n\n\n0.1.3 -- 2016-08-14\n-------------------\n* Initial release\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/heuer/segno-pil/", "keywords": "QR Code,Micro QR Code,ISO/IEC 18004,ISO/IEC 18004:2006(E),ISO/IEC 18004:2015(E),PIL,Pillow", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "segno-pil", "package_url": "https://pypi.org/project/segno-pil/", "platform": "any", "project_url": "https://pypi.org/project/segno-pil/", "project_urls": { "Homepage": "https://github.com/heuer/segno-pil/" }, "release_url": "https://pypi.org/project/segno-pil/0.1.6/", "requires_dist": [ "Pillow", "segno" ], "requires_python": "", "summary": "PIL/Pillow plugin for the Segno (Micro) QR Code generator", "version": "0.1.6" }, "last_serial": 2350175, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "795a75355d76fa2a51e81c74387c840e", "sha256": "a37d598f8dab3bac042b8e8b925c099e4311977e2e73f90802b884141556c23f" }, "downloads": -1, "filename": "segno_pil-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "795a75355d76fa2a51e81c74387c840e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6279, "upload_time": "2016-08-14T20:55:32", "url": "https://files.pythonhosted.org/packages/4c/7f/306b8b2e717a79bca57b199b834515c5b42e2a27fabfb23cf42a64b29ce5/segno_pil-0.1.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "787d8dbd8c2d349b7f9bca08f7996452", "sha256": "6f9e67155834d27f8395be5ef2c0a79d8417a031808e6b0c7fcd49a9e2ce46ef" }, "downloads": -1, "filename": "segno-pil-0.1.3.tar.gz", "has_sig": false, "md5_digest": "787d8dbd8c2d349b7f9bca08f7996452", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4300, "upload_time": "2016-08-14T20:55:34", "url": "https://files.pythonhosted.org/packages/31/55/64b00ccc5da93a7bb07a1c39d572a568c51722fa6d66126df9a9a5557eb2/segno-pil-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "cd41cdc1a5617c13fc39c030216e4b40", "sha256": "cd2202345be33f69be88bb5f745f3d8e25bcc8d8c1f618cb9b0ee07cf9c0de29" }, "downloads": -1, "filename": "segno_pil-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cd41cdc1a5617c13fc39c030216e4b40", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6287, "upload_time": "2016-08-16T21:15:12", "url": "https://files.pythonhosted.org/packages/42/cd/c9ac78dd4a08e4fd13b8b1b97b59a1fe4c80399183d40f46d751a01c1c46/segno_pil-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c61725ad13ee93c47288c626a2e19917", "sha256": "d179236256f6d06f0ced66d7ba7717d76d6cbf95cd0ca6e1a79eb012e32c0c21" }, "downloads": -1, "filename": "segno-pil-0.1.4.tar.gz", "has_sig": false, "md5_digest": "c61725ad13ee93c47288c626a2e19917", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4373, "upload_time": "2016-08-16T21:15:18", "url": "https://files.pythonhosted.org/packages/0d/3b/a82194640b065c29c97d2c621e0685a02a3d9a3b8c12fed870e7c9beb50e/segno-pil-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "069f57c1f7cf49e44a76213bb8e2fd05", "sha256": "bea6d4bb7666f88d8d8d4c0e023c5c0718eb9921e457a6f42584c36c834e438b" }, "downloads": -1, "filename": "segno_pil-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "069f57c1f7cf49e44a76213bb8e2fd05", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6337, "upload_time": "2016-08-24T21:08:50", "url": "https://files.pythonhosted.org/packages/b6/d2/b1fc02a10ac593af6034a16c25d5695e3d267d52c1b02721b29d35e22f77/segno_pil-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "019159797e5c6ffb2b5ff493da960e02", "sha256": "5bf5e8ee0f3cdbc3a56aa06e4d3d77aa351130096a83e4e216c0c7494bff9e77" }, "downloads": -1, "filename": "segno-pil-0.1.5.tar.gz", "has_sig": false, "md5_digest": "019159797e5c6ffb2b5ff493da960e02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4403, "upload_time": "2016-08-24T21:08:52", "url": "https://files.pythonhosted.org/packages/9a/55/fff2f37c266827a5d2f48ffd252d122e253a0d0c0152d64ab54724c7ebf4/segno-pil-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "5d5127e819c30d2bf0c802e9f0b3758b", "sha256": "0326cd2cf6cd9ed77f72794b4dd6bea57c9fa1d256226a29e005e1e62a061120" }, "downloads": -1, "filename": "segno_pil-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5d5127e819c30d2bf0c802e9f0b3758b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6377, "upload_time": "2016-09-19T08:26:14", "url": "https://files.pythonhosted.org/packages/c6/70/1254488709479ec08edaec262cbe8448a7f595fd9ee64cc5bcb152cddda4/segno_pil-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "57048223eedc09643df14fe9600290a3", "sha256": "4c1efedac13111bc10089de4091d15f5bb82a6c026f3b40a4798de5b6f602e06" }, "downloads": -1, "filename": "segno-pil-0.1.6.tar.gz", "has_sig": false, "md5_digest": "57048223eedc09643df14fe9600290a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5309, "upload_time": "2016-09-19T08:26:16", "url": "https://files.pythonhosted.org/packages/b7/36/39f9e969cf5cad766349b3a0773fcee1f23a7bc896610d81b15bf8e7666d/segno-pil-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5d5127e819c30d2bf0c802e9f0b3758b", "sha256": "0326cd2cf6cd9ed77f72794b4dd6bea57c9fa1d256226a29e005e1e62a061120" }, "downloads": -1, "filename": "segno_pil-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5d5127e819c30d2bf0c802e9f0b3758b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6377, "upload_time": "2016-09-19T08:26:14", "url": "https://files.pythonhosted.org/packages/c6/70/1254488709479ec08edaec262cbe8448a7f595fd9ee64cc5bcb152cddda4/segno_pil-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "57048223eedc09643df14fe9600290a3", "sha256": "4c1efedac13111bc10089de4091d15f5bb82a6c026f3b40a4798de5b6f602e06" }, "downloads": -1, "filename": "segno-pil-0.1.6.tar.gz", "has_sig": false, "md5_digest": "57048223eedc09643df14fe9600290a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5309, "upload_time": "2016-09-19T08:26:16", "url": "https://files.pythonhosted.org/packages/b7/36/39f9e969cf5cad766349b3a0773fcee1f23a7bc896610d81b15bf8e7666d/segno-pil-0.1.6.tar.gz" } ] }