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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.9Windows x86-64

bleak_py-0.1.16-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.16.tar.gz.

File metadata

  • Download URL: bleak_py-0.1.16.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.16.tar.gz
Algorithm Hash digest
SHA256 c43dfb01cc06cf519bb0c22e1341d8032fcdbda4c9b28d71e6baea032ddc58e7
MD5 e8bfd651c28bfe29e7afefa7af1d029a
BLAKE2b-256 c426a07ee8bb39f6c06e55f447664766c419cd82f9d36372b444a13f9b59378d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a5c0a62d0f4815a406428ff287332c79930fd9dc898aea9ce80a9860360edfdb
MD5 5c6d04ea527d17203c7be3a488c0e349
BLAKE2b-256 ac8c521fd46da20bb97cc82ae0d61165871e21a1deb6b491fc0902a901b3075a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bd94141137f6c86cb9ed944311f6d1ebe8ccc13ef597798129254a2b7e2e3a26
MD5 5a43f5be332661b184ba843aaf0ffada
BLAKE2b-256 1f2b417ca102ac7deb58b0e12dde28bfc7a9c5e111a50ef280b75bdf12f235aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 137b189c2537beece22b61c4eda7a4e466dc96285c622d179b16d0d7c19f57b4
MD5 0918aa3a721e137a7a5943300d3ac890
BLAKE2b-256 336a2aa946d046534934ca2170378d77c9e9c670ebd5fa67f5e73b39c1f06c6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 fd7c386b305b150e65e1382884d763100623905c70afd9848e39b5806878ba64
MD5 3edcf76c735c1d13c56f30dfcb36c838
BLAKE2b-256 854d8907f87cd64dfffe8d5b72107e650e0d278ff78305905ce1dff1744f9cc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 414f16ff2ea6928f5045562d61a4798cc65916e77b3c8411f381b138a703102d
MD5 b6097ce35c6021759775f73931c693c0
BLAKE2b-256 c2d97dc949b1ff8e37aaa2dd89446ffda17b8387172acf99c06ffb2882ac7429

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a6dd18c86b3028063e425e3eb1094496b2325179c57865ba6daec1dfc34862f
MD5 ece24cabecd9b1988fa5720ae99d279f
BLAKE2b-256 a6486c39f0b0f1c39ad2fe8fdb9f366b19f2d43492159e190aac295f7e679e6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5e3786220de5ac76259dab3740bf0992be62b8ee33af1e8c52071e1f0978d080
MD5 7ff92f6d934906632e205e0cf326a91b
BLAKE2b-256 7cce405b9d5f6c2e1d22ec5ccbb754e831319ad0f4ede7bcf687b129242e5613

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 095bb294ed4da34a6361dfc9140198ee2d12cfd1811a13e122b31770edc322a6
MD5 3fc9067f90133d55ab385f584c5d5c85
BLAKE2b-256 a4ac0f07993c56047441b3c87c88a1241439b03bd926397a9ab48b4814ba8119

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6cf72992d597fa394ea0e166ec951439ef006a582c797f32200ff71a994ed757
MD5 16bec440e67f36e6ab66aaf00d7959be
BLAKE2b-256 2f4b013742f0cdc007ed6d6056ef363953a241c15784d02bb04c72671cc09e66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf62ab8a2e1ac3f1a10f4c674e63ca5b3073931c3f3d10f9fafe0da942da413f
MD5 803b3711012a86717ae6d3e2e03825a1
BLAKE2b-256 3f736b71b38150b59924d878e5b2d67a35fa610987845c9aca240081adc0f7e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 12f0755c3fe894b3d32d4ca5e940f70992ca1731bdd091b21faecfbdabc0c0c9
MD5 74f57a6bd0ffe2008f5b82540e503e60
BLAKE2b-256 7bd6409019e73b3e2f7d485aaa09ed5b3d5e7087a45bbf7ceb52c4cf6398351a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b6b13ad7d53dbcb670cb393c36f0a0f8bc9627d3348efa4e3147f66b8dc9a21a
MD5 777c961d89fe7f0b1ada06c9ca34d432
BLAKE2b-256 eed71b3a6e165ce1d3ad5621da69ff519929a0be7f6e8b4756e93b1abe34ee6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6955d9277e84cb311a30dde89b1cd08b73ffb204e84e48557304dfa258411857
MD5 0087a15d8668603aa73d094feb0f70ba
BLAKE2b-256 e58eb7005ab46dd8259ee5c4bb082dde73ed97ed722fe119c5b53401764dda63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c7f3bd3a8b476145ff14167056fe8ef106ca4f088cdc5339a18fddd03b1ab6b
MD5 4aba65d8637e2c58ab6e0c800a0d63c0
BLAKE2b-256 604ae31b32bbb9a448c9bc04197bd1e3bdc54aea46a77ae8da22255b92b0c8ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bcf299b9a5911fb489e60e4e48fa1a1449fdbbfcc9eece3bc7352b7d357d29d9
MD5 ebb31370e2075b8e7eb1733920bb9f48
BLAKE2b-256 0e59ae97ded0457f0e64029e0400b72464b4cbfae1b336258564d006c0983f95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2bde2967826c36060c785a87f9da3c5f627a93b6a0e43e86d3bcf890f79fc14f
MD5 facfc368ad95cf48cb5a5586f40ab5ee
BLAKE2b-256 3d5999b53d2f9f7c9335775dda0b2ed5c59ed4e1480acf1e90b8da03232a4e2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0468d7df476b54806e63a5864a30bc27c24451ea7cac7c493eaccd1489779859
MD5 71d9402668b84656a184d4075947b22b
BLAKE2b-256 6ce7cda3df631c472f336648361b9d2246d4d1c2dd97d76c4b31b7bc40ebdd3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bleak_py-0.1.16-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.16-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 90d6ca468c20f3bfcc90690d6d8ae10e4904f9e3df48106cfb5600203ea48ebf
MD5 6bfa13c9b766cb761dc346f60d8ad175
BLAKE2b-256 671354c50d8635ea529eee3b0b812f49f60b0100176c302c59db3f767261ddc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.16-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 307b13014dae1b0e3fe6abdfde19a3f95e0f08471aca9e87bbeae96d220181cf
MD5 07941e55ce7621777b71ceb988a17cd3
BLAKE2b-256 5dbaaf0b6cf0d92edd578be469814257fbe4fcd4f581f20e1888e275579862a2

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