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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for labelary_mwisslead-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b85219ad9f5aee2914efbe0cd3c360d48ed78217a465401e335df468313df00 |
|
MD5 | 1588fb615be554e60692caed0e64250a |
|
BLAKE2b-256 | 442065e81a110eb022323c5e59469b97b0984387b977554238d3954e96fc844f |