{ "info": { "author": "Thorsten Weimann et al", "author_email": "weimann.th@yahoo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Multimedia :: Graphics", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "python-barcode\n==============\n\n.. image:: https://travis-ci.org/WhyNotHugo/python-barcode.svg?branch=master\n :target: https://travis-ci.org/WhyNotHugo/python-barcode\n :alt: build status\n\n.. image:: https://img.shields.io/pypi/v/python-barcode.svg\n :target: https://pypi.python.org/pypi/python-barcode\n :alt: version on pypi\n\n.. image:: https://img.shields.io/pypi/l/python-barcode.svg\n :target: https://github.com/WhyNotHugo/python-barcode/blob/master/LICENCE\n :alt: licence\n\nThis library provides a simple way to create barcodes using only the\nPython standard lib. The barcodes are created as SVG objects.\n\n.. image:: example-ean13.png\n :target: https://github.com/WhyNotHugo/python-barcode\n :alt: python-barcode\n\nPlease report any bugs at https://github.com/WhyNotHugo/python-barcode/issues\n\n\nRequirements\n------------\n\n- Setuptools/distribute for installation.\n- Python 3.5 or above\n- Program to open SVG objects (your browser should do it)\n- Optional: Pillow to render barcodes as images (PNG, JPG, ...)\n\n\nInstallation\n------------\n\nThe best way is to use pip: ``pip install python-barcode``.\n\nYou can also install manually by downloading the tarball, extracting it, and\nrunning ``python setup.py install``.\n\n\nProvided Barcodes\n-----------------\n\n* EAN-8\n* EAN-13\n* EAN-14\n* UPC-A\n* JAN\n* ISBN-10\n* ISBN-13\n* ISSN\n* Code 39\n* Code 128\n* PZN\n\n\nTodo\n----\n\n- Add documentation\n- Add more codes\n\nUsage\n-----\n\nInteractive::\n\n >>> import barcode\n >>> barcode.PROVIDED_BARCODES\n ['code39', 'code128', 'ean', 'ean13', 'ean8', 'gs1', 'gtin',\n 'isbn', 'isbn10', 'isbn13', 'issn', 'jan', 'pzn', 'upc', 'upca']\n >>> EAN = barcode.get_barcode_class('ean13')\n >>> EAN\n \n >>> ean = EAN('5901234123457')\n >>> ean\n \n >>> fullname = ean.save('ean13_barcode')\n >>> fullname\n 'ean13_barcode.svg'\n # Example with PNG\n >>> from barcode.writer import ImageWriter\n >>> ean = EAN('5901234123457', writer=ImageWriter())\n >>> fullname = ean.save('ean13_barcode')\n 'ean13_barcode.png'\n # New in v0.4.2\n >>> from StringIO import StringIO\n >>> fp = StringIO()\n >>> ean.write(fp)\n # or\n >>> f = open('/my/new/file', 'wb')\n >>> ean.write(f) # Pillow (ImageWriter) produces RAW format here\n # New in v0.5.0\n >>> from barcode import generate\n >>> name = generate('EAN13', '5901234123457', output='barcode_svg')\n >>> name\n 'barcode_svg.svg'\n # with file like object\n >>> fp = StringIO()\n >>> generate('EAN13', '5901234123457', writer=ImageWriter(), output=fp)\n >>>\n\nNow open ean13_barcode.[svg|png] in a graphic app or simply in your browser\nand see the created barcode. That's it.\n\nCommandline::\n\n $ python-barcode create \"My Text\" outfile\n New barcode saved as outfile.svg.\n $ python-barcode create -t png \"My Text\" outfile\n New barcode saved as outfile.png.\n\n Try `python-barcode -h` for help.\n\nChangelog\n---------\n\nv0.9.1\n~~~~~~\n\n* Officially support Python 3.7\n* Refer to Pillow in the docs, rather than PIL.\n\nv0.9.0\n~~~~~~\n\n* Removed buggy ``Barcode.raw`` attribute.\n* Various CLI errors ironed out.\n* Make the default value for ``writer_options``` consistent across writers.\n\nv0.8.3\n~~~~~~\n\n* Fix pushing of releases to GitHub.\n\nv0.8.2\n~~~~~~\n\n* Fix crashes when attempting to use the CLI app.\n* Properly include version numbers in SVG comments.\n\nv0.8.1\n~~~~~~\n* Improve README rendering, and point to this fork's location (the outdated\n README on PyPI was causing some confusion).\n\nv0.8.0\n~~~~~~\n* First release under the name ``python-barcode``.\n\nPrevious Changelog\n------------------\n\nThis project is a fork of pyBarcode, which, apparently, is no longer\nmaintained. v0.8.0 is our first release, and is the latest ``master`` from that\nparent project.\n\nv0.8\n~~~~\n* Code 128 added.\n* Data for charsets and bars moved to subpackage barcode.charsets.\n* Merged in some improvements.\n\nv0.7\n~~~~\n* Fixed some issues with fontsize and fontalignment.\n* Added Python 3 support. It's not well tested yet, but the tests run without\n errors with Python 3.3. Commandline script added.\n\nv0.6\n~~~~\n* Changed save and write methods to take the options as a dict not as keyword\n arguments (fix this in your code). Added option to left align the text under\n the barcode. Fixed bug with EAN13 generation.\n\nv0.5.0\n~~~~~~\n* Added new generate function to do all generation in one step.\n* Moved writer from a subpackage to a module (this breaks some existing code).\n UPC is now rendered as real UPC, not as EAN13 with the leading \"0\".\n\nv0.4.3\n~~~~~~\n* Fixed bug in new write method (related to PIL) and updated docs.\n\nv0.4.2\n~~~~~~\n* Added write method to support file like objects as target.\n\nv0.4.1\n~~~~~~\n* Bugfix release. Removed redundancy in input validation.\n* EAN8 was broken. It now works as expected.\n\nv0.4\n~~~~\n* Removed \\*\\*options from writers __init__ method. These options never had\n effect. They were always overwritten by default_options.\n* New config option available: text_distance (the distance between barcode and\n text).\n\nv0.4b2\n~~~~~~\n* Basic documentation included. The barcode object now has a new attribute\n called `raw` to have the rendered output without saving to disk.\n\nv0.4b1\n~~~~~~\n* Support for rendering barcodes as images is implemented. PIL is required to\n use it.\n\nv0.3\n~~~~\n* Compression for SVG output now works.\n\nv0.3b1\n~~~~~~\n* Writer API has changed for simple adding new (own) writers.\n* SVG output is now generated with xml.dom module instead of stringformatting\n (makes it more robust).\n\nv0.2.1\n~~~~~~\n* API of render changed. Now render takes keyword arguments instead of a dict.\n\nv0.2\n~~~~\n* More tests added.\n\nv0.1\n~~~~\n* First release.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/WhyNotHugo/python-barcode", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "python-barcode", "package_url": "https://pypi.org/project/python-barcode/", "platform": "", "project_url": "https://pypi.org/project/python-barcode/", "project_urls": { "Homepage": "https://github.com/WhyNotHugo/python-barcode" }, "release_url": "https://pypi.org/project/python-barcode/0.10.0/", "requires_dist": [ "pillow; extra == 'images'" ], "requires_python": "", "summary": "Create standard barcodes with Python. No external modules needed. (optional Pillow support included).", "version": "0.10.0" }, "last_serial": 5311492, "releases": { "0.10.0": [ { "comment_text": "", "digests": { "md5": "3909306b2195c07edf36afed6fc81714", "sha256": "5f6bbdd42dd9e5ead4a3526070924638b24930cd8d52c162d2aff62a47086ea5" }, "downloads": -1, "filename": "python_barcode-0.10.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3909306b2195c07edf36afed6fc81714", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 211590, "upload_time": "2019-05-24T08:42:12", "url": "https://files.pythonhosted.org/packages/10/aa/faaabf936994dc3457f25b2222e2feb8b1ba391df033ce94bc99f0ba17da/python_barcode-0.10.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7c9b7c0b60c1991d09069aaf499c8531", "sha256": "f5eceb695aa71281b33b505549f93ddcbe4c41562b1a46bd632ebaab3705c369" }, "downloads": -1, "filename": "python-barcode-0.10.0.tar.gz", "has_sig": false, "md5_digest": "7c9b7c0b60c1991d09069aaf499c8531", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 227176, "upload_time": "2019-05-24T08:42:14", "url": "https://files.pythonhosted.org/packages/6f/95/fe173b976123716d8b02ff19da1d6e3c88d65e89bcddc7808f2b816b2070/python-barcode-0.10.0.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "87d09dd22e1b8a97c93c67bc66aa588d", "sha256": "eb8c98fc40eeaea3291615474dc826ebae18573ad36c129b8dfdf5482ee4d3e5" }, "downloads": -1, "filename": "python_barcode-0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "87d09dd22e1b8a97c93c67bc66aa588d", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 214111, "upload_time": "2017-10-12T23:02:26", "url": "https://files.pythonhosted.org/packages/56/f9/d307e72f7651745fc92fc14332c7e4f50264f236f2c243956bd0af06dd1b/python_barcode-0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b57fe4c5a56dc688d58c959c52a98316", "sha256": "576623588fcc4378909c62c5cd9bda659a26371a691c86d6830067be2e7ad0b1" }, "downloads": -1, "filename": "python-barcode-0.8.tar.gz", "has_sig": false, "md5_digest": "b57fe4c5a56dc688d58c959c52a98316", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 224554, "upload_time": "2017-10-12T23:02:30", "url": "https://files.pythonhosted.org/packages/1a/25/551a3ccae85fc82e85304bd9d7c8ef951d6660a5120f34b7cd6835025762/python-barcode-0.8.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "ccda7911857bd505056cf470e966c34c", "sha256": "44f1128c3756af7bf1772cb9962cf3ea7d7f46ab2a1545edb9eb46be85b54372" }, "downloads": -1, "filename": "python_barcode-0.8.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ccda7911857bd505056cf470e966c34c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 214187, "upload_time": "2017-10-26T23:21:23", "url": "https://files.pythonhosted.org/packages/e8/a3/62047285a4bcd44a8dceac82028bd98006ea3876f473fa446175881e1beb/python_barcode-0.8.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d845e1a8dde23a02f36896c2b7441307", "sha256": "4532fcbe0ef070e7207d532798501082120ee5b0917ea5c9d0e97fc0d4b5de89" }, "downloads": -1, "filename": "python-barcode-0.8.1.tar.gz", "has_sig": false, "md5_digest": "d845e1a8dde23a02f36896c2b7441307", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 225526, "upload_time": "2017-10-26T23:21:25", "url": "https://files.pythonhosted.org/packages/a5/d7/7c22acb76dededb70d79e4a3c3f9ca0094d464f503498a16b6c39481bf14/python-barcode-0.8.1.tar.gz" } ], "0.8.2": [ { "comment_text": "", "digests": { "md5": "cd1860b6dac44008a44f6ec3cf03f73d", "sha256": "8ca56876030164cec6e7d41fcda89f295a6f472a1c9f7dfd955c6b71a01c9a7a" }, "downloads": -1, "filename": "python_barcode-0.8.2-py3-none-any.whl", "has_sig": false, "md5_digest": "cd1860b6dac44008a44f6ec3cf03f73d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 214271, "upload_time": "2018-05-11T17:46:29", "url": "https://files.pythonhosted.org/packages/31/53/ba059da36d0edf0db763acde4c739ce9ab3d262deb12d1ec29e88501261d/python_barcode-0.8.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "656e39a4d29082e5da5cbb7d502b7d25", "sha256": "8e74839e8760a97405d6547665931240f544c33528f0326fd9471f385ef99f29" }, "downloads": -1, "filename": "python-barcode-0.8.2.tar.gz", "has_sig": false, "md5_digest": "656e39a4d29082e5da5cbb7d502b7d25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 225587, "upload_time": "2018-05-11T17:46:31", "url": "https://files.pythonhosted.org/packages/8c/0c/2d2546ef3b4a99f017fe368936ee8a989aca6ecc84bd9ec45114e7faef68/python-barcode-0.8.2.tar.gz" } ], "0.8.3": [ { "comment_text": "", "digests": { "md5": "5ba1e75b81b8f83cbadbc532079b84d2", "sha256": "f9732fba2a43cdc530245fd078d276e5fc075a3d1a946c609c770ff1e8618fa2" }, "downloads": -1, "filename": "python_barcode-0.8.3-py3-none-any.whl", "has_sig": false, "md5_digest": "5ba1e75b81b8f83cbadbc532079b84d2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 214433, "upload_time": "2018-05-11T17:53:17", "url": "https://files.pythonhosted.org/packages/78/75/465107b1b9ff37f6e8958ed5ef393df0fe63769e0bcd1628d9fe0938ccea/python_barcode-0.8.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9f24ed7b5e9e0567d80d91bd6cce4b4c", "sha256": "dd90e98327405bcefacac9ccf27f9d23ae253d18cd9917154931c4f4e70914ef" }, "downloads": -1, "filename": "python-barcode-0.8.3.tar.gz", "has_sig": false, "md5_digest": "9f24ed7b5e9e0567d80d91bd6cce4b4c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 225707, "upload_time": "2018-05-11T17:53:19", "url": "https://files.pythonhosted.org/packages/20/e4/d1e8a1b58fe238b410dc093755d2caea88716ff37aa6fa03089f382d0036/python-barcode-0.8.3.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "6c6a3bc399f0e8da45e1d70aaf9ccf15", "sha256": "1a54b628bff1d6199594087c51d4d002c82dbbe640cfc930c7e2d3913f5d056b" }, "downloads": -1, "filename": "python_barcode-0.9.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6c6a3bc399f0e8da45e1d70aaf9ccf15", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 214438, "upload_time": "2018-06-14T16:50:09", "url": "https://files.pythonhosted.org/packages/34/fd/40e981cfe50c9a18043706a8f7d79b444292f81434ad5fe4f3f4a125895c/python_barcode-0.9.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bba97548de72cf4202338c5a20dc7cce", "sha256": "a2f5c46d8db8a9113994e525c88105aca11c02c4c554c74aea4b38b702dc3c08" }, "downloads": -1, "filename": "python-barcode-0.9.0.tar.gz", "has_sig": false, "md5_digest": "bba97548de72cf4202338c5a20dc7cce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 225848, "upload_time": "2018-06-14T16:50:10", "url": "https://files.pythonhosted.org/packages/a8/95/fed9bee6c2b203b8a200c8b1f129681a2432cfd1433167892ae70766ea51/python-barcode-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3909306b2195c07edf36afed6fc81714", "sha256": "5f6bbdd42dd9e5ead4a3526070924638b24930cd8d52c162d2aff62a47086ea5" }, "downloads": -1, "filename": "python_barcode-0.10.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3909306b2195c07edf36afed6fc81714", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 211590, "upload_time": "2019-05-24T08:42:12", "url": "https://files.pythonhosted.org/packages/10/aa/faaabf936994dc3457f25b2222e2feb8b1ba391df033ce94bc99f0ba17da/python_barcode-0.10.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7c9b7c0b60c1991d09069aaf499c8531", "sha256": "f5eceb695aa71281b33b505549f93ddcbe4c41562b1a46bd632ebaab3705c369" }, "downloads": -1, "filename": "python-barcode-0.10.0.tar.gz", "has_sig": false, "md5_digest": "7c9b7c0b60c1991d09069aaf499c8531", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 227176, "upload_time": "2019-05-24T08:42:14", "url": "https://files.pythonhosted.org/packages/6f/95/fe173b976123716d8b02ff19da1d6e3c88d65e89bcddc7808f2b816b2070/python-barcode-0.10.0.tar.gz" } ] }