Skip to main content

Library supporting BLE peripheral applications

Project description

python-ble-peripheral

Description

This project delivers a library of Python based modules with which to build Bluetooth Low Energy (BLE) peripheral role applications. It is based on the prior work of Douglas Otwell, with small additions to satisfy personal requirements.

Prerequisites

  • Python 3
  • bluez (>= 5.50)
  • pip3

Installation

To install directly from the PyPI repository, run:

    python3 -m pip install pythonBLEperipheral 

If installing from the source code directory, run:

    python3 -m pip install .

When run as an ordinary user, these commands install into the user's individual home directory system (under .local/lib/python3.x/site-packages/ for Linux systems). If a global installation is desired (available to all users), run the installation command as root.

Some Debian based Linux systems (including Raspberry Pi) may complain when installing with pip (preferrring official Debian packages). There have not yet been problems reported when using instead (with or without sudo):

    python3 -m pip install --break-system-packages pythonBLEperipheral

In this case a system wide installation places the module into /usr/local/lib/python3.x/dist-packages/

Usage

As the cputemp example shows

    from pythonBLEperipheral.advertisement import Advertisement
    from pythonBLEperipheral.service import Application, Service, Characteristic, Descriptor

Support

Contributing

Please suggest any additions to this project by creating a new Issues topic.

Authors

Thanks to Douglas Otwell for the overwhelming bulk of the code on which this project is based.

License

MIT (http://opensource.org/licenses/MIT)

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

pythonBLEperipheral-0.0.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

pythonBLEperipheral-0.0.2-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file pythonBLEperipheral-0.0.2.tar.gz.

File metadata

  • Download URL: pythonBLEperipheral-0.0.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pythonBLEperipheral-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2840e9ce857bfec08832686c452ad6a86e2be3580aa319993728e8de7ab29d9f
MD5 a315f2c6c76cd6e01db486d17bb9a036
BLAKE2b-256 29d8c37edfe527371a9deca4292fdf1c40876959deffca870dba7422a3943e59

See more details on using hashes here.

File details

Details for the file pythonBLEperipheral-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pythonBLEperipheral-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2cfdc89ef937c46908a23a6c1ffa08c3569a24a328caae3dd29f5c18f94c6bed
MD5 0356add98b5788e055a6da3469f9e859
BLAKE2b-256 038bd1ecc4f2f24fe358c9b0190ff8547ddb54a5b42bdce5a2dc2a10dc32cfb8

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