{"id":30712345,"url":"https://github.com/o-murphy/bleak-pythonista","last_synced_at":"2026-01-20T17:31:56.250Z","repository":{"id":306517097,"uuid":"1026394687","full_name":"o-murphy/bleak-pythonista","owner":"o-murphy","description":"Bleak-compatible backend for Pythonista iOS app","archived":false,"fork":false,"pushed_at":"2025-09-01T10:05:28.000Z","size":88,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-01T12:34:56.837Z","etag":null,"topics":["ble","bleak","ios","python","pythonista"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/bleak-pythonista","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/o-murphy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-25T20:10:59.000Z","updated_at":"2025-09-01T10:05:31.000Z","dependencies_parsed_at":"2025-07-26T06:40:54.586Z","dependency_job_id":"e6523379-d0ec-497a-9fea-5a77df2c7aa0","html_url":"https://github.com/o-murphy/bleak-pythonista","commit_stats":null,"previous_names":["o-murphy/bleak-pythonista"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/o-murphy/bleak-pythonista","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-murphy%2Fbleak-pythonista","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-murphy%2Fbleak-pythonista/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-murphy%2Fbleak-pythonista/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-murphy%2Fbleak-pythonista/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/o-murphy","download_url":"https://codeload.github.com/o-murphy/bleak-pythonista/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o-murphy%2Fbleak-pythonista/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273137428,"owners_count":25052011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ble","bleak","ios","python","pythonista"],"created_at":"2025-09-03T02:52:09.303Z","updated_at":"2026-01-20T17:31:56.196Z","avatar_url":"https://github.com/o-murphy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `Bleak` compatible backend for `Pythonista` iOS app\n\n[![license]][MIT]\n[![pypi]][PyPiUrl]\n[![py-versions]][sources]\n[![Made in Ukraine]][SWUBadge]\n\n[![Pytest](https://github.com/o-murphy/bleak-pythonista/actions/workflows/pytest.yml/badge.svg)](https://github.com/o-murphy/bleak-pythonista/actions/workflows/pytest.yml)\n[![Mypy](https://github.com/o-murphy/bleak-pythonista/actions/workflows/mypy.yml/badge.svg)](https://github.com/o-murphy/bleak-pythonista/actions/workflows/mypy.yml)\n[![Ruff](https://github.com/o-murphy/bleak-pythonista/actions/workflows/ruff.yml/badge.svg)](https://github.com/o-murphy/bleak-pythonista/actions/workflows/ruff.yml)\n\n\n[sources]:\nhttps://github.com/o-murphy/bleak-pythonista\n\n[license]:\nhttps://img.shields.io/github/license/o-murphy/bleak-pythonista?style=flat-square\n\n[MIT]:\nhttps://opensource.org/license/MIT\n\n[pypi]:\nhttps://img.shields.io/pypi/v/bleak-pythonista?style=flat-square\u0026logo=pypi\n\n[PyPiUrl]:\nhttps://pypi.org/project/bleak-pythonista/\n\n[pepy]:\nhttps://pepy.tech/project/bleak-pythonista\n\n[py-versions]:\nhttps://img.shields.io/pypi/pyversions/bleak-pythonista?style=flat-square\n\n[Made in Ukraine]:\nhttps://img.shields.io/badge/made_in-Ukraine-ffd700.svg?labelColor=0057b7\u0026style=flat-square\n\n[SWUBadge]:\nhttps://stand-with-ukraine.pp.ua\n\n**This module uses `bleak` backend API to implement a compatible solution for `Pythonista` iOS app.\nIt uses Pythonista built-in `_cb` module, that is wrapper to iOS `CoreBluetooth`.**\n\n\u003e [!CAUTION]\n\u003e This project is in `beta`, use it with caution\n\n* This backend refers to [Pythonista.cb docs](https://omz-software.com/pythonista/docs/ios/cb.html)\n* This backend refers to existing [`macOS CoreBluetooth bleak backend`](https://github.com/hbldh/bleak/tree/develop/bleak/backends/corebluetooth) was used as a reference\n* It also provides stub files for pythonista built-in modules as `_cb` and `pythonista.cb`, and fake `_cb.py` implementation for testing on unsupported platforms\n* Use [`Bleak` docs](https://github.com/hbldh/bleak/blob/develop/README.rst) to explore how to use `Bleak`\n\n## Table of Contents\n* [Installation](#installation)\n* [Usage](#usage)\n* [What's done?](#whats-done)\n* [Contributing](CONTRIBUTING.md)\n\n\n## Installation\n```Bash\npip install bleak-pythonista\n```\n\n## Usage\nDirect import\n```python\nimport asyncio\nfrom bleak_pythonista import BleakScanner, BleakClient\n\nasync def main():\n    devices = await BleakScanner.discover(\n        service_uuids=[\"\u003csome-service-uuid\u003e\"]  # optional\n    )\n    for d in devices:\n        print(d)\n        client = BleakClient(d)\n        await client.connect()\n        print(client.services)\n\nasyncio.run(main())\n```\n\nWith `bleak` itself\n```python\nimport asyncio\nfrom bleak import BleakScanner, BleakClient\nfrom bleak_pythonista import BleakScannerPythonistaCB, BleakClientPythonistaCB\n\nasync def main():\n    devices = await BleakScanner.discover(\n        service_uuids=[\"\u003csome-service-uuid\u003e\"],  # optional\n        backend=BleakScannerPythonistaCB,\n    )\n    for d in devices:\n        print(d)\n        client = BleakClient(d, backend=BleakClientPythonistaCB)\n        await client.connect()\n        print(client.services)\n\nasyncio.run(main())\n```\n\n\u003e [!WARNING]\n\u003e DO NOT NAME YOUR SCRIPT `bleak.py` or `bleak_pythonista`! It will cause a circular import error.\n\n## What's done?\n\n* CentralManagerDelegate (for now for scanning purpose only)\n* client.BleakClientPythonistaCB\n* scanner.BleakScannerPythonistaCB\n* `_cb` and `pythonista.cb` stubs\n* fake `cb.py` for testing with backend simulation on unsupported platforms\n\n\u003e [!TIP]\n\u003e THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo-murphy%2Fbleak-pythonista","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fo-murphy%2Fbleak-pythonista","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo-murphy%2Fbleak-pythonista/lists"}