Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an interface to this ~~script~~ library #66

Merged
merged 3 commits into from
Nov 13, 2021

Conversation

Galaxy102
Copy link
Contributor

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 to stdout 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)

Galaxy102 added a commit to Galaxy102/budgie-bluetooth-battery-applet that referenced this pull request Nov 13, 2021
@TheWeirdDev
Copy link
Owner

TheWeirdDev commented Nov 13, 2021

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?

@Galaxy102
Copy link
Contributor Author

Thank you for the nice comment. I added the instructions to the README.

@TheWeirdDev TheWeirdDev merged commit 29fb920 into TheWeirdDev:master Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants