{"id":51891425,"url":"https://github.com/coldbricks/buzzkill","last_synced_at":"2026-07-26T04:30:23.455Z","repository":{"id":372753726,"uuid":"1309175162","full_name":"coldbricks/buzzkill","owner":"coldbricks","description":"Haptic/BLE emergency-stop helper: guaranteed shutdown callbacks.","archived":false,"fork":false,"pushed_at":"2026-07-22T19:20:25.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-23T07:04:07.803Z","etag":null,"topics":["coldbricks","context-manager","emergency-stop","pypi","python","shutdown","signals","typed","zero-dependency"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/buzzkill/","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/coldbricks.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2026-07-22T19:18:54.000Z","updated_at":"2026-07-22T19:20:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/coldbricks/buzzkill","commit_stats":null,"previous_names":["coldbricks/buzzkill"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/coldbricks/buzzkill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldbricks%2Fbuzzkill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldbricks%2Fbuzzkill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldbricks%2Fbuzzkill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldbricks%2Fbuzzkill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coldbricks","download_url":"https://codeload.github.com/coldbricks/buzzkill/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coldbricks%2Fbuzzkill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35901460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-26T02:00:06.503Z","response_time":89,"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":["coldbricks","context-manager","emergency-stop","pypi","python","shutdown","signals","typed","zero-dependency"],"created_at":"2026-07-26T04:30:22.488Z","updated_at":"2026-07-26T04:30:23.450Z","avatar_url":"https://github.com/coldbricks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# buzzkill\n\n[![PyPI](https://img.shields.io/pypi/v/buzzkill.svg)](https://pypi.org/project/buzzkill/)\n[![Python Versions](https://img.shields.io/pypi/pyversions/buzzkill.svg)](https://pypi.org/project/buzzkill/)\n[![CI](https://github.com/coldbricks/buzzkill/actions/workflows/ci.yml/badge.svg)](https://github.com/coldbricks/buzzkill/actions)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\nGuaranteed emergency-stop helper for Python. Wrap critical sections so a user-supplied shutdown callback always runs — on normal exit, on exception, or on SIGINT.\n\n## Install\n\n```bash\npip install buzzkill\n```\n\n## Quickstart\n\n```python\nfrom buzzkill import EmergencyStop\n\nstopped = []\n\ndef cut_power():\n    stopped.append(\"power_cut\")\n\nwith EmergencyStop(cut_power):\n    # work that must never leave hardware/live state dangling\n    pass\n\nassert stopped == [\"power_cut\"]\n```\n\n## Why this exists\n\n- Hardware and live sessions must never leave power/state dangling after Ctrl-C\n- One callback, fired at most once, even if nested or re-entered\n- Works as a context manager or via the `buzzkill()` factory\n\n## API\n\n| Symbol | Description |\n|--------|-------------|\n| `EmergencyStop` | Context manager; guarantees shutdown callback |\n| `buzzkill(shutdown)` | Factory returning an `EmergencyStop` |\n| `EmergencyStop.fire()` | Invoke the callback at most once |\n\n## Related packages\n\nPart of the coldbricks micro-library suite (small, typed, zero-dependency helpers):\n\n| Package | Role |\n|---------|------|\n| **buzzkill** | Guaranteed shutdown callbacks |\n| [`aftercare`](https://github.com/coldbricks/aftercare) | Reverse-order teardown |\n| [`fluffer`](https://github.com/coldbricks/fluffer) | Startup pre-warm |\n| [`edging`](https://github.com/coldbricks/edging) | Token-bucket rate limit |\n| [`readback`](https://github.com/coldbricks/readback) | Echo-confirmation validation |\n| [`hearback`](https://github.com/coldbricks/hearback) | Output re-validation decorator |\n| [`agecheck`](https://github.com/coldbricks/agecheck) | Timezone-correct age thresholds |\n| [`transponder`](https://github.com/coldbricks/transponder) | State broadcast on change |\n\n## Development\n\n```bash\npip install -e \".[dev]\"\npytest -q\nruff check .\nmypy src\n```\n\n## Roadmap\n\nThis is an early **0.1.0** release (Alpha) with active development planned:\n\n- BLE device registry for pairing emergency-stop hardware\n- Haptic / status feedback hooks\n- Cross-platform signal coverage refinements\n\n## License\n\nMIT © Coldbricks — coldbricks@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoldbricks%2Fbuzzkill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoldbricks%2Fbuzzkill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoldbricks%2Fbuzzkill/lists"}