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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file labelary-mwisslead-1.0.1.tar.gz.

File metadata

  • Download URL: labelary-mwisslead-1.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for labelary-mwisslead-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b96039c2e1903c91a102c1f122f6ad565987b793e664e48653cf248797557123
MD5 d7b0d11ce643d91443a2913d5b1d5147
BLAKE2b-256 e0b49f4c804c40dd21a9b862b547f08b3e3e3f33fd7f1dabdeedc2d1f40ed3c9

See more details on using hashes here.

File details

Details for the file labelary_mwisslead-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: labelary_mwisslead-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for labelary_mwisslead-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1b85219ad9f5aee2914efbe0cd3c360d48ed78217a465401e335df468313df00
MD5 1588fb615be554e60692caed0e64250a
BLAKE2b-256 442065e81a110eb022323c5e59469b97b0984387b977554238d3954e96fc844f

See more details on using hashes here.

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