Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

A library to aid in generating ZPL2 code.

Project Description

zplgen is a utility library to aid in generating ZPL2 code.

The core idiom is the Command class, which subclasses bytes. Another helper is the Font class.

Example usage

f_default = Font('V', height=30)

label = bytes()

label += Command.label_start()
label += Command.label_home(30, 0)

label += Command.graphic_circle(x=550, y=15, diameter=100, border=6)
label += Command.field('?', x=560, y=50, font=f_default(45))

label += Command.field(name, x=0, y=135, font=f_default)

label += Command.label_end()


Running tests

In the base directory, run the following:

python -m unittest discover -s tests
Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
zplgen-0.0.1-py2.py3-none-any.whl (6.4 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel May 9, 2017
zplgen-0.0.1.tar.gz (4.9 kB) Copy SHA256 Checksum SHA256 Source May 9, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting