kjy00302 / niimprint

(WIP) Niimbot printer client. Tested on D11.
MIT License
90 stars 46 forks source link

Refactor code and add in cli.py to interact with the module #7

Closed dot-mike closed 7 months ago

dot-mike commented 11 months ago

This is a large refactor. Code has been run through Black-formatter. A new CLI tool, cli.py, has been added to interface with the new niimprinter class that has been added. This CLI tool allows the end-user to print a label using a text string as input. The new niimprinter class interfaces with the module source, this was done to further add modularization so that the module can support different devices.

Pillow has been downgraded to version 9.5 to accommodate the new requirement, piltextbox, which is used for printing labels from a given text string.