{ "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 Mimos - Adapt Segno's API to other QR Code libs\n=====================================================\n\nSegno Mimos aims to emulate the API of other Python QR Code libs. While this\nworks more or less API-wise, the resulting QR Codes may look different.\n\nCurrently, `PyQRCode`_ and `qrcode`_ are supported.\n\nSegno Mimos does not require any of 3rd party libs (like Pillow or PyPNG), it\njust requires `Segno`_ to be installed.\n\nSince both libs do not support Micro QR Codes, this lib creates QR Codes, only.\n\n\nReplace PyQRCode with Segno\n---------------------------\n\nIf a 3rd party lib uses PyQRCode and changing the code of the lib isn't\npossible, use:\n\n.. code-block:: python\n\n >>> import segno_mimos\n >>> segno_mimos.install_as_pyqrcode()\n\n\nTo replace PyQRCode with Segno in your code, change\n\n.. code-block:: python\n\n >>> import pyqrcode\n\nwith:\n\n.. code-block:: python\n\n >>> from segno_mimos import pyqrcode\n\n\nAfter that import you should be able to use your existing code without any\nchanges:\n\n.. code-block:: python\n\n >>> from segno_mimos import pyqrcode\n >>> # Example from PyQRCode README:\n >>> url = pyqrcode.create('http://uca.edu')\n >>> url.svg('uca-url.svg', scale=8)\n >>> url.eps('uca-url.eps', scale=2)\n >>> print(url.terminal(quiet_zone=1))\n\nPlease note, that ``qr = pyqrcode.QrCode('Dark side of the Moon')`` DOES NOT\nwork, use the factory function ``pyqrcode.create()``.\n\nThe underlying ``segno.QRCode`` instance can be accessed as follows:\n\n.. code-block:: python\n\n >>> from segno_mimos import pyqrcode\n >>> # qr behaves like pyqrcode.QRCode\n >>> qr = pyqrcode.create('Up Jumped the Devil')\n >>> # Get the underlying Segno QRCode instance\n >>> segno_qr = qr.segno_qrcode\n\n\nReplace qrcode with Segno\n-------------------------\n\nIf a 3rd-party lib uses qrcode, use the following code snippet before\nimporting the 3rd-party lib:\n\n.. code-block:: python\n\n >>> import segno_mimos\n >>> segno_mimos.install_as_qrcode()\n\nThe 3rd-party lib should use Segno automatically.\n\n\nSince qrcode has a more complex API (i.e. factories) replacing it with\nSegno can be more difficult; in the simpliest case replace\n\n.. code-block:: python\n\n >>> import qrcode\n\n\nin your code with:\n\n.. code-block:: python\n\n >>> from segno_mimos import qrcode\n >>> # From now on, you can use qrcode as usual\n >>> img = qrcode.make('Some data here')\n >>> img.save('qrcode.png')\n >>> # Segno Mimos provides the \"constants\" module as well, so this works, too\n >>> qr = qrcode.QRCode(version=1,\n ... error_correction=qrcode.constants.ERROR_CORRECT_L,\n ... box_size=10,\n ... border=4)\n >>> img = qr.make_image()\n >>> # Utilizing the \"kind\" parameter of qrcode works for PDF, PNG, and EPS files\n >>> img.save('qrcode.png', kind='png') # Unnecessary, since PNG is the default\n >>> img.save('qrcode.pdf', kind='pdf')\n >>> img.save('qrcode.eps', kind='eps')\n\n\nIf your code uses any of the standard image factories, use the following imports:\n\n.. code-block:: python\n\n >>> from segno_mimos import qrcode\n >>> import segno_mimos.qrcode.image.svg\n >>> import segno_mimos.qrcode.image.pure\n >>> qr = qrcode.QRCode(version=1,\n ... error_correction=qrcode.constants.ERROR_CORRECT_L,\n ... box_size=10,\n ... border=4)\n >>> # Use the image factory as usual, no code changes necessary\n >>> svg_img = qr.make_image(image_factory=qrcode.image.svg.SvgFragmentImage)\n >>> pure_img = qr.make_image(image_factory=qrcode.image.pure.PymagingImage)\n\nThe \"pure\" image factory is actually the same as the default image factory, it\njust exists to minimize code changes. Further, all SVG image factories are\nserializing the QR Code as path, never as a combination of rects\n(like ``qrcode.image.svg.SvgImage`` does). The SVG factories do not require\nany 3rd party libs (aside from segno) like lxml etc.\n\n\n\n.. _PyQRCode: https://pypi.python.org/pypi/PyQRCode/\n.. _qrcode: https://pypi.python.org/pypi/qrcode/\n.. _Segno: https://pypi.python.org/pypi/segno/\n\nChanges\n=======\n\n0.2.1 -- 2017-02-08\n-------------------\n* Fixed typos and internal changes to support Py 3 more prominent\n\n\n0.2.0 -- 2017-02-08\n-------------------\n* Support for PyQRCode's qrcode.xbm() method which returns the QR Code as\n XBM image (requires Segno >= 0.2.4).\n* Support for python-qrcode data optimization.\n* Better test coverage\n* Tests against Python 3.6 (tested against PyPy, Py 2.6, 2.7, 3.4, 3.6)\n\n\n0.1.9 -- 2016-09-19\n-------------------\n* Added ``install_as_qrcode`` and ``install_as_pyqrcode`` which may be useful\n if qrcode or PyQRCode is used and should be replaced by Segno without code\n changes.\n* Fixed Python packaging.\n\n\n0.1.8 -- 2016-09-04\n-------------------\n* Disable automatic error incrementation (Segno >= 0.1.7) (neither PyQRCode\n nor qrcode support it)\n\n\n0.1.7 -- 2016-08-24\n-------------------\n* Adapt Segno's 0.1.6 API changes\n\n\n0.1.6 -- 2016-08-17\n-------------------\n* Internal code changes\n* qrcode: Image could not be saved in another output format using the\n \"format\" or \"kind\" parameter. Fixed.\n\n\n0.1.5 -- 2016-08-16\n-------------------\n* Updated docs\n* Removed return statement from ``PyQRCode.png()``\n* Internal code changes\n* Renamed (internal) module ``segno_mimos.qrcode.img`` into ``_img`` to avoid\n confusion with ``segno_mimos.qrcode.image``\n\n\n0.1.4 -- 2016-08-14\n-------------------\n* Initial release\n* Support for PyQRCode 1.2.1 and qrcode 5.3", "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-mimos/", "keywords": "QR Code,Micro QR Code,ISO/IEC 18004,ISO/IEC 18004:2006(E),ISO/IEC 18004:2015(E)", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "segno-mimos", "package_url": "https://pypi.org/project/segno-mimos/", "platform": "any", "project_url": "https://pypi.org/project/segno-mimos/", "project_urls": { "Homepage": "https://github.com/heuer/segno-mimos/" }, "release_url": "https://pypi.org/project/segno-mimos/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "Emulating PyQRCode and qrcode API using the Segno (Micro) QR Code generator", "version": "0.2.1" }, "last_serial": 2629151, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "d1c4e197bc1c4970cc57f215b5cba521", "sha256": "cc73bc846175e0922f94e8145251a04cbec1d244f60477d76191b79a0d14d149" }, "downloads": -1, "filename": "segno_mimos-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d1c4e197bc1c4970cc57f215b5cba521", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5325, "upload_time": "2016-08-14T21:37:57", "url": "https://files.pythonhosted.org/packages/ac/42/45c9f08c3be5bca54464e0b5a43dde55ff61bfd9dcd9384f3a3cd4a7d627/segno_mimos-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d80e6432cf67ba525119dfc3882c836d", "sha256": "305105d4a5124874f4ffd0db4219748a2238f4421ec2b7cf2277eef4df5a1518" }, "downloads": -1, "filename": "segno-mimos-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d80e6432cf67ba525119dfc3882c836d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3670, "upload_time": "2016-08-14T21:37:59", "url": "https://files.pythonhosted.org/packages/c4/40/089388c341fb12377de729365c138b07b61b9867f4d6b4dfd739e7143ff5/segno-mimos-0.1.0.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "749f27555d44fbcc83a662bd2f204a29", "sha256": "aaae48d26abf6c49c15550fc4da667ea560c23dfdaebbe77506071859d88cda2" }, "downloads": -1, "filename": "segno_mimos-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "749f27555d44fbcc83a662bd2f204a29", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5332, "upload_time": "2016-08-14T21:41:56", "url": "https://files.pythonhosted.org/packages/e2/e2/51ecde592953c708f5c09ffef0e019a8f3f77b6112eaceffad13f2bdece0/segno_mimos-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "181712c3a2b07b86185945388bbc1f8e", "sha256": "7f4ae0cd7e6d1cfe3ba169daa982d090ea86697f10bc55534954d0bf6c80bcf6" }, "downloads": -1, "filename": "segno-mimos-0.1.4.tar.gz", "has_sig": false, "md5_digest": "181712c3a2b07b86185945388bbc1f8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3713, "upload_time": "2016-08-14T21:41:59", "url": "https://files.pythonhosted.org/packages/6b/18/e60405487ad52c3224208ed8cb72657b22ec0ac433f3c45a7591bc870609/segno-mimos-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "ec1956d3acd77d880a3ddbcb654b9521", "sha256": "a73b7237939d5ad0db1073af1e2712716449da3138b51fb1247db8846a80eff3" }, "downloads": -1, "filename": "segno_mimos-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ec1956d3acd77d880a3ddbcb654b9521", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15722, "upload_time": "2016-08-16T20:22:27", "url": "https://files.pythonhosted.org/packages/e0/93/9c03c309cf6d0a6b30dcf5b9a15cbe095821112e8cbf57228d01362bd709/segno_mimos-0.1.5-py2.py3-none-any.whl" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "5a9e59bfc14f1b396b0088c83c3077b2", "sha256": "aad4463c90e9593a331a676f009b6e504df92076422672f6322a295bd7881e9f" }, "downloads": -1, "filename": "segno_mimos-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5a9e59bfc14f1b396b0088c83c3077b2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15106, "upload_time": "2016-08-17T10:42:21", "url": "https://files.pythonhosted.org/packages/93/12/2bdd61a74267dd6072da70ec5bd01fe906bbd2f20d03258e8435515253bc/segno_mimos-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ac81feb8e7b38095bfe7b4c62f22b18", "sha256": "4fd9aa9c1faf1f85d9830668819e3bb9794fb1fa7ddd1c35561faaa90f0c6b34" }, "downloads": -1, "filename": "segno-mimos-0.1.6.tar.gz", "has_sig": false, "md5_digest": "2ac81feb8e7b38095bfe7b4c62f22b18", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20531, "upload_time": "2016-08-17T10:42:23", "url": "https://files.pythonhosted.org/packages/bb/64/674ca669a4c8e98a01f7f013a62ec398fc075656813d2e82b2678615bc2c/segno-mimos-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "6c87d459cc853cd96ecc0c92a2bf6590", "sha256": "72559830003984ac97a9122eed04020436d1da780125136108f5e82c74cb5e46" }, "downloads": -1, "filename": "segno_mimos-0.1.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6c87d459cc853cd96ecc0c92a2bf6590", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15140, "upload_time": "2016-08-24T21:21:44", "url": "https://files.pythonhosted.org/packages/c7/25/5a3d8dca7a4506dd9f6894b0b2d6fd6a2851eaa1dcfe57ebaac68c7ef8ed/segno_mimos-0.1.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d67286ea07795c5384dd5069d07267be", "sha256": "1ccda0bde332315500580c48c6ad544f9567c8c25c3e4fab02ba28e2fa356f9d" }, "downloads": -1, "filename": "segno-mimos-0.1.7.tar.gz", "has_sig": false, "md5_digest": "d67286ea07795c5384dd5069d07267be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20583, "upload_time": "2016-08-24T21:21:46", "url": "https://files.pythonhosted.org/packages/70/47/fca8c84c1b774bce063fd9ae5e05f52f211f230ad05808665989842344c6/segno-mimos-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "d1938cc7aa0dd9ae36f6a12b7c382d25", "sha256": "6679c84d757b235c93616eeb77f426e36d9e94651c2303f712b9aa5a44af445b" }, "downloads": -1, "filename": "segno_mimos-0.1.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d1938cc7aa0dd9ae36f6a12b7c382d25", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15283, "upload_time": "2016-09-04T09:17:05", "url": "https://files.pythonhosted.org/packages/6d/84/a0ea054461a7aaebc8c3b85d1f382d2f5373651b5cccc8d4a71219e2fb2c/segno_mimos-0.1.8-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a5e09a1c76dbfeccfd33525e230b9bf1", "sha256": "e07111c6c36482c0df5c7e2a0cd84998841d6d2107f74b4818da7f010301b36a" }, "downloads": -1, "filename": "segno-mimos-0.1.8.tar.gz", "has_sig": false, "md5_digest": "a5e09a1c76dbfeccfd33525e230b9bf1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20730, "upload_time": "2016-09-04T09:17:08", "url": "https://files.pythonhosted.org/packages/07/d9/1ba524924d471504d51d727790ad811fdef2d1343fe0347f7d9050693bdc/segno-mimos-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "6f0845472d746491144215eed4137347", "sha256": "eadaec773d75577c01764fa043a24f29f6ac216205ed27b947a6058c24d16195" }, "downloads": -1, "filename": "segno_mimos-0.1.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6f0845472d746491144215eed4137347", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15824, "upload_time": "2016-09-19T08:16:22", "url": "https://files.pythonhosted.org/packages/84/e1/f8d2624301be6271e16832485a6c0549b2e7d5b17479745c820deae60efb/segno_mimos-0.1.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c63787f196e91d7f913bf604776215a2", "sha256": "e8a6100de48f4d32d370aeb6bcefab21c4782196da82c4a272b824a849d04b10" }, "downloads": -1, "filename": "segno-mimos-0.1.9.tar.gz", "has_sig": false, "md5_digest": "c63787f196e91d7f913bf604776215a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12441, "upload_time": "2016-09-19T08:16:31", "url": "https://files.pythonhosted.org/packages/32/62/1156145a166f6f77a2ec094357ff2cc5389c6cb76a97ddadcf075b1f7d5a/segno-mimos-0.1.9.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e652bdf9741305db393199ab9591acc8", "sha256": "ad8be15fea4eeab04c2ffdff926abcecf9efda8485b78fb1d4434049bb56a2c9" }, "downloads": -1, "filename": "segno_mimos-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e652bdf9741305db393199ab9591acc8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15861, "upload_time": "2017-02-08T10:44:50", "url": "https://files.pythonhosted.org/packages/95/72/f93e8896c2cb003f7c5710a2f283f8141f9684f363e48d9302b5b119df8a/segno_mimos-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "25ecbfd428dcabbde4aaccab7ef99073", "sha256": "c9d8e10c9832cde2f23096567801097345a06eb47314852bc3fc08371a053a3d" }, "downloads": -1, "filename": "segno-mimos-0.2.0.tar.gz", "has_sig": false, "md5_digest": "25ecbfd428dcabbde4aaccab7ef99073", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12552, "upload_time": "2017-02-08T10:44:52", "url": "https://files.pythonhosted.org/packages/db/28/ffe50ab8a67bf68c623d38c26b5c854775feb2e60e0bf9788a4170b61d98/segno-mimos-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "a461f6e92a9d4465e187e0608c3f3079", "sha256": "c47c21a709b5f699cb7e84cb1785e0d6753787b42c92bf7f982a801c6de8ef74" }, "downloads": -1, "filename": "segno_mimos-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a461f6e92a9d4465e187e0608c3f3079", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16052, "upload_time": "2017-02-08T21:15:21", "url": "https://files.pythonhosted.org/packages/6b/10/b8224b2138ef4c7b939e50422e4899536d17172114aa3dca0fc9a31a4f08/segno_mimos-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f67e6ab1ae9fe06be042d27d39fa6d39", "sha256": "3911ba92c7b15bf41aec5658ef71116c809b203864d74661ed58cbfc513ec38f" }, "downloads": -1, "filename": "segno-mimos-0.2.1.tar.gz", "has_sig": false, "md5_digest": "f67e6ab1ae9fe06be042d27d39fa6d39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12698, "upload_time": "2017-02-08T21:13:09", "url": "https://files.pythonhosted.org/packages/b7/e4/7e41419099a5fd5d94b90efb811e5515affef6de84a67965762c7cdaf005/segno-mimos-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a461f6e92a9d4465e187e0608c3f3079", "sha256": "c47c21a709b5f699cb7e84cb1785e0d6753787b42c92bf7f982a801c6de8ef74" }, "downloads": -1, "filename": "segno_mimos-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a461f6e92a9d4465e187e0608c3f3079", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 16052, "upload_time": "2017-02-08T21:15:21", "url": "https://files.pythonhosted.org/packages/6b/10/b8224b2138ef4c7b939e50422e4899536d17172114aa3dca0fc9a31a4f08/segno_mimos-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f67e6ab1ae9fe06be042d27d39fa6d39", "sha256": "3911ba92c7b15bf41aec5658ef71116c809b203864d74661ed58cbfc513ec38f" }, "downloads": -1, "filename": "segno-mimos-0.2.1.tar.gz", "has_sig": false, "md5_digest": "f67e6ab1ae9fe06be042d27d39fa6d39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12698, "upload_time": "2017-02-08T21:13:09", "url": "https://files.pythonhosted.org/packages/b7/e4/7e41419099a5fd5d94b90efb811e5515affef6de84a67965762c7cdaf005/segno-mimos-0.2.1.tar.gz" } ] }