A package for making print scripts
Project description
PrintScript
Write less, do more
import PrintScript.zpl as ZPL
# specify your image file path
imagePath = "/path/to/your/image.png"
with open("example.zpl", "wb") as file:
# create a script generator
generator = ZPL.Generator()
# set parameters
generator.setPrintWidth(576) \
.setLabelLength(800) \
.setLabelShift(0) \
.setLabelHomePosition((0, 0)) \
.addGraphicField((0, 0), (576, -1), imagePath)
# generate the script
script = generator.makeScript()
# write it to the file
file.write(script)
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
PrintScript-1.3.0.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for PrintScript-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1910ea28e5d012052d5a95c2fcc5a84da90b6f4a0d982bda82a045007d65660 |
|
MD5 | 7a57629608ecff32bf68a622e0858ff7 |
|
BLAKE2b-256 | 33791f70551d8644e6c2dc1e369bfaca99a12ac8e802dfa4ae9e1ad4121d7b3d |