8 Best Python Bluetooth Libraries

share link

by Dhiren Gala dot icon Updated: Feb 9, 2023

technology logo
technology logo

Guide Kit Guide Kit  

Here are the best open-source Python Bluetooth libraries for your applications. You can use it for developing Bluetooth-enabled applications on Windows, Linux, and macOS, as well as smartphones.

 

Several libraries in Python provide access to the Bluetooth stack on various platforms. It enables Python developers to create Bluetooth-enabled applications for different operating systems. You can also find libraries that support the Bluetooth libraries Low Energy (BLE) protocol, which is designed for low-power devices. Moreover, Python libraries support the classic Bluetooth and BLE protocols. Most Bluetooth libraries provide a clean and easy-to-use interface for developers to build applications faster. So, whether you are developing a simple Bluetooth-enabled application or a complex system, you can find the right Python Bluetooth library to meet your needs.

 

We have handpicked the top and tending open-source Python Bluetooth libraries that offer various capabilities for Bluetooth communication, making it an excellent choice for your applications.


PyBluez:

  • Used to access the host machine’s Bluetooth resources.
  • Supports various platforms, including Windows, Linux, Raspberry Pi, and macOS.
  • Can be installed with compatibility with Python 2.7 and 3.

pybluezby pybluez

HTML doticonstar image 2012 doticonVersion:0.23doticon
License: Strong Copyleft (GPL-2.0)

Bluetooth Python extension module

Support
    Quality
      Security
        License
          Reuse

            pybluezby pybluez

            HTML doticon star image 2012 doticonVersion:0.23doticon License: Strong Copyleft (GPL-2.0)

            Bluetooth Python extension module
            Support
              Quality
                Security
                  License
                    Reuse

                      LightBlue:

                      • Used for device and service discovery, sending, and receiving files, and more.
                      • A simple and easy-to-use Bluetooth library.
                      • Provides a clean interface for developers.
                      • Supports both classic Bluetooth and BLE protocols.
                      Python doticonstar image 88 doticonVersion:Currentdoticon
                      License: Strong Copyleft (GPL-3.0)

                      LightBlue python module that compiles successful on OS X 10.8 (Mountain Lion)

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                lightblue-0.4by 0-1-0

                                Python doticon star image 88 doticonVersion:Currentdoticon License: Strong Copyleft (GPL-3.0)

                                LightBlue python module that compiles successful on OS X 10.8 (Mountain Lion)
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          PyBlueCat:

                                          • Used for analyzing Bluetooth traffic.
                                          • It’s a Bluetooth protocol analysis tool.
                                          • Provides a comprehensive and easy-to-use interface.

                                          pyBluecatby ForrestT

                                          Python doticonstar image 4 doticonVersion:Currentdoticon
                                          no licences License: No License (null)

                                          python wrapper for Bluecat's API

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    pyBluecatby ForrestT

                                                    Python doticon star image 4 doticonVersion:Currentdoticonno licences License: No License

                                                    python wrapper for Bluecat's API
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              PyOBEX:

                                                              • Used for file transfer over Bluetooth.
                                                              • Offers network communication between Bluetooth and infrared devices.
                                                              • Provides support for the Object Exchange (OBEX) protocol.

                                                              PyOBEXby kratz00

                                                              Python doticonstar image 0 doticonVersion:Currentdoticon
                                                              License: Strong Copyleft (GNU GPLv3)

                                                              A package implementing aspects of the Object Exchange (OBEX) protocol.

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        PyOBEXby kratz00

                                                                        Python doticon star image 0 doticonVersion:Currentdoticon License: Strong Copyleft (GNU GPLv3)

                                                                        A package implementing aspects of the Object Exchange (OBEX) protocol.
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  Bluepy:

                                                                                  • Used to access Bluetooth Low Energy devices from Python.
                                                                                  • Provides a simple and easy-to-use interface for BLE communication.
                                                                                  • Works on Python 2.7, 3.3, and 3.4.  

                                                                                  bluepyby IanHarvey

                                                                                  C doticonstar image 1523 doticonVersion:Currentdoticon
                                                                                  License: Others (Non-SPDX)

                                                                                  Python interface to Bluetooth LE on Linux

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            bluepyby IanHarvey

                                                                                            C doticon star image 1523 doticonVersion:Currentdoticon License: Others (Non-SPDX)

                                                                                            Python interface to Bluetooth LE on Linux
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      pybluez | mbasta:

                                                                                                      • Used to access a system’s Bluetooth resources.
                                                                                                      • Allows detecting nearby Bluetooth devices, enabling SDP services, etc.
                                                                                                      • Works with GNU/Linux, macOS, and Windows.

                                                                                                      pybluezby mbasta

                                                                                                      Python doticonstar image 0 doticonVersion:Currentdoticon
                                                                                                      License: Others (Non-SPDX)

                                                                                                      Bluetooth Python extension module

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                pybluezby mbasta

                                                                                                                Python doticon star image 0 doticonVersion:Currentdoticon License: Others (Non-SPDX)

                                                                                                                Bluetooth Python extension module
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          Bleak:

                                                                                                                          • Used to discover and connect to Bluetooth devices.
                                                                                                                          • Offers compatibility for Android backend with python-for-android.
                                                                                                                          • Supports reading, writing, and getting notifications from GATT servers.
                                                                                                                          • Provides an asynchronous, cross-platform Python API.

                                                                                                                          bleakby hbldh

                                                                                                                          Python doticonstar image 1174 doticonVersion:v0.20.2doticon
                                                                                                                          License: Permissive (MIT)

                                                                                                                          A cross platform Bluetooth Low Energy Client for Python using asyncio

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    bleakby hbldh

                                                                                                                                    Python doticon star image 1174 doticonVersion:v0.20.2doticon License: Permissive (MIT)

                                                                                                                                    A cross platform Bluetooth Low Energy Client for Python using asyncio
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              PyBluetooth:

                                                                                                                                              • Used as a pure-Python implementation of a Bluetooth LE host stack.
                                                                                                                                              • Provides a simple and easy-to-use interface for Bluetooth communication.
                                                                                                                                              • Uses PyUSB to communicate with standard Bluetooth USB dongles.

                                                                                                                                              pybluetoothby pebble

                                                                                                                                              Python doticonstar image 13 doticonVersion:Currentdoticon
                                                                                                                                              License: Permissive (MIT)

                                                                                                                                              Python Bluetooth Library

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        pybluetoothby pebble

                                                                                                                                                        Python doticon star image 13 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                        Python Bluetooth Library
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  See similar Kits and Libraries