{ "info": { "author": "Julian Hammer", "author_email": "julian.hammer@u-sys.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering", "Topic :: Software Development", "Topic :: Utilities" ], "description": "zpl\n===\n\nPython ZPL2 Library generates ZPL2 code which can be sent to Zebra or similar label printers. The library uses only Millimeter as unit and converts them internally according to printer settings.\n\nExample use\n-----------\n\n.. code-block:: python\n\n import os\n from PIL import Image\n import zpl\n\n l = zpl.Label(100,60)\n height = 0\n l.origin(0,0)\n l.write_text(\"Problem?\", char_height=10, char_width=8, line_width=60, justification='C')\n l.endorigin()\n\n height += 13\n image_width = 5\n l.origin((l.width-image_width)/2, height)\n image_height = l.write_graphic(\n Image.open(os.path.join(os.path.dirname(zpl.__file__), 'trollface-large.png')),\n image_width)\n l.endorigin()\n\n height += image_height + 5\n l.origin(22, height)\n l.write_barcode(height=70, barcode_type='U', check_digit='Y')\n l.write_text('07000002198')\n l.endorigin()\n\n height += 20\n l.origin(0, height)\n l.write_text('Happy Troloween!', char_height=5, char_width=4, line_width=60,\n justification='C')\n l.endorigin()\n\n print(l.dumpZPL())\n l.preview()\n\nThis will display the following preview image, generated using the `Labelary API `_:\n`label preview `_\n\nThe generated ZPL2 code is:\n\n::\n\n ^XA^FO0,0^A0N,120,96^FB720,1,0,C,0^FDProblem?^FS^FO330,156^GFA,768,384,8,00003FFFC0000000000600000FF0000000180200C01F8000003008000000600000204080440D10000041080000000C000082420000CC020000840002000102000100200001008000010040000000800002000FF80000010006003F84003E01800C036F8200E100C01402307101FE01202878000E030000A071060200010001504201FC0000007C50821000000106C090A438000001800010A466001E0040115084A183C80070103042107009C044382060104E0800803A20300C40E00700F840380FE03C0003D8001A047021F83C588004027E2021845880020227E021047880020141F82187F8800100C07FFFFFF88001004047FFFFF88000803040FFFFF88000C00880419970800060078001117080001241C00012608000089038C237C08000060401FFF8008000011080000020000000C21040E0044000003863C0010840000006060000104000000180380080400000006000000080000000180000008000000007800001000000000038000600000000000380180000000000003FC000^FS^FO264,264^BUN,70,Y,N,Y^FD07000002198^FS^FO0,504^A0N,60,48^FB720,1,0,C,0^FDHappy Troloween!^FS^XZ\n \nInstallation\n------------\n::\n \n pip install --user zpl\n\n\nRequirements\n------------\n* PIL or Pillow\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cod3monk/zpl", "keywords": "label printer zebra zpl2 zpl", "license": "AGPLv3", "maintainer": "", "maintainer_email": "", "name": "zpl", "package_url": "https://pypi.org/project/zpl/", "platform": "", "project_url": "https://pypi.org/project/zpl/", "project_urls": { "Homepage": "https://github.com/cod3monk/zpl" }, "release_url": "https://pypi.org/project/zpl/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Driver and generator for ZPL2 lables.", "version": "0.1.1" }, "last_serial": 5509152, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "c2d6109ee1f376f7b4e1ee610e287f6b", "sha256": "8dea18dbf50d4108f2a9357b650a34006b031061c30c2f616beb3bf1dd831a50" }, "downloads": -1, "filename": "zpl-0.1.tar.gz", "has_sig": false, "md5_digest": "c2d6109ee1f376f7b4e1ee610e287f6b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 403370, "upload_time": "2018-09-27T09:58:15", "url": "https://files.pythonhosted.org/packages/3e/4b/bdda6d6cd877c01253103ee83ad924cf18083a5ddbbf864fd3118bff4719/zpl-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e1c391788a5d1b75cbfeb95ef75c8e34", "sha256": "65993498a8cc8ee066bd8c3cb11dbd552c1c71bed79532b60b8a319954da2129" }, "downloads": -1, "filename": "zpl-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e1c391788a5d1b75cbfeb95ef75c8e34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 403823, "upload_time": "2019-07-09T21:22:45", "url": "https://files.pythonhosted.org/packages/b2/39/f900569f980b02ef545aa6d052f7de444bc5ed6c137acb3d2f4d1825da49/zpl-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e1c391788a5d1b75cbfeb95ef75c8e34", "sha256": "65993498a8cc8ee066bd8c3cb11dbd552c1c71bed79532b60b8a319954da2129" }, "downloads": -1, "filename": "zpl-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e1c391788a5d1b75cbfeb95ef75c8e34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 403823, "upload_time": "2019-07-09T21:22:45", "url": "https://files.pythonhosted.org/packages/b2/39/f900569f980b02ef545aa6d052f7de444bc5ed6c137acb3d2f4d1825da49/zpl-0.1.1.tar.gz" } ] }