{"id":39013137,"url":"https://github.com/fkleon/pybricks-ble","last_synced_at":"2026-01-17T17:23:00.624Z","repository":{"id":218017086,"uuid":"725026840","full_name":"fkleon/pybricks-ble","owner":"fkleon","description":"Communicate with Pybricks devices using BLE data broadcasting","archived":false,"fork":false,"pushed_at":"2025-06-25T09:36:29.000Z","size":136,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T00:29:33.058Z","etag":null,"topics":["bluetooth-low-energy","lego","pybricks"],"latest_commit_sha":null,"homepage":"http://portfolio.leonhardt.co.nz/pybricks-ble/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fkleon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-29T09:36:01.000Z","updated_at":"2025-08-25T14:44:04.000Z","dependencies_parsed_at":"2024-01-25T11:40:31.779Z","dependency_job_id":"7bc0ac70-7161-46bb-877a-c30fedfb0e8f","html_url":"https://github.com/fkleon/pybricks-ble","commit_stats":null,"previous_names":["fkleon/pybricks-ble"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fkleon/pybricks-ble","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkleon%2Fpybricks-ble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkleon%2Fpybricks-ble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkleon%2Fpybricks-ble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkleon%2Fpybricks-ble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fkleon","download_url":"https://codeload.github.com/fkleon/pybricks-ble/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkleon%2Fpybricks-ble/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28512722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bluetooth-low-energy","lego","pybricks"],"created_at":"2026-01-17T17:23:00.513Z","updated_at":"2026-01-17T17:23:00.608Z","avatar_url":"https://github.com/fkleon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pb_ble\n\nA Python implementation of the [Pybricks connectionless Bluetooth messaging](https://github.com/pybricks/technical-info/blob/master/pybricks-ble-broadcast-observe.md) protocol.\n\n## What is this?\n\nThis package was born from the need to develop, test and debug Pybricks programs that make use of connectionless messaging -- but without having a second (or third..) Pybricks Hub readily available.\n\nIt includes both command line tools and Python interfaces to send and receive Pybricks broadcast messages on a device running Linux.\n\nTo use the Bluetooth Low Energy (BLE) radio features of this library, you need:\n\n- a BLE-capable Bluetooth adapter.\n- a device running Linux with BlueZ and D-Bus (e.g. Ubuntu 20.04 or newer).\n\n### How to use this?\n\n- Find out more in the [📝 documentation](https://portfolio.leonhardt.co.nz/pybricks-ble)!\n- Check out the [🧑‍💻 CLI usage examples](https://portfolio.leonhardt.co.nz/pybricks-ble/pb_ble/cli.html) or [🔧 programmatic usage example](./tools/pybricks_virtual_ble.py).\n\n### Alternatives\n\nIf you're running a SBC or board that's Micropython-capable, check out [micropython-bleradio](https://github.com/pybricks/micropython-bleradio) from the Pybricks creators.\n\n## Development\n\nA `Makefile` is provided for convenience. Running one of the provided targets will create or refresh a local Python virtual environment:\n\n* `format`: Format the code base.\n* `lint`: Lint the code base.\n* `typecheck`: Type-check the code base.\n\nAlternatively, use `pip` for an editable installation of this library:\n\n```sh\npip install --group dev -e .\n```\n\n### Testing\n\nThere are two test modes:\n\n* unit test (default): run the test suite against a BlueZ mock service.\n* integration test: run the tests suite against the real BlueZ service on your system.\n\n#### Unit tests\n\nRunning the unit tests requires a system with D-Bus.\n\n```sh\nmake test\n```\n\n#### Integration tests\n\nRunning the integration tests requires a system with D-Bus, BlueZ and a powered BLE-capable Bluetooth device.\n\nThese tests interface with BlueZ directly, so will trigger actual Bluetooth advertisements to be sent for a short time.\n\n```sh\nmake integration-test\n```\n\n### Documentation\n\nA web version of the documentation is generated with [pdoc](https://pdoc.dev/).\n\nTo run this locally:\n\n```sh\nmake -C docs/ dev\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffkleon%2Fpybricks-ble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffkleon%2Fpybricks-ble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffkleon%2Fpybricks-ble/lists"}