Skip to main content
https://travis-ci.org/kolonialno/zplgen.svg?branch=master

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

send_to_printer(label)

Running tests

In the base directory, run the following:

python -m unittest discover -s tests

License

zplgen is released under the MIT License.

Metadata

Release files for zplgen 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zplgen 0.0.6
File Size Uploaded Provenance
zplgen-0.0.6.tar.gz 5.1 kB Without provenance Details

Release files / zplgen-0.0.6.tar.gz

Download URL zplgen-0.0.6.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0965861a842281c823a49c572ffdfc1a47bdcdceb851c5aca652a7c2cff1c51e
BLAKE2b-256 checksum
How to use checksums
b7d15eb4ecd2e129e0a21547320959d2f4ca7d15f6b9bd9d77a2743d58f4d009
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.2

Security for zplgen 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page