labbots / NiimPrintX

NiimPrintX is a Python library designed to seamlessly interface with NiimBot label printers via Bluetooth. This library supports a range of models including D11/B21/B1, D110, and B18.
GNU General Public License v3.0
70 stars 4 forks source link

[Feature Request] Config file for label sizes. #7

Open Cvaniak opened 1 month ago

Cvaniak commented 1 month ago

Problem

Not all possible sizes are covered by the app, and new sizes might become available in the future. Each new size requires an update to the app.

Solution

I suggest a configuration file that holds the values from AppConfig.py in JSON, YAML, or TOML format. This would allow users to manually modify the parameters more easily.

Optional

To avoid overwriting the default file when a new version of the app is released, it would be useful to support both a default config and a user config that would be added to .gitignore. Additionally, there could be a CLI command to add the required label size to the user config file.