Closed Galaxy102 closed 3 years ago
The code is so nice and clean. I tested it and it works very well. Thanks for spending your time improving this project.
I'm going to merge this, but before that, can you provide some instructions on how to use it as a library for people who might be interested in that?
Thank you for the nice comment. I added the instructions to the README.
Hey @TheWeirdDev,
thanks for your work, it gave me a great starting point to develop a Budgie Applet (coming soon) to request my new headset's battery state. To integrate it more smoothly, I abstracted the C-ish source code into a (I hope at least) more Pythonic interface. The main difference - besides the abstraction in a class - is that nothing outside the
if __name__ == '__main__'
can write tostdout
and Errors are raised in a programmatic manner.Please let me know if you request any changes. If you don't want my pseudonym in the source file, I'm open to removing it.
Best regards, Konstantin (@Galaxy102)