Skip to main content

A cross-platform BLE library based on btleplug.

Project description

Overview

This project is built on top of the btleplug library for Bluetooth Low Energy functionality.

Dependencies

This project depends on btleplug for Bluetooth Low Energy operations.

Please check the btleplug issues page for potential solutions and known problems if you encounter any issues during usage.

Contributing

Please note that the author does not accept feature requests or new functionality additions to this project.

The only updates that will be considered are those related to underlying API changes and maintenance.

Example

import asyncio
from bleak_py import discover, find_device_by_name, BLEDevice

async def _discover():
    async for dev in await discover():
        print(dev.address())

async def main():
    device: BLEDevice = await find_device_by_name("M1(BLE)", timeout = 10)
    device.on_disconnected(lambda x: print(f"device: {x} disconnected"))
    print(device.address())
    await device.connect()
    await device.start_notify("00002bb0-0000-1000-8000-00805f9b34fb", lambda uuid, data: print(f"{uuid} received: {data}"))
    val = await device.read_gatt_char("00002a00-0000-1000-8000-00805f9b34fb")
    print(val)
    await device.write_gatt_char("00002bb0-0000-1000-8000-00805f9b34fb", [1, 2, 3, 4])
    await device.disconnect()


if __name__ == "__main__":
    asyncio.run(_discover())
    asyncio.run(main())

build

  • use uv
cd bleak-py && uv build
  • use maturin
cd bleak-py && maturin build

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

bleak_py-0.1.20.tar.gz (17.8 kB view details)

Uploaded Source

Built Distributions

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

bleak_py-0.1.20-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

bleak_py-0.1.20-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

bleak_py-0.1.20-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

bleak_py-0.1.20-cp313-cp313-win_amd64.whl (798.7 kB view details)

Uploaded CPython 3.13Windows x86-64

bleak_py-0.1.20-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

bleak_py-0.1.20-cp313-cp313-macosx_11_0_arm64.whl (993.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

bleak_py-0.1.20-cp313-cp313-macosx_10_12_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

bleak_py-0.1.20-cp312-cp312-win_amd64.whl (799.2 kB view details)

Uploaded CPython 3.12Windows x86-64

bleak_py-0.1.20-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

bleak_py-0.1.20-cp312-cp312-macosx_11_0_arm64.whl (993.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

bleak_py-0.1.20-cp312-cp312-macosx_10_12_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

bleak_py-0.1.20-cp311-cp311-win_amd64.whl (795.3 kB view details)

Uploaded CPython 3.11Windows x86-64

bleak_py-0.1.20-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

bleak_py-0.1.20-cp311-cp311-macosx_11_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

bleak_py-0.1.20-cp311-cp311-macosx_10_12_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

bleak_py-0.1.20-cp310-cp310-win_amd64.whl (795.2 kB view details)

Uploaded CPython 3.10Windows x86-64

bleak_py-0.1.20-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

bleak_py-0.1.20-cp39-cp39-win_amd64.whl (795.9 kB view details)

Uploaded CPython 3.9Windows x86-64

bleak_py-0.1.20-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

Details for the file bleak_py-0.1.20.tar.gz.

File metadata

  • Download URL: bleak_py-0.1.20.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.3

File hashes

Hashes for bleak_py-0.1.20.tar.gz
Algorithm Hash digest
SHA256 81ffa7a3c3fd3454d016366a22e0bdefb68fe597397ea966ccd5a0dd5755e131
MD5 fd60f142ac9e8128ff05d765c371a496
BLAKE2b-256 1eb087ae919a4f21aa36d682fce4ef2f95b3812212c5316fc86acf810e7e1f5e

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1bee8ee791f5b908d64e99f9ae09f478afe2501204463d597e1f0810a98f25de
MD5 c4e98c2cf9817f4c2d6e82c61a7042f8
BLAKE2b-256 479e771ce70ff041b40b2a57d595f7c07c5cfd5a8803830fe5ea98b017c7a407

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b986b7e4c80b735d95be2a58ae230135093c9942398f0573ac6b55d9aa5da9b0
MD5 9e966455c055ad57bf02c81edc813a38
BLAKE2b-256 37386d40888605780601b3d0391ca89efb5bb9a0372434784894e8dd942c82db

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 86f426074c26e7d3092a5f7b7056c59b9fcf86c25f4cd224e6c698e1f94f9471
MD5 130d9fc7e4f460890ccb559723311451
BLAKE2b-256 853f40fdfdc4c4159a1092224d0f7c6362ec46b18a03fa782458bc25ef8dc68b

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5ba4c3ffe47289a327196a7eab0a8b9ca94639969f7935bfcbf0c001f6d25a06
MD5 6dcdc5539ca86ef36908b4915d208f96
BLAKE2b-256 ca7999b38ec8fcc04f1c77c63d8647dfdc54e5bf540062db9e7b72f00555c72d

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c03417dcea07acf2d1b36f88fdb17b42df542d2ee8ae1b5d786d3cf6a9da0272
MD5 8b64ffe1e2c1e40d3c868100d1fd63e8
BLAKE2b-256 e6474a4a055be7a4bd4472e44e09e10ce7a549df0497e57be6f88fc2ce4589a1

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e80d7b2bbe4a2fb836c09c076bef45ba86985bf63e257d6baf932bc48af37e51
MD5 a3fd7fc187bff096b77182a741109b8b
BLAKE2b-256 c8f1c48eb71a5d9647cb5d7b3b2192327e6b5356efa70f134599aaf59454e5d9

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9f1dd3759534e5dd4a0ea42ee5e2949684561ba4bcba70e098ff23e1ee574574
MD5 d5549d359b48aad42928683b5622861e
BLAKE2b-256 8636b8b65899feb0415955364dfc2a841be23d8aabbc3c0b40b9ef3eace44e69

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 815e3ba86f8915c0d77b985f0509f1f6863d9d55197de4222272afd13f7dd112
MD5 7d067e08b7f01cb7f7390f29a7476968
BLAKE2b-256 5036451bb3befc264bde78a1e497cf08ad4685923a9f8617988319998c1ff25f

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3e47b7141ed39934de89b9ad43f3f6977eeaa53a4e3b6d3c44b531a39a63ed0b
MD5 859604664bb97bc2a2536281e0362f9e
BLAKE2b-256 0e60254fcfe21367e4dd96f4f982ddcaf4300ba2d5891d8dca5e61eaba6efa08

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32c9cd6b75ee47fdedc7049855eb9e1a56cd01fd8fc1830744d8e654ccc70208
MD5 f4a34255fc9bc40e072c78a18ceb2718
BLAKE2b-256 97f47c8e95e548bf0d38cdd7d8e137de28776f7d45a69e5f13a134072e9f001c

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5aec57e7e9fe19b38e3b70287c343a64176edce50176a43f95337c1404589620
MD5 e64424ab60e7dcd04254a7b7a1eb847e
BLAKE2b-256 dae6a0a2e82bb96f32fc577826854459cce6e4c1f61482634ff1562a20fc7f78

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b7ee23a03b7e9b1bc9c7c4a3a4570382eef8ce1f4f5ac5bbc4e1c12b04362cfb
MD5 2942df518b0ace4da5003a10851c6e3b
BLAKE2b-256 b6f2aa274c1f1a3f03737073b2bbd1badeedff4239c5dac835d25bdb4ac7cabf

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 780ff593af971be15e5ad8654d605b6cfdd626e8c8e74cfc388aebcd41183b78
MD5 6f397ee3da7a5f3a0030d064ba0bde98
BLAKE2b-256 d0b8e960401882b28e9d0bff12ad730127edb7dd07c727b8e27262299ce50178

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc25df9fd7b61c288089a942448ea967478b8e50dc9e2dd1053066878816955f
MD5 9d37ba7c13cf5c3219b41c19e9349fa1
BLAKE2b-256 0f7c8ff8a4e99e0f39d842c3b4c1ffc59fbab6c4a0e73fd608f9db3d4f727697

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7ddc1637656c4d8f98126f814b7d750eb4b4bae77069fd6c147dbbdcb8d5d2fe
MD5 c41048db47de2b6074a5146833da7925
BLAKE2b-256 f6a27cb0ca02e766d0be6202a0eeb65ca181a4da529027010dfa7ea12d36af4c

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 632aa842df918af91ce0cdc6ef6eb974bbc09725e741b14a360f41ab9a9f9d47
MD5 ad376bc3681dbc0f816c4d841d1dbb62
BLAKE2b-256 6af73e4e5a78a2f9c5a3da970fb9ae360a4b426117e5d22829df9d2e3620711e

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 28ba6cf5758122ec6b2a45d7070441dd993f0a6480b22935aeeee372c0500dc8
MD5 dc5745cbba11812451b5c7c12fd51072
BLAKE2b-256 ed6b43986b5aaf2dd3034bafecabe3391f21eb1f258d6bd64f4269211d1b8c5d

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: bleak_py-0.1.20-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 795.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.3

File hashes

Hashes for bleak_py-0.1.20-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 27a0c4d7188bbef8690966056bf968c8f528fc8b64af6b1b2be319c783f4370f
MD5 aa2c7f89fa86d3b58bbf8a37799f40cf
BLAKE2b-256 d39372eb57fdb9857fa1428543f3c577e0d2d2a9a13df10cda627b24c58e2d71

See more details on using hashes here.

File details

Details for the file bleak_py-0.1.20-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for bleak_py-0.1.20-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 106332841be1aba02262b747a1b2cd133c42c94e117859e74333eea793dc1826
MD5 c46e58b1ea088eaa552d7b37ac45ba98
BLAKE2b-256 088ac148a3aa1af6f95edfac2aa766f408627952ad9ef2c40752534f99dfa44c

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