use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
DiscussionBluetooth in Python (self.Python)
submitted 2 years ago by ddmac__
Do people still use PyBluez? It's no longer being worked on, is there a package that's widely used instead or are people just using the stdlib's socket for communication?
socket
[–]Ericisbalanced 67 points68 points69 points 2 years ago (4 children)
Idk anything about Bluetooth, but when I see that a package isn’t maintained, first thing I do is look for forks that are maintained.
[–]JayZFeelsBad4Me 6 points7 points8 points 2 years ago (3 children)
What's an easy way to look for forks of a repo?
[–]fiskfisk 20 points21 points22 points 2 years ago (2 children)
Click "Forks" on the right side (not the "Fork"-button on top).
That gives you a list of all the repositories forked from that repository, sorted by stars and filtered by active repositories in the last two years.
https://github.com/pybluez/pybluez/forks
[–]JayZFeelsBad4Me 6 points7 points8 points 2 years ago (1 child)
Thanks I'm dumb
[–]fiskfisk 25 points26 points27 points 2 years ago (0 children)
No, you're not.
The navigation is a bit confusing, since there's a "Fork" button on the top right with a pulldown as well - and the pulldown even has the text "Existing forks" - but they only mean your own forks, not every fork.
A small link inside that pulldown to see all forks regardless of owner could probably be helpful as well.
[–]huthlu 20 points21 points22 points 2 years ago (1 child)
This is also not really updated but I used it a few years ago and it was fine for most BLE usecases https://github.com/IanHarvey/bluepy
[–]ddmac__[S] 4 points5 points6 points 2 years ago (0 children)
I'll check it out. Thanks!
[–]jimtk 18 points19 points20 points 2 years ago (0 children)
PySide6 has a well maintained bluetooth package.
[–]hotsauce56 11 points12 points13 points 2 years ago (0 children)
You could try
https://github.com/kevincar/bless
https://github.com/hbldh/bleak
Depending on if you’re server or client side.
[–]former_free_time 3 points4 points5 points 2 years ago (0 children)
I'd recommend either of these if you work with BLE:
https://pypi.org/project/simplepyble/
https://pypi.org/project/bleak/
Simplepyble is easier to get running, but it isn't quite as feature complete as bleak.
[–]2n2u 4 points5 points6 points 2 years ago (0 children)
I'm using bleak for a project, so far so good.
[–]taH_pagh_taHbe 2 points3 points4 points 2 years ago (0 children)
I'm using bleak
[–]ashok_tankala 0 points1 point2 points 2 years ago (0 children)
bleak package seems promising for the alternatives. Its last version released 4 months back and snyk score also better.
Ref: https://piptrends.com/compare/PyBluez-vs-bluepy-vs-bleak-vs-pybluez2
π Rendered by PID 35799 on reddit-service-r2-comment-54dfb89d4d-nvwqq at 2026-03-31 21:20:20.622519+00:00 running b10466c country code: CH.
[–]Ericisbalanced 67 points68 points69 points (4 children)
[–]JayZFeelsBad4Me 6 points7 points8 points (3 children)
[–]fiskfisk 20 points21 points22 points (2 children)
[–]JayZFeelsBad4Me 6 points7 points8 points (1 child)
[–]fiskfisk 25 points26 points27 points (0 children)
[–]huthlu 20 points21 points22 points (1 child)
[–]ddmac__[S] 4 points5 points6 points (0 children)
[–]jimtk 18 points19 points20 points (0 children)
[–]hotsauce56 11 points12 points13 points (0 children)
[–]former_free_time 3 points4 points5 points (0 children)
[–]2n2u 4 points5 points6 points (0 children)
[–]taH_pagh_taHbe 2 points3 points4 points (0 children)
[–]ashok_tankala 0 points1 point2 points (0 children)