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.14.tar.gz (29.2 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.14-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.14-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.14-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.14-cp313-cp313-win_amd64.whl (795.8 kB view details)

Uploaded CPython 3.13Windows x86-64

bleak_py-0.1.14-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.14-cp313-cp313-macosx_11_0_arm64.whl (992.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

bleak_py-0.1.14-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.14-cp312-cp312-win_amd64.whl (796.5 kB view details)

Uploaded CPython 3.12Windows x86-64

bleak_py-0.1.14-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.14-cp312-cp312-macosx_11_0_arm64.whl (993.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

bleak_py-0.1.14-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.14-cp311-cp311-win_amd64.whl (794.4 kB view details)

Uploaded CPython 3.11Windows x86-64

bleak_py-0.1.14-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.14-cp311-cp311-macosx_11_0_arm64.whl (999.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

bleak_py-0.1.14-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.14-cp310-cp310-win_amd64.whl (794.7 kB view details)

Uploaded CPython 3.10Windows x86-64

bleak_py-0.1.14-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.14-cp39-cp39-win_amd64.whl (795.4 kB view details)

Uploaded CPython 3.9Windows x86-64

bleak_py-0.1.14-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.14.tar.gz.

File metadata

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

File hashes

Hashes for bleak_py-0.1.14.tar.gz
Algorithm Hash digest
SHA256 513831998edd65a63ac23e226a998d272fd1f621dad6eea2c352453fe14bf58b
MD5 17744b42ddb296f42959b1d9001153a1
BLAKE2b-256 18c0e364008e8202b73003bb35fee73e83545d4bbc85fd811f9d55851aad387c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6a529ed8aa37526aa26a217feced8135fc1b42ef5a98233a63b83c091ebc9f6c
MD5 43a6357112589cfb68096950f689cc1a
BLAKE2b-256 5b9b59e9b217421f97197b03488533d6eea6281fca4253ea8c462eff41475115

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 016b40bb3e1e4d024160d9442ce955c4b0aa58bd82a1b42302799e4e0ac52d6f
MD5 fc1dd31e4b80e5eaac61c83453a5bd99
BLAKE2b-256 b379f7980fc5fddaf9a97a55bf8deebcc8aaa6e05ea9e77e76871d5dabbe6af6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7000d0bddb542a8f8016260a26b9cb73785e762a90bfc8803b5fe54e708f481c
MD5 3dc2c5d6cefca16c41de86266d82ace0
BLAKE2b-256 730757e55a66bbad8edf5ef1c16383285d2cfc43e8a3bcd455aafd713cc8f8bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1f335d1084d346f0b2fcf2b6881aa0b80e31e7c74293a47029ec23c47d9908d9
MD5 36182d886745bc5a9133ed82b127aada
BLAKE2b-256 02ef5213778a0a7a4bd0555c69587b7d8ecc1d1e4de9feecf3f25ea9148e2285

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 213be0b5f0a5e7f11a4cca13e39cf819a246a5646056f47fd9e5222c39333131
MD5 adbedd5b391d7392e3f837bef3ea5236
BLAKE2b-256 50b2215b52bbac4fa5ff78561a6d480297b4005f6a2156b6677724a124cc7691

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5af91dbb0d1347a5df938513e0d588fab41799556857363347b46d4523ee951
MD5 0cff1568b1e8aa89fe884fc0f5d2c539
BLAKE2b-256 353c29853bdd409cb84ad8fcda2f6d3fb8c790315af2d49642321149017a511b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 75dd78ebf16645b2f419bcc5fcb762df3f115c7d0015f96432efbdf457e44b6b
MD5 2ed36ddb4ed2ea6ca6925cc4f73dbfa1
BLAKE2b-256 c77ed59b61b9d51ae92642fd34fab278cddc583728e2a5fdcda88c6de9d16221

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 49174ec1bd56987bdfe46ab4c0bda3b9d44af07a0fbd58f27b265931aec8fcfe
MD5 fd6797bea219e0776c1ed18e14053244
BLAKE2b-256 784e4537c20af7e6c08ead8677048be2dca09710b432150d7e915cc216413615

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 73f030596b3a40904c8d48c5c2f42bc2da9e40cd42b787d74a114e2c9e803cc5
MD5 5012c97a86c85fde91638639467f5f00
BLAKE2b-256 0ed77154bf7adb30e2256d378b052fb7c661c72ebb70776e9af083680658ef16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95b69ddfb30b9e5da0548857054d1d26d1bd5da19647c28b87ec7396a11f92e9
MD5 17653d5337a56f176244ade67b5a8d5f
BLAKE2b-256 b9650f201a9ef86fdcceefde3746b7926c864774c6e3bdd5f3271b57677fdbe9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 dbe6cd6454b01230867050cc7438a664f512dedd6e2fe25a035def816c59deec
MD5 06dacff65f226d3d19c31911b5b7f8b6
BLAKE2b-256 764d33a4b845b26ac0aa57f2bb8c7a9a5744cbc72143dde146877b5c310e9d69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 65b1bc2547f9fe2d40bd35fcd28e3635138f5d842bf5181d9ef22430a0e7ed46
MD5 4a1ac7314394933fd04f1f3f7118cb19
BLAKE2b-256 3eb95c002724cb4a8ff0c48972c6c411a573a0a8dda7fda666b003cd25240dc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a995fbab562049e9e3beba57eb01514fa97cc25a1500e5cf3f5b811df95c1b1f
MD5 fe3d7203bec370c66a5eae0435c24825
BLAKE2b-256 514d10511177efa61e3cb73a6ec6a2c64f44f80fdb10086f9b2b0ce8e8ec59c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ffe9a8ec49f54d66fa482492367a06c8ecc17edfe036a08d4daa2e53375f859
MD5 29367a05ec49d8a0ba29a0ca0a9b4319
BLAKE2b-256 8fcf37d71a0f98845d540d150ac36cbe8cd780c2365841def27ae0f7da4d8832

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cfddab7b885bcfc9611a5be2151dd4666a42160e1ab2c8bf917817386de76372
MD5 12e9f5d6d48c1ae2039e51dba937ab52
BLAKE2b-256 94daa341b8bd662fecf82b912478522492d8320f4091062a95eb85bb5d97e931

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 76df21bdceddf5d77c873608421a34ba897074fd69f1c8649df095232980085b
MD5 3fcd7388faf6292be735180be8af25bf
BLAKE2b-256 8ac177cbd278ad5fa0e13de98c9d9638f8b99c237cbc17abefb1b01ae5327e54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 26ca2e148cc7c67de3d72fee952f3f2647312e1f0f54f9b6bf29ef203a94d207
MD5 01b2fc82a534ffc073e261f22a368f4c
BLAKE2b-256 eb35bc85841f560795096cfde997f802e93bfaef1da4e2abab52570be390c640

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bleak_py-0.1.14-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 795.4 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.14-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1563f4cd417e117c8921e0c7fdac93256d86fbfc147e6c3984f1688e673b1d44
MD5 4ac16ccba6992b9d214a535d42a7fa2e
BLAKE2b-256 9fecff12f947b724f5aa8da9c5c7f9442be4bfeadac50e64d214fc80551356dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.14-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 03b18553c87f977312a470491f512dfcc1276b51253016467ec133f81d5b8379
MD5 5b166a597b507472d4be7d202f0595a2
BLAKE2b-256 baa17f6713b5702e7b66375fe3573ccaa1c1f5e7c899384e0842cb4942b02865

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