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.13.tar.gz (28.3 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.13-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.13-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.13-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.13-cp313-cp313-win_amd64.whl (732.8 kB view details)

Uploaded CPython 3.13Windows x86-64

bleak_py-0.1.13-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.13-cp313-cp313-macosx_11_0_arm64.whl (935.8 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

bleak_py-0.1.13-cp313-cp313-macosx_10_12_x86_64.whl (980.9 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

bleak_py-0.1.13-cp312-cp312-win_amd64.whl (733.3 kB view details)

Uploaded CPython 3.12Windows x86-64

bleak_py-0.1.13-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.13-cp312-cp312-macosx_11_0_arm64.whl (936.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

bleak_py-0.1.13-cp312-cp312-macosx_10_12_x86_64.whl (981.5 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

bleak_py-0.1.13-cp311-cp311-win_amd64.whl (731.5 kB view details)

Uploaded CPython 3.11Windows x86-64

bleak_py-0.1.13-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.13-cp311-cp311-macosx_11_0_arm64.whl (943.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

bleak_py-0.1.13-cp311-cp311-macosx_10_12_x86_64.whl (986.9 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

bleak_py-0.1.13-cp310-cp310-win_amd64.whl (730.8 kB view details)

Uploaded CPython 3.10Windows x86-64

bleak_py-0.1.13-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.13-cp39-cp39-win_amd64.whl (731.6 kB view details)

Uploaded CPython 3.9Windows x86-64

bleak_py-0.1.13-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.13.tar.gz.

File metadata

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

File hashes

Hashes for bleak_py-0.1.13.tar.gz
Algorithm Hash digest
SHA256 cb7485f0cc42ab2fc783f1ad6a6a8b43d4ffbfa4e760737fcd5aed2e009bd17b
MD5 1eb4c24dc387b1e6092feda0a3dbd373
BLAKE2b-256 6acb4b25591cf77b9ea96661b97d6e14a3281b0d3558c4c013634cd70c08198c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d8af5e969422f0a9f5262764d91102c871619ec859da7ed91a8d02aa954dc3fb
MD5 3a6b674593fb5b6ee5873a54e03e485d
BLAKE2b-256 08160da0c35c46dbf5f9198a7eb2f73d21c3bf9f3764bec89a408640bc6adb9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1bbabcf13fa4dc785c0bd0e3d0e11c8b15132ff77fbe7cb9ec1c0c9074af619d
MD5 3f819bc51437149c619daaa76dea430b
BLAKE2b-256 e580e1900f27d05683cc08a1179079b9f6e4c787b400ee3a3588cfb38bc4d889

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f85833fb31e43a8ff7105a6814d704bb119a75b3d5272b50e258c3287994892a
MD5 c450de3d25dea2a8c63afb662ba3be6e
BLAKE2b-256 cfc1a3e74c1a3899c216d83a074e3201539a4ee22918754c519299694e74bee8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2d4dd5ab12f7f9f5ef573cb7d60ef9d076ac22b7c07f0f24e608f48df116047b
MD5 2407bec9b7976a85906c52dbaa0e55f9
BLAKE2b-256 af8247f5989c7c9a529427deab668f1266d2624bf05195f53e366ee8b207d558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1db703274ee7edcc17089b1be25a7b815dfccc1a39a5d781f7ddec8a381885f2
MD5 cdaffed27906f531f5f31c7e7ad400a0
BLAKE2b-256 4232f6f31d05ef999b2c9e1f2ea96a13bb4a890bdc2bcf1a4e6859bed9580768

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2df7d8b86c48d762dbcbd343b78dfe79460fa524dd4ce02ea01d7f54ea60ab11
MD5 b7c868423509a5da7c59651e87b811a8
BLAKE2b-256 ba12409b80f7ad9f60496623dddda0485ef7336ea58a96eafc88be93fa8b88b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e4ca5ec7011e284891cc0d27bbf6002082b6efe99d5ce9c80021a70ae51164ca
MD5 50fcddbd11a8233fee04945d5198910e
BLAKE2b-256 f5b357e8dc2a5ee08c695239f7ec8d0e051cfb24dfa4e147b6ccc1332361f073

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d4f5b15112b3ab6b010bee0b373f1eb4a3e4b969b5bd0dc05cc0fa18eda6c796
MD5 0d338ab880aee3d751285b979fd8e430
BLAKE2b-256 668521ca9ca84d1594713b5d716aa63550c2814e4cfb4e5b4a18848c6668e23d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3f2748f66cd956171dfcd6694d941d3b88415496116f7ea57a4056c35c07d5e3
MD5 e973fed66d15a749e757a81e0962d858
BLAKE2b-256 f168ece379637bc4065c80dbb9b24ad62110c78bac2f1e8dc0d09a36008ce769

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e0648d42a179913e5beee4387df401f04100ef67bb555363ed42c9c1e8afd17
MD5 ceb537418ad253d0d1eb09d3a450d77c
BLAKE2b-256 5790df694c4aa30118067f49965c66ad4b4c304d8b208fe3801921a9feaf1418

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3fa92f054890942fff49f02ec7f4e3f1824637109add8960f4e2890e8cab170d
MD5 937ec94f2c69fb1f3c31a7964d67c701
BLAKE2b-256 9656a4cf61a14c6f53320b9ce0b98fb9df1aad954b5788ef54474a5e481a9f18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c3a660bcf84947690cd0d860f5a217858d3985a66ffcf6de924c273e464b8ebb
MD5 cadeb945ca61b1986d2682b5f64cd288
BLAKE2b-256 9232deb59f335c38e382ec0727d12fb5bd0a6af5980a6b0e8b36517e16743f56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ef3e0f990f0448c4e33d9fce8a0275060f5fdb59bbb9cbeee4717478a30b3106
MD5 ad1e41cdbe207652f72ca0845d5546ca
BLAKE2b-256 9ab0f8198f7fc5603368d1bdbff375afbf1d4f68af48ddba65bfef8119312440

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a3f294c5911758f6431f49eafb140cfa705de3f2701f107e68585b54b63f040
MD5 7a5d654b0dacd4fef589f01ce2c847dd
BLAKE2b-256 d70c2a8ee53ba8b8fe4df5c37481e3cd721391c7392e6ac2b013a1e578fc1bd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e417238d93089e602a3018cbb5568c74cfe4e476a24cce95e93cc57d95c5e298
MD5 6cd23aa26cc4ac86f8ff685cd987e8c6
BLAKE2b-256 04f846c92bd3a962eee47b3f44acb9f6eee3364a3bffa5971480cb912c632994

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 eaa0608e00a878d2bcc250172f5d083577ef33c38c5d68fe283fb504ebf6f17d
MD5 7ed04164f294e86d98f111a64ca313d3
BLAKE2b-256 4740d3234c1a72f4cb2e457f255e5b2ddca9431fc8beb46604ee4a686cafdb87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c717ddf04d894ecc68e33595685d64a1d2d5b8a0c8ae9027decc29ccfaaafcf8
MD5 4e23869c1328cb287a84655726ae7856
BLAKE2b-256 f019554b127439417cdeaf14e01cf284559c9d613e9ad852ba66cefc83695e55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bleak_py-0.1.13-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 731.6 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.13-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 515637655a8e87c012bce8d12771caf4671ce9dad1dd4e28793c5994175ee40d
MD5 71921d95b25e34ca56d972f290899894
BLAKE2b-256 e2799590ab12b0381acfbfe09abea8518a92e4bb5c1ee304f90a149d7c0f0ca6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.13-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0d0820b5cd4532a0b0ba4f7f9961a24eb46c78812758a60fe08c3cc6690f0951
MD5 5415f70d49b22f2b14d469f5a387f834
BLAKE2b-256 b43f65a71cb13081ee7a6927f2046e52716b7260905fe9a0658c93419cbd9fcb

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