Closed s-light closed 11 months ago
yep that would be a great future!
Hello Stefan, I did some work on modularization and Jürgen just merged it. It's not a pip or pypi package, but you can now call the functionalities (create bitmap / write to badge) from other scripts using import. Maybe it's enough for your needs?
thanks for your work!! i think with this functionality in place we could close this here!
Hello Stefan, great, you're welcome. Thanks for completing.
would be great if the script has the form of a python 'module' so it could be easily used by other scripts best case: be installed via pypi :grinning:
this would also mean to restructure & define some module-level API - after a first look it could make sens to extract the real upload functions into one module and the fancy font and bitmap things into another.. (the second one could have a classic __main__ for the current standalone/commandline use)
(common tutorial about python packaging)