Skip to main content

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


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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PrintScript-1.3.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file PrintScript-1.3.0.tar.gz.

File metadata

  • Download URL: PrintScript-1.3.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for PrintScript-1.3.0.tar.gz
Algorithm Hash digest
SHA256 f5fad8c2b24b734ae7a1a22cbb0acfb3977f8fe553b67c262946b11504a5f873
MD5 fc5ab9c5393e263d45820dfca09fec1f
BLAKE2b-256 98ea6c9e98fb20fba0fee1d271e846f7156d363c6764bad86301b16792b3295c

See more details on using hashes here.

File details

Details for the file PrintScript-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: PrintScript-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for PrintScript-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1910ea28e5d012052d5a95c2fcc5a84da90b6f4a0d982bda82a045007d65660
MD5 7a57629608ecff32bf68a622e0858ff7
BLAKE2b-256 33791f70551d8644e6c2dc1e369bfaca99a12ac8e802dfa4ae9e1ad4121d7b3d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page