Skip to main content

A Python3 interface to Bluetooth LE on Linux.

Project description

bluepy3

PyPI version Supported Python versions PyPI downloads Code style: Black

This is a Python3 library to allow communication with Bluetooth Low Energy devices on Linux.

Requirements

The code needs an executable bluepy3-helper to be compiled from C source. This is done automatically if you use the recommended pip installation method (see below). Otherwise, you can rebuild it using the Makefile in the bluepy3 directory.

Installation

To install the current released version, on most Debian-based systems:

sudo apt-get install python3-pip libglib2.0-dev
sudo pip3 install bluepy3

On Fedora do:

sudo dnf install python3-pip glib2-devel

If this fails you should install from source.

sudo apt-get install git build-essential libglib2.0-dev
git clone https://github.com/Mausy5043/bluepy3.git
cd bluepy3
..

It is recommended having command-line tools from BlueZ available for debugging. There are instructions for building BlueZ on the Raspberry Pi at http://www.elinux.org/RPi_Bluetooth_LE.

Documentation

Documentation can be built from the sources in the docs/ directory using Sphinx.

License

See LICENSE

Acknowledgements

This work builds on previous work by Ian Harvey and uses code by the BleuZ project (not a https site) and the more up-to-date BleuZ on GitHub

Original source code and documentation can be found at:
https://github.com/IanHarvey/bluepy3
http://ianharvey.github.io/bluepy3-doc/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bluepy3-0.0.6.tar.gz (404.0 kB view hashes)

Uploaded Source

Built Distribution

bluepy3-0.0.6-py3-none-any.whl (237.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page