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.12.tar.gz (28.3 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.12-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

bleak_py-0.1.12-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

bleak_py-0.1.12-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

bleak_py-0.1.12-cp313-cp313-win_amd64.whl (739.8 kB view details)

Uploaded CPython 3.13Windows x86-64

bleak_py-0.1.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

bleak_py-0.1.12-cp313-cp313-macosx_11_0_arm64.whl (938.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

bleak_py-0.1.12-cp313-cp313-macosx_10_12_x86_64.whl (982.9 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

bleak_py-0.1.12-cp312-cp312-win_amd64.whl (740.3 kB view details)

Uploaded CPython 3.12Windows x86-64

bleak_py-0.1.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

bleak_py-0.1.12-cp312-cp312-macosx_11_0_arm64.whl (940.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

bleak_py-0.1.12-cp312-cp312-macosx_10_12_x86_64.whl (983.4 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

bleak_py-0.1.12-cp311-cp311-win_amd64.whl (736.3 kB view details)

Uploaded CPython 3.11Windows x86-64

bleak_py-0.1.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

bleak_py-0.1.12-cp311-cp311-macosx_11_0_arm64.whl (945.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

bleak_py-0.1.12-cp311-cp311-macosx_10_12_x86_64.whl (989.5 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

bleak_py-0.1.12-cp310-cp310-win_amd64.whl (735.4 kB view details)

Uploaded CPython 3.10Windows x86-64

bleak_py-0.1.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

bleak_py-0.1.12-cp39-cp39-win_amd64.whl (736.4 kB view details)

Uploaded CPython 3.9Windows x86-64

bleak_py-0.1.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for bleak_py-0.1.12.tar.gz
Algorithm Hash digest
SHA256 f28fa479d2bbdf56324f9116731f3d40edfa89ec69401f47dc246b5cbf00816d
MD5 fab5e16107cfdaa2072cf20dc8415c63
BLAKE2b-256 d0c1063c3e764dca82500109c54626c3d36ed50ace8721a1c2a2b48264643105

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3f101b82cb124ac682b20cecb879e45f6faa1792ebd5abc2870e840a49c69115
MD5 f0ac1a6430b7ada058af1353c0ab2684
BLAKE2b-256 f3455beb108e7e666760006565ce68213c767547f1c18eaafd851a139876a2e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7df5d1ff39b2bf59a70f3e7ed5b664f9dde1d6d852e7f5a6d3aea858c53c5875
MD5 8484cdbcd6009097eec717ebefee6443
BLAKE2b-256 d1b6bdae014da06adaed422c395a7b52599496bd64e4abecc5e699e6169f9d64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5205f60ab38e26db7af146bc3bbbfb0e472f7432d870ed22fc68b4a16bf18946
MD5 15b2ec0569296ec76f882a1bfeeb7f81
BLAKE2b-256 f6a5876ed99bb9205483a129b085651891d3f8509063a4c710c12cf00f6a262d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 287312f70f8e1ee41bee3edab755eb60e7f02bfda023937b37e87f14bb5b7f14
MD5 b2cb521138005936ee89289c62c8bfc3
BLAKE2b-256 beead0b647f6fb0f2e6119d4e36179eb478aa3e39729787cf4ed659c436f0f73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4fe4df3816e6962be3fd82fec8f1a7fa593da658707281bea243520c6c0dc570
MD5 9e87b184c4f4e68f38b3c1d35fc2072a
BLAKE2b-256 6644b5cdf27f4b244108d3a02fbd8e0bc92a8f464e2e2c3edf49f4a662ff88b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5659e4477960bbbd8d11f1204094082c01fcdad0fabef711304b9fd037b6f7a
MD5 1f42075828ae116bfb9d49853a8e2d13
BLAKE2b-256 19840a1c814043238711a50efcf5cf6f03bd4a79a593abf1f45a9681f4d0bed3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ea185147d7d4c7bd396bdaa3e328d825279c7029f5f5428bab4425a37b269752
MD5 7815a45c7018a288727e91e64b7b798e
BLAKE2b-256 c416d63847f4cdee0304e7f64eae1adb3e8c63b354119592ca3114159f35cff3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 11c590d4607525043b117c22a87e4b3dca92e252a82300de1bebe9f001db753c
MD5 7fa3bbab09183b61b1464d4e3d74948e
BLAKE2b-256 605e9a61aaa0563ae2906028adbf4c42d4d075a86d3f374081a16e5ff081845b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 972f23befa4f8957c4fe16a53856b69011f03a688085a4d875ea606673c067af
MD5 04bd345219802f38142fad3e9c01f1dc
BLAKE2b-256 e3a1d1cf46b170c016af4ac410f45d7608d56d37269d32e6eb04da1ddfb7b2c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6984d68c5e5cd06860fb1a0bbe034b8f61d7a91422329a8734fc641ad274cffc
MD5 11b61f534a46bf320371f4e35a3c2842
BLAKE2b-256 4234254a14956984e22465d8eab67a432dca32d44a9a87757e5c27f88767f888

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2e4802e338e58917e532300393a5a92afd0cb99caf21de75a6508e95695ca66c
MD5 df04e80c7071d935b53367f3615c01fe
BLAKE2b-256 5c29f600c7187a17e78e07e5a2e903c0326dba268169d38fcd5057929e3e7432

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e6b3c1f838d6623f0611e43248c29e56db111fcee67a05dc66ffb4666970cb39
MD5 34dfdda5a8be2829f9611679a3d84643
BLAKE2b-256 5feb2abb9119dbadf2aeda1e0f1a6b320e92df33e5a717b86f72a5c7393471d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 12086ab87bb4b893d1284a6eb9635661000277183ad6c8aa8e34476712024ca4
MD5 d0e283715382a0ca9fc568da473aa768
BLAKE2b-256 044e988c75f98eb64700887dacbd61e9ec253a00c77d9192cf7679058ae26611

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 809857c3dab315b062c8b734f7aab0291b2a914dd9fd9429357b73cbf611c0ec
MD5 03d2c52f75c1e67c6c7705b17789cdc9
BLAKE2b-256 01fb2b11ab150b8ace1994c1b44bb25625d0cc794a285ae170c2b6027a1c03f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b8a07ab966bc2853503ffdb2bb379c43998034ff585a8c2ab71a6298709c1c7f
MD5 b84373ab45b55bf7194a68c3da4f9112
BLAKE2b-256 362e417223351aacd328812483dbec46af78a95f83087b847aabd4dfd1e96d72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 44c95028168a5261bae8383cd7a69805810fc1ac8dfc3addabf7ae9026ceb888
MD5 85cb58874c5b3ef6559028a8735dcca3
BLAKE2b-256 5bcefcee946b8db79d6736ff3258cbc674edcf88339fe512b61156c5ac73ca22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e6892df4723326277fc4f9b6ada9178effeef85f61d390ee9c3375987a4f11fa
MD5 28833dfd67a64668061950a08e3aaa8d
BLAKE2b-256 cf0b755f0c4c52cb9b4c02efd5d4e162b61580c9b9c8c92e9570e2382ce9d1d4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bleak_py-0.1.12-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 551cfa5119222d6ca1686b2a32f6dba6c72ce4c4fb4b82fee3fcac2149da2d01
MD5 647817fceee6095ac6050e9892507f3d
BLAKE2b-256 c9d89217562ad56ab1e438b31ab588fb18974876e9e48c5a395d8cdfba8052fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dca35d9912f0bd837cc54fc0dc1f7075852b7018fb9b245f47df4f227f089706
MD5 f4b023f62b89fafd30a23437aa338a1b
BLAKE2b-256 3e4c3f7a21102fe0f80c1f0e640eea5390d49b54b5b93796bda8378ea9ab444f

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