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.4.tar.gz (28.5 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.4-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.4-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.4-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.4-cp313-cp313-win_amd64.whl (722.7 kB view details)

Uploaded CPython 3.13Windows x86-64

bleak_py-0.1.4-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.4-cp313-cp313-macosx_11_0_arm64.whl (931.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

bleak_py-0.1.4-cp313-cp313-macosx_10_12_x86_64.whl (972.6 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

bleak_py-0.1.4-cp312-cp312-win_amd64.whl (723.2 kB view details)

Uploaded CPython 3.12Windows x86-64

bleak_py-0.1.4-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.4-cp312-cp312-macosx_11_0_arm64.whl (931.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

bleak_py-0.1.4-cp312-cp312-macosx_10_12_x86_64.whl (973.3 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

bleak_py-0.1.4-cp311-cp311-win_amd64.whl (718.6 kB view details)

Uploaded CPython 3.11Windows x86-64

bleak_py-0.1.4-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.4-cp311-cp311-macosx_11_0_arm64.whl (934.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

bleak_py-0.1.4-cp311-cp311-macosx_10_12_x86_64.whl (976.8 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

bleak_py-0.1.4-cp310-cp310-win_amd64.whl (720.6 kB view details)

Uploaded CPython 3.10Windows x86-64

bleak_py-0.1.4-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.4-cp39-cp39-win_amd64.whl (721.5 kB view details)

Uploaded CPython 3.9Windows x86-64

bleak_py-0.1.4-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.4.tar.gz.

File metadata

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

File hashes

Hashes for bleak_py-0.1.4.tar.gz
Algorithm Hash digest
SHA256 bb338070847fc067ff8e2537e945a5277f40cc393607fbc3105eeefdaa760d12
MD5 d2264ab36d46870bf5e27d19e2e74315
BLAKE2b-256 9c0c33d5da7d9ff7a23e719f4d3bc696672bbe9ea9b1d0c58fbee5da0f49ce06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3aba966a7b8e00e2d0382979ad2fbe493eb6cbc48af7b269e81d827e68aaa65
MD5 bf3a7f47913b5b1b23c9b9bc2589fdcd
BLAKE2b-256 6cb632e45b8a13354a39ca9db8ae31a04270bb7d8ffb425b3dc4ad7b76004f19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 65cd92a799fb875e296da6ffee3419baf34fbe736e31c7255d29e17516d2d801
MD5 5ae3ffcca2113c15025c3aa3084985e2
BLAKE2b-256 f4c81357f7dbd512cb67cda97ce198335bf21b7183194103bbb3760343968319

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a5a0a87f77d23141c46d1ef0c57d88cd29131709db22465135f7d850fd4bc470
MD5 a157109f9dfed7f06ffd0d16338118ce
BLAKE2b-256 be413c662539e43330a4b5d1cd58df221955e38d7deb0201ab18ed79b5ea62a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 913a13f9c301028c9dbab41b68a0fb09629b8c3fc5d6b456c72ae1e40bfa8435
MD5 b331676f0be4b65a87e5b5b0577f2d69
BLAKE2b-256 001f3ba57733daf2a7d440e96739b8086f998e4442d7e3a0d0056388c45414fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 85ff0b6204e40ad8ba5c9bace84641119a343930a2a55e58bd351a21b920e37f
MD5 6b0f8f17e6ad05d609b65c85ebcfc87f
BLAKE2b-256 e0b2c6e9e5b095e34cdfa4ac61fab71fcec4f85bc4ece0c641f679d7ffc806f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d87701f5d1f514447bd11c62112f39d39da51efcb2bb0bbc22f6917114792fbf
MD5 94226c46d2df21fb3297cebf67380504
BLAKE2b-256 97a3ab01c5c486cdbe5d64d33e1cc7f8c4a5362b790618adb82a73730dc410bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ff482aadb9707e7e2cb9d8e597ceb1b381e540b182b018d8abac5bb0c0d03dde
MD5 f5e4de80a6933e142a3f4afb59bb7f9d
BLAKE2b-256 36611950794770d4f3b42d4326e7c84076d3d320bcba5e902eda06829c1e677f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 72bdd8a0db3010277c181f71ca536b6b7a34402ddd5554a5cc86108792b2265e
MD5 ca30f22ea08b2ff310956befcbf48556
BLAKE2b-256 ce89eee14f30de9128d395ebf0f137b34e94efd0f85a61d21fa047ffeca72329

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0ab3cd1a15bc2f38b641633f589f435c97a34d80cee1b4199a5e6ee46ebfe1dd
MD5 1402e67daa16290f9a0c25d0a714cf4d
BLAKE2b-256 953e377589f51b77d14c35f77d9d0a1f7d944d706f01bd69c0b784b3ffc0d321

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a98a0223075acc4124f5da80056fa94c3e18be424a5956eeb715afc38806b188
MD5 bf6849164e0f014786f1f717ecb545e2
BLAKE2b-256 8050614bc9ed47931714005b812302b9babd9967e15a3c4dc6a62fd592f5c9a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2a38f2409f4176e654283e0d6203ec50a322fa6b38a2379c2b27879c6559c0a5
MD5 25bcb822b23df7f9be980ea02d53a540
BLAKE2b-256 1d7ae92204f0edc9e4593da98b53314548c1b61656023f0ef1f75915782f3cc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 769d7f94960ccf8d95b7cd51ee12879d20182a6d3d0e702a3592bf35ba89e56a
MD5 a316f9a5cd2d1d660f4049304beac44c
BLAKE2b-256 70d5f5a9c711e28777fa985bf36c448e6ab97297b3950e9e2e15e76d3b61ad8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf85a3ccd2dded16557fb1f1280dbe7902dfc59291acf6841ff88f6df627591c
MD5 25f458bac433315979190518c9713c57
BLAKE2b-256 19086a506cc2ac97a0cbfbeff4bec8c9fcf6ba54fe4e695bd397deff619278e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca9b12cc9986c801bcd853922ac7a79321ada5d9685118260b1a7939e22f17c8
MD5 7e2a24d6c61f5a9136e3a7fc858e6965
BLAKE2b-256 334e7b67e12b774333458deaf0a06624222910b9f7d111b7036f36f504904fb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8a3c452599fdcedd23a05b629de8246ef434a58474806e54149e837549a31dc4
MD5 bbd673781d2b717f1c9152a1f54109f8
BLAKE2b-256 45e88482df7e946ff799a978fd807e8b413d9056e4535958281ce485a670a510

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b5d8af7477033eeca762f6696b1d9243b0d19dd8ac7f49d1cccfc17403eb488c
MD5 c6805eeeef43332cc5eda10340a4a7fe
BLAKE2b-256 88581a2eb067c3d8eb79fa4815052e447f0b73b49f46ae363a985e462ed6c9cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dc2a507a558e9f9cde462e4b3dea5051514f0ee2d9762767370a60291cac9a27
MD5 ffc5677d6d6312bc8b644cb72a7e2390
BLAKE2b-256 d803a6fb00bb20f19eb44154f63df1cb8d47ee1fc7cbf0d2aca84ee10477bfd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bleak_py-0.1.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 721.5 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.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 677ae7d230cfae121f60976b89231170ed9101027c7cfae6976de2856c7f6cbc
MD5 99c57ccad67d7a3640d9950d22a5dacc
BLAKE2b-256 344e0a043b45e211a9528a06aef7bc15e4d9a0ccd1b7a261fcf6151fd0b86071

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bleak_py-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aedd1578f499a84dca4cda98a0ae0b25b652047cca26506ac2cefb90565881a6
MD5 999417b8d8348230a761b0fb7df05642
BLAKE2b-256 9a630e768a954bf45a0c3a0509c7c05ed5385452e41ee7de3f46f882ba4fab82

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