Metadata-Version: 2.1
Name: PrintScript
Version: 1.3.0
Summary: A package for making print scripts
Author-email: Alex Chen <laplacedoge@gmail.com>
Project-URL: Homepage, https://github.com/laplacedoge/PrintScript
Project-URL: Issues, https://github.com/laplacedoge/PrintScript/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: opencv-python
Requires-Dist: crcmod
Requires-Dist: numpy
Requires-Dist: numba

# PrintScript

## Write less, do more


```python
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)
```
