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)
Metadata
Release files for PrintScript 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PrintScript-1.3.0.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PrintScript-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.5 kB
Release files / PrintScript-1.3.0.tar.gz
| Download URL | PrintScript-1.3.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5fad8c2b24b734ae7a1a22cbb0acfb3977f8fe553b67c262946b11504a5f873
|
|
BLAKE2b-256 checksum How to use checksums |
98ea6c9e98fb20fba0fee1d271e846f7156d363c6764bad86301b16792b3295c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / PrintScript-1.3.0-py3-none-any.whl
| Download URL | PrintScript-1.3.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1910ea28e5d012052d5a95c2fcc5a84da90b6f4a0d982bda82a045007d65660
|
|
BLAKE2b-256 checksum How to use checksums |
33791f70551d8644e6c2dc1e369bfaca99a12ac8e802dfa4ae9e1ad4121d7b3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|