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 find_device_by_name, BLEDevice


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 data: print(f"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(main())

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.6.tar.gz (27.7 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.6-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.6-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.6-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.6-cp313-cp313-win_amd64.whl (713.5 kB view details)

Uploaded CPython 3.13Windows x86-64

bleak_py-0.1.6-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.6-cp313-cp313-macosx_11_0_arm64.whl (926.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

bleak_py-0.1.6-cp313-cp313-macosx_10_12_x86_64.whl (968.5 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

bleak_py-0.1.6-cp312-cp312-win_amd64.whl (714.1 kB view details)

Uploaded CPython 3.12Windows x86-64

bleak_py-0.1.6-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.6-cp312-cp312-macosx_11_0_arm64.whl (927.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

bleak_py-0.1.6-cp312-cp312-macosx_10_12_x86_64.whl (969.3 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

bleak_py-0.1.6-cp311-cp311-win_amd64.whl (712.8 kB view details)

Uploaded CPython 3.11Windows x86-64

bleak_py-0.1.6-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.6-cp311-cp311-macosx_11_0_arm64.whl (932.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

bleak_py-0.1.6-cp311-cp311-macosx_10_12_x86_64.whl (970.9 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

bleak_py-0.1.6-cp310-cp310-win_amd64.whl (711.8 kB view details)

Uploaded CPython 3.10Windows x86-64

bleak_py-0.1.6-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.6-cp39-cp39-win_amd64.whl (712.8 kB view details)

Uploaded CPython 3.9Windows x86-64

bleak_py-0.1.6-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.6.tar.gz.

File metadata

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

File hashes

Hashes for bleak_py-0.1.6.tar.gz
Algorithm Hash digest
SHA256 52065c5c6575563272e88c21cd3ce79d9e9f8cbf3f8ec21d93713aafc8e427bb
MD5 c39bf5b0c028bdcddc6b350a459d6201
BLAKE2b-256 c0a449d72e96ffd95eca7fd7b42eb444327c392a63b850efdc9b6221b7d63e89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ed0684d757338b2da69590365edbcd3d15884a455fe2a0c96ac4e7505ffd13b7
MD5 e262efb0f65d3002560d45c38d1c3a17
BLAKE2b-256 c629ffac3023f9b7d3841afea9fbee4384bc0533a91622f8d276e998334444a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7ac99fce29c92fde118b9d0b35943a7661fcc68ffa42d915a448bce3d5b8690c
MD5 b83fe456d6fa55b7de086632556b7c5d
BLAKE2b-256 992b097ad919eba6039673dfaabcace588b2b8ebeec06de4cad0230e4c985c77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2478e8d9bc2147d92b51bf56c354b5e277b3313c7a548d8462d68c90c3578a09
MD5 0263863194db2dab13a37c3065d0fb66
BLAKE2b-256 060472cf1e01dacbc5402bd6e83dc455c1409349ddf76fe7dc43a5b3758f3299

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2f08240b232ba65b19f57a4ea3af28dcb3e7f4168f3168f1726dbb243cf351c7
MD5 aab0cec5c9f609bb8ee015b3de3bae0e
BLAKE2b-256 3952095b6dc965527f73e1c2f7c29cb2771ffc5b9cdd467d068b3662bc614a7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3c496e82be1f11132d472cd641d66da6ecb6ed033211fc2cbe5074b688bcef89
MD5 363da1c13c3a8d015c3e6b55af4addcd
BLAKE2b-256 24834f1b4d3776def1ba6f18a055ed2b6ccb0531d2a304bf17b3df72b236db80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 067de72e994b2a07170e8794338dfe374ecc287f3ca772d8b9b01cb3ffda13c2
MD5 3fed3e70c9f7c8f702ff5546a50b293c
BLAKE2b-256 0c15d9724431e6900edc55ac7c30c9237b8a4ea28c73b023a77dded5d6a31df3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8e0e997c65e3a3a0d60498e330b01335ab16076d094eb270d6ba9e51a2d13b80
MD5 a50a8536003e18597071143c978bf1d8
BLAKE2b-256 fb11996f9f2c1cf4199e93fad243d67b80d0a3852b5aec1f723bf8df7467086f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c7d12537964f6b3e7f946146ca83e45e94efebcac11508e1f10c81cebbe85f8f
MD5 c4a2f9f9e77ef105c32ad2f18e1a0729
BLAKE2b-256 79d09d6f6e158e798b15f219f637fd2a46b91664a81b6062ce2da3d32995a58a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 92aa872d696fe56c613180713452a32729dbabd093822502306aea59b24ee190
MD5 a78b598888409e4245f1df16fe9b14e8
BLAKE2b-256 32f8f4ed816fb1bbd61799ebc4c1163f31d1cd0d86c966ce78907c8d57cffd1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6b21434640e11c4208c8d4fb57944dd6baeeeaa520bc77dd36ab272d084326c
MD5 7bebcf0df8d1f0e329c43d5bc3d84c09
BLAKE2b-256 12019359637160e55c48bbec93fd94dc90148e3ef09e8526212ffc56543c5e68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 edaf68adf9784f63fcfa68ac2a253a1c637e2e0e597b06ae6b37ba2d86abf56e
MD5 19526370bdc21111a56e9c11cd5533f8
BLAKE2b-256 f93aea1f9111abee02a35a21c3250601b2d38aeb3b438474020e5a762bc5b6ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2405a8b606e57df0843553ede664a9e8fded23eae41140ea999d531418089c56
MD5 c0bd484fbcc12a7954bcdcd7d693b420
BLAKE2b-256 d5bbdf760e2621e50b5c058f7f016eec517a3cd532291ed692f7d6f04a18e612

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a82f5d57dc8ff730eae68b85d2168ca29174becdf9887b5c77e5052b33d5d4fa
MD5 9e78c2d68236d82b7f6b90c1cc2b573c
BLAKE2b-256 4a8282363ce6dc9ed3622e5e4829bca8ea8049fe4f4dccf92ba15a21b43dc502

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08a2f906ca3992dd4743769705d4ce7124eaa032774b1e026b2cb68d5d378e77
MD5 3068923c2eab1742a87c769c5529b19c
BLAKE2b-256 ad97c77d3afc0166f9c4c1599c29221bae0329a9aa272ba427657e574eb7a9a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 355e5b14184bd0de52d5995b57f76e8730b42e0963a55d171b2c17d12109c3ab
MD5 389f63da9786b427fa8dcdd27e4d07a0
BLAKE2b-256 2d3dce985e2bc94ce302ab5932a01cc81c3bd2b46d0c0c882e587638495f4d1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5e6b4cdfe5df2ae371e489362cded7aa941ce4d18f2f03a622563e6cb95019dd
MD5 77fbc2d3e09b3268dae2d64b4d98501a
BLAKE2b-256 e7b3d9eb0b392290fdfbbba0155942cb3e575bcf92ca0a899da810250bb91a42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7bc184d05cfa8ec5e924c69978576ab41ccd67d94ea9de1504de909e7391f595
MD5 ff680dbf016c1a724adb5de7b177eb91
BLAKE2b-256 537c4125b6061d1e2e52d96b450b58c5d0bb01de6fa88c83f820eb87a91a2bb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bleak_py-0.1.6-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 712.8 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.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a50cde6f295cdabc79dd6d262e33ea8fac9637e758dfd6bf72c7f0a9481465e2
MD5 5dd765411b518a3317f6023cebbfb28e
BLAKE2b-256 bfb0c5f9fb509697fab6701a75353baed344706a98d5446d97d458de6e9d2ce3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2db0b87e48345e879b02157935f69c1c22d088cb36812238eb5d6efc2eb97d5b
MD5 8ed1baf79a4d0bab288fd9fedcb3d0a6
BLAKE2b-256 03969853e9e2fde1174c3128744979d555dc66cd6654a090add3c48f4cdaf4f9

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