{"id":14437129,"url":"https://github.com/ukBaz/python-bluezero","last_synced_at":"2025-08-26T20:31:07.222Z","repository":{"id":3360670,"uuid":"49202026","full_name":"ukBaz/python-bluezero","owner":"ukBaz","description":"A simple Python interface to Bluez","archived":false,"fork":false,"pushed_at":"2025-03-23T13:01:36.000Z","size":627,"stargazers_count":410,"open_issues_count":29,"forks_count":113,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-07-31T16:06:11.984Z","etag":null,"topics":["bluetooth","bluetooth-low-energy","python"],"latest_commit_sha":null,"homepage":null,"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/ukBaz.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2016-01-07T11:57:01.000Z","updated_at":"2025-07-18T10:21:03.000Z","dependencies_parsed_at":"2023-01-13T12:27:34.833Z","dependency_job_id":"b5e62c30-09ad-4028-8ab7-56b5a652bcbb","html_url":"https://github.com/ukBaz/python-bluezero","commit_stats":{"total_commits":317,"total_committers":27,"mean_commits":11.74074074074074,"dds":"0.18927444794952686","last_synced_commit":"6db02adc16daeafd913b2cdf3d8e46ad10ccda2b"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/ukBaz/python-bluezero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukBaz%2Fpython-bluezero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukBaz%2Fpython-bluezero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukBaz%2Fpython-bluezero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukBaz%2Fpython-bluezero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ukBaz","download_url":"https://codeload.github.com/ukBaz/python-bluezero/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukBaz%2Fpython-bluezero/sbom","scorecard":{"id":907714,"data":{"date":"2025-08-11","repo":{"name":"github.com/ukBaz/python-bluezero","commit":"9ce1bf664e14f1a174200371680a1d75e94a715c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":2,"reason":"Found 6/26 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pypi-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/python-app.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/ukBaz/python-bluezero/pypi-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi-publish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ukBaz/python-bluezero/pypi-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-app.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ukBaz/python-bluezero/python-app.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-app.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/ukBaz/python-bluezero/python-app.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ukBaz/python-bluezero/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ukBaz/python-bluezero/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/ukBaz/python-bluezero/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/ukBaz/python-bluezero/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/ukBaz/python-bluezero/release.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pypi-publish.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/pypi-publish.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/python-app.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/python-app.yml:26","Warn: pipCommand not pinned by hash: .github/workflows/python-app.yml:27","Warn: pipCommand not pinned by hash: .github/workflows/python-app.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:23","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   7 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:35"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T17:55:44.574Z","repository_id":3360670,"created_at":"2025-08-24T17:55:44.574Z","updated_at":"2025-08-24T17:55:44.574Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272254027,"owners_count":24901036,"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-08-26T02:00:07.904Z","response_time":60,"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":["bluetooth","bluetooth-low-energy","python"],"created_at":"2024-08-31T08:00:23.833Z","updated_at":"2025-08-26T20:31:07.215Z","avatar_url":"https://github.com/ukBaz.png","language":"Python","readme":"===============\npython-bluezero\n===============\n.. image:: https://github.com/ukBaz/python-bluezero/workflows/bluezero-tests/badge.svg\n    :target: https://github.com/ukBaz/python-bluezero/actions?query=workflow%3Abluezero-tests\n    :alt: Build Status\n\n.. image:: https://img.shields.io/pypi/v/bluezero.svg\n   :target: https://pypi.python.org/pypi/bluezero/\n   :alt: PyPI Version\n\n.. image:: https://img.shields.io/pypi/l/bluezero.svg\n   :target: https://github.com/ukBaz/python-bluezero/blob/master/LICENSE\n   :alt: MIT License\n\n.. image:: https://readthedocs.org/projects/bluezero/badge/\n   :target: https://bluezero.readthedocs.io/en/latest/\n   :alt: docs\n\nA simple Python interface to BlueZ stack\n\nName and aim\n============\nThe aim of this library is to provide an API to access to *Bluez* with *zero* boilerplate code.\n\nGoal\n====\nTo provide a simplified API to people that want to use Bluetooth functionality in their code.\nThe library will use calls to the BlueZ D-Bus API and use 'sensible' defaults to help with that simplification.\nIt aims to support the ability to create interesting STEM activities without needing to \nexplain the BlueZ API or write an event loop.\n\nIn addition to the API, it will contain examples of how to connect to common Bluetooth Smart (BLE) objects \naround them (or at least easily accessible to them).\nThese examples will need to be written without the need to sign (or break) non-disclosure agreements.\n\nStatus\n======\nWhile we want this to be easy to use it does not mean it easy to create.\nThis library is still in the early stages so things might change and break. Apologies in advance!\nWe will try to make it as stable as possible. However much of the functionality that is in BlueZ is\nstill flagged as experimental.\nThe library assumes you are using a Linux release with BlueZ 5.50. For example Raspberry Pi OS Buster\n\n\nGetting Started\n===============\nIf you are here for the time, and especially if you are new to Bluetooth Low Energy, then\na tutorial might be a good place to start.\nThe following tutorial has been created based on the readily available hardware of\na Raspberry Pi and a micro:bit. More details available at:\nhttps://ukbaz.github.io/howto/ubit_workshop.html\n\nExamples\n========\nThere are some other examples in the library if you are feeling adventurous\n\nAdapter\n-------\n\nadapter_example.py\n******************\nThis will check that it can find the Bluetooth adapter on the computer running the code.\nIt will print to screen various information and check it is powered before scanning for\nnearby devices\n\nGATT Client (Central role)\n--------------------------\n\nmicrobit_poll.py\n****************\nThis example uses the micro:bit API that has been written in bluezero.\nYou will need a buzzer attached to pin 0 to get play_beep to work.\n\nBeacon\n------\n\neddystone_url_beacon.py\n***********************\nA Simple Eddystone URL beacon.\nYou can be read the URL being broadcast with any Physical Web application on your Phone\n\nScanner\n-------\n\neddystone_scanner.py\n********************\n\nThis example scans for beacons using the common beacon formats of Eddystone URL,\nEddystone UID, AltBeacon and iBeacon.\n\nGATT Server (Peripheral role)\n-----------------------------\nYou will need to have modified the dbus configuration\nfile to open the permissions for 'ukBaz.bluezero'. This is covered in the\nSystem Setup section of the documentation\n\ncpu_temperature.py\n******************\n\nThis example transmits the temperature of the CPU over the single characteristic.\nThe method `get_cpu_temperature()`\nfunction creates randomly generated temperature values.\nValues are only updated when notification are switched on.\n\nble_uart.py\n-----------\n\nThis example simulates a basic UART connection over two lines, TXD and RXD.\n\nIt is based on a proprietary UART service specification by Nordic Semiconductors.\nData sent to and from this service can be viewed using the nRF UART apps from Nordic\nSemiconductors for Android and iOS.\n\nIt uses the Bluezero peripheral file (level 10) so should be easier than the previous CPU\nTemperature example that was a level 100.\n","funding_links":[],"categories":["编程","🐍 Python"],"sub_categories":["Python","🐍 Python Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FukBaz%2Fpython-bluezero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FukBaz%2Fpython-bluezero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FukBaz%2Fpython-bluezero/lists"}