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.

On Raspberry Pi (debian flavours like: dietpi; raspbian) additional APT packages are required and can be installed with:

sudo apt-get install libbluetooth-dev

If you want to rebuild uuids.json then Python3 modules requests and lxml need to be installed.

python3 -m pip install requests lxml

Then rebuild uuid.json thus:

cd src/bluepy3
make uuid.json

Installation

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

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

If this fails you should install from source.

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

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/bluepy
http://ianharvey.github.io/bluepy-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.10.tar.gz (67.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bluepy3-0.0.10-py3-none-any.whl (59.6 kB view details)

Uploaded Python 3

File details

Details for the file bluepy3-0.0.10.tar.gz.

File metadata

  • Download URL: bluepy3-0.0.10.tar.gz
  • Upload date:
  • Size: 67.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for bluepy3-0.0.10.tar.gz
Algorithm Hash digest
SHA256 43480af1de16b5a693b2ae541564f3fe61d9b0699f1aeb27421e24319bd6be65
MD5 2a0bbed1ce17ed3d8153c62a6dc04180
BLAKE2b-256 fddd19e3da34fb2451cd7b0589227e538a4fb8671aca03aabd38c2af726a0edc

See more details on using hashes here.

File details

Details for the file bluepy3-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: bluepy3-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 59.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for bluepy3-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 584f8c020fc94d7d746ba86c0e60fa8156c4fcb4f1fd44717cdc1314a2bca901
MD5 44148dcc612ec263a2897ef964c9e87c
BLAKE2b-256 8ab537592d4ae5c5bb7d09ae9f7f73618fda11c16a567be52ced6e3128f95477

See more details on using hashes here.

Supported by

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