Skip to main content

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

Metadata

Release files for bleak-py 0.1.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bleak-py 0.1.20
File Size Uploaded
bleak_py-0.1.20.tar.gz 17.8 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for bleak-py 0.1.20
File
bleak_py-0.1.20-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.17+ x86-64 Details
bleak_py-0.1.20-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.17+ x86-64 Details
bleak_py-0.1.20-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details
bleak_py-0.1.20-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
bleak_py-0.1.20-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
bleak_py-0.1.20-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
bleak_py-0.1.20-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details
bleak_py-0.1.20-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
bleak_py-0.1.20-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
bleak_py-0.1.20-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
bleak_py-0.1.20-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details
bleak_py-0.1.20-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
bleak_py-0.1.20-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
bleak_py-0.1.20-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
bleak_py-0.1.20-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details
bleak_py-0.1.20-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
bleak_py-0.1.20-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
bleak_py-0.1.20-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
bleak_py-0.1.20-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details

Total release size: 30.7 MB

Release files / bleak_py-0.1.20.tar.gz

Download URL bleak_py-0.1.20.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
81ffa7a3c3fd3454d016366a22e0bdefb68fe597397ea966ccd5a0dd5755e131
BLAKE2b-256 checksum
How to use checksums
1eb087ae919a4f21aa36d682fce4ef2f95b3812212c5316fc86acf810e7e1f5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL bleak_py-0.1.20-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.6 MB
Tags Linux glibc 2.17+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
1bee8ee791f5b908d64e99f9ae09f478afe2501204463d597e1f0810a98f25de
BLAKE2b-256 checksum
How to use checksums
479e771ce70ff041b40b2a57d595f7c07c5cfd5a8803830fe5ea98b017c7a407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL bleak_py-0.1.20-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.6 MB
Tags Linux glibc 2.17+ x86-64 PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
b986b7e4c80b735d95be2a58ae230135093c9942398f0573ac6b55d9aa5da9b0
BLAKE2b-256 checksum
How to use checksums
37386d40888605780601b3d0391ca89efb5bb9a0372434784894e8dd942c82db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL bleak_py-0.1.20-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.6 MB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
86f426074c26e7d3092a5f7b7056c59b9fcf86c25f4cd224e6c698e1f94f9471
BLAKE2b-256 checksum
How to use checksums
853f40fdfdc4c4159a1092224d0f7c6362ec46b18a03fa782458bc25ef8dc68b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp313-cp313-win_amd64.whl

Download URL bleak_py-0.1.20-cp313-cp313-win_amd64.whl
Size 798.7 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
5ba4c3ffe47289a327196a7eab0a8b9ca94639969f7935bfcbf0c001f6d25a06
BLAKE2b-256 checksum
How to use checksums
ca7999b38ec8fcc04f1c77c63d8647dfdc54e5bf540062db9e7b72f00555c72d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL bleak_py-0.1.20-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.6 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
c03417dcea07acf2d1b36f88fdb17b42df542d2ee8ae1b5d786d3cf6a9da0272
BLAKE2b-256 checksum
How to use checksums
e6474a4a055be7a4bd4472e44e09e10ce7a549df0497e57be6f88fc2ce4589a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp313-cp313-macosx_11_0_arm64.whl

Download URL bleak_py-0.1.20-cp313-cp313-macosx_11_0_arm64.whl
Size 993.1 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e80d7b2bbe4a2fb836c09c076bef45ba86985bf63e257d6baf932bc48af37e51
BLAKE2b-256 checksum
How to use checksums
c8f1c48eb71a5d9647cb5d7b3b2192327e6b5356efa70f134599aaf59454e5d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp313-cp313-macosx_10_12_x86_64.whl

Download URL bleak_py-0.1.20-cp313-cp313-macosx_10_12_x86_64.whl
Size 1.0 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9f1dd3759534e5dd4a0ea42ee5e2949684561ba4bcba70e098ff23e1ee574574
BLAKE2b-256 checksum
How to use checksums
8636b8b65899feb0415955364dfc2a841be23d8aabbc3c0b40b9ef3eace44e69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp312-cp312-win_amd64.whl

Download URL bleak_py-0.1.20-cp312-cp312-win_amd64.whl
Size 799.2 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
815e3ba86f8915c0d77b985f0509f1f6863d9d55197de4222272afd13f7dd112
BLAKE2b-256 checksum
How to use checksums
5036451bb3befc264bde78a1e497cf08ad4685923a9f8617988319998c1ff25f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL bleak_py-0.1.20-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.6 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3e47b7141ed39934de89b9ad43f3f6977eeaa53a4e3b6d3c44b531a39a63ed0b
BLAKE2b-256 checksum
How to use checksums
0e60254fcfe21367e4dd96f4f982ddcaf4300ba2d5891d8dca5e61eaba6efa08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp312-cp312-macosx_11_0_arm64.whl

Download URL bleak_py-0.1.20-cp312-cp312-macosx_11_0_arm64.whl
Size 993.9 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
32c9cd6b75ee47fdedc7049855eb9e1a56cd01fd8fc1830744d8e654ccc70208
BLAKE2b-256 checksum
How to use checksums
97f47c8e95e548bf0d38cdd7d8e137de28776f7d45a69e5f13a134072e9f001c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp312-cp312-macosx_10_12_x86_64.whl

Download URL bleak_py-0.1.20-cp312-cp312-macosx_10_12_x86_64.whl
Size 1.0 MB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
5aec57e7e9fe19b38e3b70287c343a64176edce50176a43f95337c1404589620
BLAKE2b-256 checksum
How to use checksums
dae6a0a2e82bb96f32fc577826854459cce6e4c1f61482634ff1562a20fc7f78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp311-cp311-win_amd64.whl

Download URL bleak_py-0.1.20-cp311-cp311-win_amd64.whl
Size 795.3 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
b7ee23a03b7e9b1bc9c7c4a3a4570382eef8ce1f4f5ac5bbc4e1c12b04362cfb
BLAKE2b-256 checksum
How to use checksums
b6f2aa274c1f1a3f03737073b2bbd1badeedff4239c5dac835d25bdb4ac7cabf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL bleak_py-0.1.20-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.6 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
780ff593af971be15e5ad8654d605b6cfdd626e8c8e74cfc388aebcd41183b78
BLAKE2b-256 checksum
How to use checksums
d0b8e960401882b28e9d0bff12ad730127edb7dd07c727b8e27262299ce50178
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp311-cp311-macosx_11_0_arm64.whl

Download URL bleak_py-0.1.20-cp311-cp311-macosx_11_0_arm64.whl
Size 1.0 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
dc25df9fd7b61c288089a942448ea967478b8e50dc9e2dd1053066878816955f
BLAKE2b-256 checksum
How to use checksums
0f7c8ff8a4e99e0f39d842c3b4c1ffc59fbab6c4a0e73fd608f9db3d4f727697
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp311-cp311-macosx_10_12_x86_64.whl

Download URL bleak_py-0.1.20-cp311-cp311-macosx_10_12_x86_64.whl
Size 1.0 MB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
7ddc1637656c4d8f98126f814b7d750eb4b4bae77069fd6c147dbbdcb8d5d2fe
BLAKE2b-256 checksum
How to use checksums
f6a27cb0ca02e766d0be6202a0eeb65ca181a4da529027010dfa7ea12d36af4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp310-cp310-win_amd64.whl

Download URL bleak_py-0.1.20-cp310-cp310-win_amd64.whl
Size 795.2 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
632aa842df918af91ce0cdc6ef6eb974bbc09725e741b14a360f41ab9a9f9d47
BLAKE2b-256 checksum
How to use checksums
6af73e4e5a78a2f9c5a3da970fb9ae360a4b426117e5d22829df9d2e3620711e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL bleak_py-0.1.20-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
28ba6cf5758122ec6b2a45d7070441dd993f0a6480b22935aeeee372c0500dc8
BLAKE2b-256 checksum
How to use checksums
ed6b43986b5aaf2dd3034bafecabe3391f21eb1f258d6bd64f4269211d1b8c5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp39-cp39-win_amd64.whl

Download URL bleak_py-0.1.20-cp39-cp39-win_amd64.whl
Size 795.9 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
27a0c4d7188bbef8690966056bf968c8f528fc8b64af6b1b2be319c783f4370f
BLAKE2b-256 checksum
How to use checksums
d39372eb57fdb9857fa1428543f3c577e0d2d2a9a13df10cda627b24c58e2d71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / bleak_py-0.1.20-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL bleak_py-0.1.20-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 2.6 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
106332841be1aba02262b747a1b2cd133c42c94e117859e74333eea793dc1826
BLAKE2b-256 checksum
How to use checksums
088ac148a3aa1af6f95edfac2aa766f408627952ad9ef2c40752534f99dfa44c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release history Release notifications | RSS feed

This release

0.1.20 This release

20 release files

0.1.7

20 release files

0.1.6

20 release files

0.1.5

20 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page