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.3.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.3-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pythonBLEperipheral-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b7a0038052d2db6498f96bc8b67399500c56fbd31f0bebe67a76cbcc62078fe2
MD5 de0e42b24528de1e45c67de6382839da
BLAKE2b-256 d139672fa20aa1803930b8485fbb0335b522317f2f9d0f649d089390a5e415ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pythonBLEperipheral-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bde8b9d2c3921e8a1fc6f6600b8eb7d7fac938d7d87a9c3c1d34752acb2440be
MD5 5876ac3b3868f75d989d025b7befb3ab
BLAKE2b-256 22558c927e08d9d274513de6971a80070aaf998513590f3b97823e540854f9a4

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