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.2.tar.gz (20.4 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.2-py2-none-any.whl (34.0 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: bless-0.2.2.tar.gz
  • Upload date:
  • Size: 20.4 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.2.tar.gz
Algorithm Hash digest
SHA256 6a9a886ce26559102e6563c5e16a96aa8ee96dc93f25e186a09b60f905b78aab
MD5 9e9be6b43b75911d104e9724a48b03b9
BLAKE2b-256 08509c7d332114e2aef2812141f41eba592a4dba5da0f1317edf4e2f1dda3117

See more details on using hashes here.

File details

Details for the file bless-0.2.2-py2-none-any.whl.

File metadata

  • Download URL: bless-0.2.2-py2-none-any.whl
  • Upload date:
  • Size: 34.0 kB
  • Tags: Python 2
  • 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.2-py2-none-any.whl
Algorithm Hash digest
SHA256 6eb828451058ba3916466aeaa8332275aa9a3a209259357273363cbf1e760584
MD5 5e115eacc9f8594841b3afa930c1a408
BLAKE2b-256 0a06f1a263f001923663364c5b41bc2842f3151c7f3b4f6cfd883d1f079ce446

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