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.4.tar.gz (6.9 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.4-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pythonBLEperipheral-0.0.4.tar.gz
  • Upload date:
  • Size: 6.9 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.4.tar.gz
Algorithm Hash digest
SHA256 bcfbd6ca920af880b471e237799a382f946e3d455c2992f6ff3b82842d7b4507
MD5 d1f6b1b4c9ac72eae7ca2f75462eaf81
BLAKE2b-256 26dfb72505210ce8fd5f9d8b735d0018db0983f489a1e6d957859146aa95fbfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pythonBLEperipheral-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7e93c86673d3139d66d0040c48f2c6f445a60b3bd996d46e14328a741b80f7cf
MD5 f87480d47922c6e1986877073a26a9f9
BLAKE2b-256 10de37cc053417a15c09a45a2e3e1e126df1c9cc3e0813470127c9bb069c8d6c

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