jnweiger / led-name-badge-ls32

Upload tool for an led name tag with USB-HID interface
GNU General Public License v2.0
235 stars 88 forks source link

[featurerequest] restructure for reuse #3

Closed s-light closed 11 months ago

s-light commented 5 years ago

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)

semaf commented 5 years ago

yep that would be a great future!

jnweiger commented 5 years ago

needed for https://github.com/jnweiger/led-badge-44x11/issues/11

bensartori commented 11 months ago

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?

s-light commented 11 months ago

thanks for your work!! i think with this functionality in place we could close this here!

bensartori commented 11 months ago

Hello Stefan, great, you're welcome. Thanks for completing.