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.2.1.tar.gz (22.6 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.2.1-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bless-0.2.1.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for bless-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a8c61a4f93da10cbfeaa9441b489ab2969a4991fccfbeadf339442841b4fb6c0
MD5 3e9a65f231c4e38cf460b6b2b90336dd
BLAKE2b-256 d455bc9a72611ae6cadfa1d03b5c41425a7a8871e6b73797a3ee9ea08e0cc34a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bless-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 34.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

File hashes

Hashes for bless-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 708eab534de23e6e6a1512bbeb3d4a1d254ae2edd3240ed5813d52e9d8c38142
MD5 df42a61ea1c0499f23fa015ec3eabb36
BLAKE2b-256 ddbf77a45ba25ecc7b751e70f0659482cac671ffc1705af241a2209aebabc9f4

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