Skip to main content

A Bluetooth Low Energy Server supplement to Bleak

Project description

Bless

Build, Lint, and Test PyPI version PyPI - Downloads Black

Bless is an acronym for Bluetooth Low Energy (BLE) Server Supplement.

Bless provides an OS-independent python package for creating a BLE Generic Attribute Profile (GATT) server to broadcast user-defined services and characteristics. This is particularly useful when prototyping and testing servers on different devices with the goal of ensuring that expected behavior matches across all systems.

Bless's code roughly follows a similar style to Bleak in order to ease development of client and server programs.

Installation

pip install bless

Features

Bless enables reading, writing, and notifying of BLE characteristic values. Developers can provide callback functions to manipulate data that is sent out for reading or delivered for writing prior to processing the underlying commands.

Examples

See example code for setting up a BLE server where read and write characteristic can be be probed by BLE clients (central devices)

Basic Server Example

GATT Tree Server Example

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

bless-0.3.0.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

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

bless-0.3.0-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

Details for the file bless-0.3.0.tar.gz.

File metadata

  • Download URL: bless-0.3.0.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for bless-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5a62105dfe204be44ab36d20fb9071a994167d5ddd9fee722fb2b5612d7a9ea2
MD5 c72cf247b725ce06a4d4c54bd3511d1f
BLAKE2b-256 f0589e070e52b96bd342ccc709489280d8d12a69d55a2cb12082365676fad05f

See more details on using hashes here.

File details

Details for the file bless-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: bless-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 46.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for bless-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29c5a87a100a43f1dddab29e46a5adfdc871d42f4d421f13ae5c7a0ec23e7a6b
MD5 9e149d57fb3017de18a4c7ad9ea3d221
BLAKE2b-256 5c9f2536a28f9cd8c7c98424d16c0e352ec43045e89f61ce5c31b344df3b3ae9

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