{ "info": { "author": "Thorsten Weimann, Alexander Shorin", "author_email": "developer@tiqets.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.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Multimedia :: Graphics", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Viivakoodi\n==========\n\n`Viivakoodi` (`barcode in Suomi `_)\nis the fork of `pyBarcode `_\nproject.\n\nThis library provides a simple way to create barcodes using only the\nPython standardlib. The barcodes where created as SVG objects.\n\nReport bugs at https://github.com/kxepal/viivakoodi/issues/\n\n\nRequirements\n------------\n\n - Setuptools/distribute for installation (new in version 0.7beta4)\n - Python 2.6 or above (including Python 3.x)\n - On Python 2.6, 3.0, 3.1: argparse (for the commandline script)\n - Program to open SVG objects (your browser should do it)\n - Optional: PIL to render barcodes as images (PNG, JPG, ...)\n\n\nInstallation\n------------\n\nMake sure you have setuptools/distribute installed.\n\nUnpack the downloaded file, cd into the viivakoodi directory and run\n`python setup.py install`. Or just copy the barcode dir somewhere in\nyour PYTHONPATH.\n\nThe best way is to use pip: `pip install viivakoodi`.\n\n\nProvided Barcodes\n-----------------\n\nEAN-8, EAN-13, UPC-A, JAN, ISBN-10, ISBN-13, ISSN, Code 39, Code 128, PZN\n\n\nTodo\n----\n\n - Add documentation\n - Add more codes\n - Improve Python 3 support\n - Add simple GUI\n\nUsage\n-----\n\nInteractive::\n\n >>> 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\n u'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')\n u'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\n u'barcode_svg.svg'\n # with file like object\n >>> fp = StringIO()\n >>> generate('EAN13', u'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 $ pybarcode{2,3} create \"My Text\" outfile\n New barcode saved as outfile.svg.\n $ pybarcode{2,3} create -t png \"My Text\" outfile\n New barcode saved as outfile.png.\n\n Try `pybarcode -h` for help.\n\nChangelog\n---------\n\n:v0.8: Code 128 added. Data for charsets and bars moved to subpackage\n barcode.charsets.\n\n:v0.7: Fixed some issues with fontsize and fontalignment.\n Added Python 3 support. It's not well tested yet, but the tests\n run without errors with Python 3.3. Commandline script added.\n\n:v0.6: Changed save and write methods to take the options as a dict\n not as keyword arguments (fix this in your code). Added option\n to left align the text under the barcode. Fixed bug with EAN13\n generation.\n\n:v0.5.0: Added new generate function to do all generation in one step.\n Moved writer from a subpackage to a module (this breaks some\n existing code). UPC is now rendered as real UPC, not as EAN13\n with the leading \"0\".\n\n:v0.4.3: Fixed bug in new write method (related to PIL) and updated docs.\n\n:v0.4.2: Added write method to support file like objects as target.\n\n:v0.4.1: Bugfix release. Removed redundancy in input validation.\n EAN8 was broken. It now works as expected.\n\n:v0.4: Removed \\*\\*options from writers __init__ method. These options never\n had effect. They were always overwritten by default_options.\n New config option available: text_distance (the distance between\n barcode and text).\n\n:v0.4b2: Basic documentation included. The barcode object now has a new\n attribute called `raw` to have the rendered output without saving\n to disk.\n\n:v0.4b1: Support for rendering barcodes as images is implemented.\n PIL is required to use it.\n\n:v0.3: Compression for SVG output now works.\n\n:v0.3b1: Writer API has changed for simple adding new (own) writers.\n SVG output is now generated with xml.dom module instead of\n stringformatting (makes it more robust).\n\n:v0.2.1: API of render changed. Now render takes keyword arguments\n instead of a dict.\n\n:v0.2: More tests added.\n\n:v0.1: First release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/tiqets/barcode", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "tiqetsbarcode", "package_url": "https://pypi.org/project/tiqetsbarcode/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tiqetsbarcode/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/tiqets/barcode" }, "release_url": "https://pypi.org/project/tiqetsbarcode/0.8.0/", "requires_dist": null, "requires_python": null, "summary": "Create standard barcodes with Python. No external modules needed (optional PIL support included).", "version": "0.8.0" }, "last_serial": 1951432, "releases": { "0.8.0": [ { "comment_text": "", "digests": { "md5": "0b37999a809408ba102f365b3ea8fcae", "sha256": "02eeccdf28af2b4caa49f8e8621ce6f85304525d430d70a7bdf94285749114dd" }, "downloads": -1, "filename": "tiqetsbarcode-0.8.0.tar.gz", "has_sig": false, "md5_digest": "0b37999a809408ba102f365b3ea8fcae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 225390, "upload_time": "2016-02-11T16:26:19", "url": "https://files.pythonhosted.org/packages/27/4f/b6a1bbb3950442a4b7974b017c71bfc3401744cc5d25e1850dd4abccb975/tiqetsbarcode-0.8.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0b37999a809408ba102f365b3ea8fcae", "sha256": "02eeccdf28af2b4caa49f8e8621ce6f85304525d430d70a7bdf94285749114dd" }, "downloads": -1, "filename": "tiqetsbarcode-0.8.0.tar.gz", "has_sig": false, "md5_digest": "0b37999a809408ba102f365b3ea8fcae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 225390, "upload_time": "2016-02-11T16:26:19", "url": "https://files.pythonhosted.org/packages/27/4f/b6a1bbb3950442a4b7974b017c71bfc3401744cc5d25e1850dd4abccb975/tiqetsbarcode-0.8.0.tar.gz" } ] }