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.5.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.5-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.5-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.5-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.5-cp313-cp313-win_amd64.whl (714.2 kB view details)

Uploaded CPython 3.13Windows x86-64

bleak_py-0.1.5-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.5-cp313-cp313-macosx_11_0_arm64.whl (926.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

bleak_py-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl (970.0 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

bleak_py-0.1.5-cp312-cp312-win_amd64.whl (714.6 kB view details)

Uploaded CPython 3.12Windows x86-64

bleak_py-0.1.5-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.5-cp312-cp312-macosx_11_0_arm64.whl (926.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

bleak_py-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl (971.1 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

bleak_py-0.1.5-cp311-cp311-win_amd64.whl (711.1 kB view details)

Uploaded CPython 3.11Windows x86-64

bleak_py-0.1.5-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.5-cp311-cp311-macosx_11_0_arm64.whl (932.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

bleak_py-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl (969.7 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

bleak_py-0.1.5-cp310-cp310-win_amd64.whl (712.5 kB view details)

Uploaded CPython 3.10Windows x86-64

bleak_py-0.1.5-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.5-cp39-cp39-win_amd64.whl (713.4 kB view details)

Uploaded CPython 3.9Windows x86-64

bleak_py-0.1.5-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.5.tar.gz.

File metadata

  • Download URL: bleak_py-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 5266a6167b3f1bafda95360b511db2fddecfffd7c281324ecdfbad6a0a47811e
MD5 103df2df8d8569db27e4dbe9953a5716
BLAKE2b-256 fcd00e72b3df57098d7f9630e290022ea18c6a4d61e64f9e2cc3b631105b1908

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a40a1043ad8ee22c579c8ede043a960e1cd94530258ed16d7d90ac7b35a827fc
MD5 61dcac3ce9aff2874dacb276c414239d
BLAKE2b-256 17635143245c0a7326029a4047c85a60ccffe379efda65791963ee7465198262

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 113d1f1ec939c9cba21f84afa6f913042e8752af9537eb449d844e4f83a3957f
MD5 0da64b1a5e1835198f6468ab3162c0da
BLAKE2b-256 63caa487169e81c48cacced1bd1228ec8d9301c7d48745aa0b9118ab83dca04e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cc0e22062e91b3d73c982828a4d3c92a977223576d5f7305064b923339e36447
MD5 4d84431dcbbde1eae828f113c1430038
BLAKE2b-256 28c48f9b41f3df6b3b7a9f46eceb9a2f41f564bf2f36bd973adbfbc3943e0132

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d951766bf05cb5c169a75ae8234653c10e43507e8cc77c3499a1a42837a60d85
MD5 1e95945064c7bbcbca1e1b236cd6db54
BLAKE2b-256 039372413633eba91b6f9b88231b71e713eea9f35d1b20c2aaacde763142d5b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c46410eedf8922281a12b7749eeea168962123b779f9c45ccb7720a7a676a866
MD5 7bca7b3b3773986285cb06266d3b63f8
BLAKE2b-256 4c8f5d4b0af5fc3de8545ef895eb02f3cec406f28cd17aa61abbba365306fd5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a283456590ca009f286740d4b862fc377cb3d74e87bff705ecf2f4c885de914f
MD5 ad3cbac0fe966f1e00ac43dc3aa33f2e
BLAKE2b-256 76c1de607e2e65db39f539b3e9853267799fea4e6945cdb396fb707c65626806

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c13fd6456c083b6d62315b34e6546d14dd11e5855a0b054b69ad8de66f5e28a0
MD5 c5965a17e3cadb858388d07a7cf262f3
BLAKE2b-256 b252b474d40fd86a3f524145140ce23f5f8220f962474e3eb44bb517eb351e65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2b4ee3adbc4c77a16b8d3762cb2c62f4a6cddd4364d7d3803020eb4964f44753
MD5 f6bb0064cd37e60868054fd70cc0c897
BLAKE2b-256 d5ba23ca22e2856d91d41807d2e3fefb8370bdd6404c4ff35a93c2c539f8aebe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2816f8278dc2622e8ad8560062c7bf86be584e765ace4ef9084c1c01706ae17
MD5 d35a901cf325affbc2c98dff9d726c37
BLAKE2b-256 32cd6ac56ceebe9924871257397a36fce5b139ffc7128cace2ef0bac99fbf3af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14b8dd62027d12ca0622806c012cd1dc27e31b7f0bfa78d90041e4d01b004d3e
MD5 dc82aad36d37308fd2105a1fa221abe6
BLAKE2b-256 6ca510785944443aaa607ae18b4603220135d55051d4b5f67464e2e2476805b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b58a0a83947f7e5b0a52fe47f4ff2ce89e11c62a4f0a81b933ef8fbc0d17a04c
MD5 b795ff90bd029e767cad16a44290607c
BLAKE2b-256 ef853e24c6446ec2951c8bc6817cf1a30888a396a48fd3939e78ebfe89cf63ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bd2440be5e24d48d60e108da3ccc1a97d9c2bb491a3eae1c3b58a1a36526a511
MD5 145373c385b288c4a97f8d7a4d010c1e
BLAKE2b-256 e915175ba4e7835e67ccb07f212ba0785d004b581306d65ec40c946ce6ebf440

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 469465d3a8628956bfeedab769af855fc46b3cc6591f28ecf5a15ab13b24ed85
MD5 248ee1f2099562790792b262706df32e
BLAKE2b-256 0e05a44c2935b7bb9f352e3ef1007c8b7452e46c6c48ff8adc95ee88c61c9e2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9bbe44e46535813415e7bcf9d99e096a044b43e0c9c7f1aef61de13b3ca5d6b3
MD5 c50a8a0909e52473581cecc2fc659328
BLAKE2b-256 925edbc8d56979ce04904e3d4a1795cbfe2a22d685aff6629b102e017588a164

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6bc1966ebb5d3eebe8227505821b6eabc496ec388fa7b439a7560a50c3f243b2
MD5 398d20e6ba78d0a1697604e5ff469d94
BLAKE2b-256 ae2a5377b608b5f1b519d685777b82eb5bcff2e108b57b83659a50edfa688f8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7110d2144e7dfad1d4fa71ee812143454bf434699b734a0e6f15f28015edd7e1
MD5 4c0066461ad45fa9ecbc3801350addc5
BLAKE2b-256 7fdc6bcf1cf3b6eda065696d16d26f3887ad79d805270bbe3fa1f2743eec5748

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ac8cacd831e0c781c2fa2bcc682dee7f87b5adebd759af386ced04d4e40b8e1b
MD5 7d65746b7dbe71c578d3392246220a24
BLAKE2b-256 650294fd18121e15be78eace2c9eab5b19990c16bc51829d7c4132e8a762bbd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bleak_py-0.1.5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 713.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.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a66da73a4f0de1d6b6776e8d18771fbc2f1d252b68008887fecf8d3e4acd4bee
MD5 8205a157e85a0ebc638c534b5f3a16f0
BLAKE2b-256 420ef98fce1e1b346f38ad6c89f2b86baab7c995e98875f868e39df10f663acc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3441dfc1f1f3ae1adfc5dbd554207a523966ace7e960318879f018545a9cdacd
MD5 bb24b11a03e730663824ec9ed9d66926
BLAKE2b-256 4c1c6038fe681008ffe1d6fbc3a9d195e7d5a1bf3c90683e0abba8268b6e710d

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