Skip to main content

Module for interacting with api.labelary.com

Project description

pylabelary

Python module for interacting with api.labelary.com

Usage:

>>> import labelary
>>>
>>> test_label = '^XA^PR2^LRY^LH30,30^Fo),0^GB400,300,300^FS^FO20,10^AF^FDZEBRA^FS^FO20,60' \
...              '^B3,,40^FDAAA001^FS^PF50^FO20,160^AF^FDSLEW EXAMPLE^FS^XZ^XA^PH^XZ^XA^PR2,6' \
...              '^F020,10^AF^FDZEBRA^FS^F020,60^B3,,40^FDAAA001^FS^PFO20,160^AF' \
...              '^FDSLEW EXAMPLE^FS^XZ^XA^LH30,30^FO20,10^AD^FDZEBRA^FS^FO20,60^B3^FDAAA001' \
...              '^FS^XZ'
>>>
>>> png_labels = labelary.zpl2_to_png(test_label)
>>>
>>> for i, label in enumerate(png_labels):
...     with open('test_label{}.png'.format(i), 'wb') as fid:
...         fid.write(label)
...
>>>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

labelary-mwisslead-1.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

labelary_mwisslead-1.0.1-py2.py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page