{ "info": { "author": "Pedro Salgado", "author_email": "steenzout@ymail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT 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.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Multimedia :: Graphics", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# steenzout.barcode\n\n[![pypi](https://img.shields.io/pypi/v/steenzout.barcode.svg)](https://pypi.python.org/pypi/steenzout.barcode/)\n[![Build Status](https://travis-ci.org/steenzout/python-barcode.svg?branch=master)](https://travis-ci.org/steenzout/python-barcode)\n[![Code Health](https://landscape.io/github/steenzout/python-barcode/master/landscape.svg?style=flat)](https://landscape.io/github/steenzout/python-barcode/master)\n[![Coverage Status](https://coveralls.io/repos/github/steenzout/python-barcode/badge.svg?branch=master)](https://coveralls.io/r/steenzout/python-barcode)\n[![Requirements Status](https://requires.io/github/steenzout/python-barcode/requirements.svg?branch=master)](https://requires.io/github/steenzout/python-barcode/requirements/?branch=master)\n[![Documentation Status](https://readthedocs.org/projects/python-steenzout-barcode/badge/?version=latest)](http://python-steenzout-barcode.readthedocs.io/en/latest/?badge=latest)\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)][license]\n[![Project Stats](https://www.openhub.net/p/python-steenzout-barcode/widgets/project_thin_badge.gif)](https://www.openhub.net/p/python-steenzout-barcode/)\n\nThis repository is a fork of:\n- [viivakoodi][viivakoodi]\n- [pyBarcode][pyBarcode]\n\nThis library provides the ability to create bar codes.\n\nThe bar codes are created as SVG objects.\n\n\n## Installation\n\n```\n$ pip install steenzout.barcode\n```\n\n\n## Bar codes\n\n- EAN-8\n- EAN-13\n- UPC-A\n- JAN\n- ISBN-10\n- ISBN-13\n- ISSN\n- Code 39\n- Code 128\n- PZN\n\n\n## Usage\n\n```\n>>> from steenzout import barcode\n>>> barcode.PROVIDED_BARCODES\n[u'code39', u'code128', u'ean', u'ean13', u'ean8', u'gs1', u'gtin',\n u'isbn', u'isbn10', u'isbn13', u'issn', u'jan', u'pzn', u'upc', u'upca']\n>>> EAN = barcode.get_barcode_class('ean13')\n>>> EAN\n\n>>> ean = EAN(u'5901234123457')\n>>> ean\n\n>>> fullname = ean.save('ean13_barcode')\n>>> fullname\nu'ean13_barcode.svg'\n# Example with PNG\n>>> from barcode.writer import ImageWriter\n>>> ean = EAN(u'5901234123457', writer=ImageWriter())\n>>> fullname = ean.save('ean13_barcode')\nu'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) # PIL (ImageWriter) produces RAW format here\n# New in v0.5.0\n>>> from barcode import generate\n>>> name = generate('EAN13', u'5901234123457', output='barcode_svg')\n>>> name\nu'barcode_svg.svg'\n# with file like object\n>>> fp = StringIO()\n>>> generate('EAN13', u'5901234123457', writer=ImageWriter(), output=fp)\n>>>\n```\n\nNow open ean13_barcode\n[svg|png] in a graphic app or simply in your browser and\nsee the created barcode. That's it.\n\n\n## Commandline\n\n```\n$ pybarcode{2,3} create \"My Text\" outfile\nNew barcode saved as outfile.svg.\n\n$ pybarcode{2,3} create -t png \"My Text\" outfile\nNew barcode saved as outfile.png.\n\nTry `pybarcode -h` for help.\n```\n\n\n## Links\n\n- [Code 39](https://en.wikipedia.org/wiki/Code_39)\n- [Code 128](https://en.wikipedia.org/wiki/Code_128)\n- [EAN](https://en.wikipedia.org/wiki/International_Article_Number_(EAN))\n- [ISBN](https://en.wikipedia.org/wiki/International_Standard_Book_Number)\n- [ISSN](https://en.wikipedia.org/wiki/International_Standard_Serial_Number)\n- [JAN](https://en.wikipedia.org/wiki/International_Article_Number_(EAN)#Japanese_Article_Number)\n- [UPC](https://en.wikipedia.org/wiki/Universal_Product_Code)\n\n\n[license]: https://raw.githubusercontent.com/steenzout/python-barcode/steenzout/LICENSE \"MIT license\"\n[pyBarcode]: https://bitbucket.org/whitie/python-barcode \"barcode\"\n[viivakoodi]: https://github.com/kxepal/viivakoodi \"viivakoodi\"\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/steenzout/python-barcode", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "steenzout.barcode", "package_url": "https://pypi.org/project/steenzout.barcode/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/steenzout.barcode/", "project_urls": { "Homepage": "https://github.com/steenzout/python-barcode" }, "release_url": "https://pypi.org/project/steenzout.barcode/1.0.0b4/", "requires_dist": null, "requires_python": "", "summary": "Python library for bar code generation.", "version": "1.0.0b4" }, "last_serial": 2550983, "releases": { "1.0.0b1": [], "1.0.0b2": [ { "comment_text": "", "digests": { "md5": "a2b4d301d375d27f5304d60611940f43", "sha256": "2b61e1720a282eb23f3b2d1b7ef90eccbc924c43bb3ec8a8867beb2f92a3a4b8" }, "downloads": -1, "filename": "steenzout.barcode-1.0.0b2.tar.gz", "has_sig": false, "md5_digest": "a2b4d301d375d27f5304d60611940f43", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 209969, "upload_time": "2016-09-23T18:47:13", "url": "https://files.pythonhosted.org/packages/a5/f6/fdf263728cdc8e0ac867c6b861cd31c3d56458bbadf74b6ccedd4b7f60e5/steenzout.barcode-1.0.0b2.tar.gz" } ], "1.0.0b3": [ { "comment_text": "", "digests": { "md5": "8dff3d52fedc610912e4a53d0ff986fa", "sha256": "43e37a19801ae2a766961fbf14de939d058deb6bd086c96158e9d778525e1af8" }, "downloads": -1, "filename": "steenzout.barcode-1.0.0b3.tar.gz", "has_sig": false, "md5_digest": "8dff3d52fedc610912e4a53d0ff986fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 209972, "upload_time": "2016-11-03T17:45:52", "url": "https://files.pythonhosted.org/packages/c1/f9/d1cb541224298a49ce4688119c58a1b56c1f31620471a66b10acd963a3d4/steenzout.barcode-1.0.0b3.tar.gz" } ], "1.0.0b4": [ { "comment_text": "", "digests": { "md5": "3fd6d6ab8d3bca1f9e7b9bc78985631e", "sha256": "146195d40a7e5153bda9520e5071c1107fa46ae38c7334ecd69235eccc98df13" }, "downloads": -1, "filename": "steenzout.barcode-1.0.0b4.tar.gz", "has_sig": false, "md5_digest": "3fd6d6ab8d3bca1f9e7b9bc78985631e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 210043, "upload_time": "2017-01-03T04:45:08", "url": "https://files.pythonhosted.org/packages/df/d8/51b7faf1f5dc99524b4723710aa9f8db132ebb3140b1a493b2a50e5c3ed8/steenzout.barcode-1.0.0b4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3fd6d6ab8d3bca1f9e7b9bc78985631e", "sha256": "146195d40a7e5153bda9520e5071c1107fa46ae38c7334ecd69235eccc98df13" }, "downloads": -1, "filename": "steenzout.barcode-1.0.0b4.tar.gz", "has_sig": false, "md5_digest": "3fd6d6ab8d3bca1f9e7b9bc78985631e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 210043, "upload_time": "2017-01-03T04:45:08", "url": "https://files.pythonhosted.org/packages/df/d8/51b7faf1f5dc99524b4723710aa9f8db132ebb3140b1a493b2a50e5c3ed8/steenzout.barcode-1.0.0b4.tar.gz" } ] }