All Projects → ukBaz → Python Bluezero

ukBaz / Python Bluezero

Licence: mit
A simple Python interface to Bluez

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Python Bluezero

Flutter reactive ble
Flutter library that handles BLE operations for multiple devices.
Stars: ✭ 155 (-30.18%)
Mutual labels:  bluetooth-low-energy, bluetooth
Radareeye
A tool made for specially scanning nearby devices[BLE, Bluetooth & Wifi] and execute our given command on our system when the target device comes in-between range.
Stars: ✭ 218 (-1.8%)
Mutual labels:  bluetooth-low-energy, bluetooth
Easyble
Android BLE framework
Stars: ✭ 155 (-30.18%)
Mutual labels:  bluetooth-low-energy, bluetooth
Web Bluetooth Terminal
Progressive Web Application for serial communication with your own Bluetooth Low Energy (Smart) devices
Stars: ✭ 130 (-41.44%)
Mutual labels:  bluetooth-low-energy, bluetooth
Continuity
Apple Continuity Protocol Reverse Engineering and Dissector
Stars: ✭ 180 (-18.92%)
Mutual labels:  bluetooth-low-energy, bluetooth
Ble.net
Cross-platform Bluetooth Low Energy (BLE) library for Android, iOS, and UWP
Stars: ✭ 137 (-38.29%)
Mutual labels:  bluetooth-low-energy, bluetooth
Androidbluetoothlibrary
A Library for easy implementation of Serial Bluetooth Classic and Low Energy on Android. 💙
Stars: ✭ 171 (-22.97%)
Mutual labels:  bluetooth-low-energy, bluetooth
Blueteeth
A simple, lightweight library intended to take away some of the cruft and tediousness of using the Android BLE.
Stars: ✭ 89 (-59.91%)
Mutual labels:  bluetooth-low-energy, bluetooth
Airpodsbattery Monitor For Mac
Simple Widget to display your AirPods battery levels from the Mac Status bar
Stars: ✭ 165 (-25.68%)
Mutual labels:  bluetooth-low-energy, bluetooth
Angular Web Bluetooth
The missing Web Bluetooth module for Angular
Stars: ✭ 164 (-26.13%)
Mutual labels:  bluetooth-low-energy, bluetooth
Blueborne Scanner
Bluetooth scanner for local devices that may be vulnerable to Blueborne exploit
Stars: ✭ 125 (-43.69%)
Mutual labels:  bluetooth-low-energy, bluetooth
H Ble
Android Ble类库,基于回调,暴露搜索、连接、发送、接收、断开连接等接口,无需关心细节操作即可进行Ble通信。
Stars: ✭ 171 (-22.97%)
Mutual labels:  bluetooth-low-energy, bluetooth
Lmbluetoothsdk
A library to make classic bluetooth or BLE easier to use in Android.
Stars: ✭ 122 (-45.05%)
Mutual labels:  bluetooth-low-energy, bluetooth
Bluetoothlinux
Pure Swift Linux Bluetooth Stack
Stars: ✭ 149 (-32.88%)
Mutual labels:  bluetooth-low-energy, bluetooth
Nimble Arduino
A fork of the NimBLE library structured for compilation with Ardruino, designed for use with ESP32.
Stars: ✭ 108 (-51.35%)
Mutual labels:  bluetooth-low-energy, bluetooth
Node Ble
Bluetooth Low Energy (BLE) library written with pure Node.js (no bindings) - baked by Bluez via DBus
Stars: ✭ 159 (-28.38%)
Mutual labels:  bluetooth-low-energy, bluetooth
Blueswift
Swift framework for easy connection with Bluetooth peripherals.
Stars: ✭ 88 (-60.36%)
Mutual labels:  bluetooth-low-energy, bluetooth
Extendable
Blocks Based Bluetooth LE Connectivity framework for iOS/watchOS/tvOS/OSX. Quickly configure centrals & peripherals, perform read/write operations, and respond characteristic updates.
Stars: ✭ 88 (-60.36%)
Mutual labels:  bluetooth-low-energy, bluetooth
Bluetonium
Bluetooth mapping in Swift
Stars: ✭ 159 (-28.38%)
Mutual labels:  bluetooth-low-energy, bluetooth
Bluetoothkit
Easily communicate between iOS/OSX devices using BLE
Stars: ✭ 2,027 (+813.06%)
Mutual labels:  bluetooth-low-energy, bluetooth

=============== python-bluezero

.. image:: https://github.com/ukBaz/python-bluezero/workflows/bluezero-tests/badge.svg :target: https://github.com/ukBaz/python-bluezero/actions?query=workflow%3Abluezero-tests :alt: Build Status

.. image:: https://img.shields.io/pypi/v/bluezero.svg :target: https://pypi.python.org/pypi/bluezero/ :alt: PyPI Version

.. image:: https://img.shields.io/pypi/l/bluezero.svg :target: https://github.com/ukBaz/python-bluezero/blob/master/LICENSE :alt: MIT License

.. image:: https://readthedocs.org/projects/bluezero/badge/ :target: https://bluezero.readthedocs.io/en/latest/ :alt: docs

A simple Python interface to BlueZ stack

Name and aim

The aim of this library is to provide an API to access to Bluez with zero boilerplate code.

Goal

To provide a simplified API to people that want to use Bluetooth functionality in their code. The library will use calls to the BlueZ D-Bus API and use 'sensible' defaults to help with that simplification. It aims to support the ability to create interesting STEM activities without needing to explain the BlueZ API or write an event loop.

In addition to the API, it will contain examples of how to connect to common Bluetooth Smart (BLE) objects around them (or at least easily accessible to them). These examples will need to be written without the need to sign (or break) non-disclosure agreements.

Status

While we want this to be easy to use it does not mean it easy to create. This library is still in the early stages so things might change and break. Apologies in advance! We will try to make it as stable as possible. However much of the functionality that is in BlueZ is still flagged as experimental. The library assumes you are using a Linux release with BlueZ 5.50. For example Raspberry Pi OS Buster

Getting Started

If you are here for the time, and especially if you are new to Bluetooth Low Energy, then a tutorial might be a good place to start. The following tutorial has been created based on the readily available hardware of a Raspberry Pi and a micro:bit. More details available at: https://ukbaz.github.io/howto/ubit_workshop.html

Examples

There are some other examples in the library if you are feeling adventurous

Adapter

adapter_example.py


This will check that it can find the Bluetooth adapter on the computer running the code. It will print to screen various information and check it is powered before scanning for nearby devices

GATT Client (Central role)

microbit_poll.py


This example uses the micro:bit API that has been written in bluezero. You will need a buzzer attached to pin 0 to get play_beep to work.

Beacon

eddystone_url_beacon.py


A Simple Eddystone URL beacon. You can be read the URL being broadcast with any Physical Web application on your Phone

Scanner

eddystone_scanner.py


This example scans for beacons using the common beacon formats of Eddystone URL, Eddystone UID, AltBeacon and iBeacon.

GATT Server (Peripheral role)

You will need to have modified the dbus configuration file to open the permissions for 'ukBaz.bluezero'. This is covered in the System Setup section of the documentation

cpu_temperature.py


This example transmits the temperature of the CPU over the single characteristic. The method get_cpu_temperature() function creates randomly generated temperature values. Values are only updated when notification are switched on.

ble_uart.py

This example simulates a basic UART connection over two lines, TXD and RXD.

It is based on a proprietary UART service specification by Nordic Semiconductors. Data sent to and from this service can be viewed using the nRF UART apps from Nordic Semiconductors for Android and iOS.

It uses the Bluezero peripheral file (level 10) so should be easier than the previous CPU Temperature example that was a level 100.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].