Skip to main content

Haptic/BLE emergency-stop helper: guaranteed shutdown callbacks.

Project description

buzzkill

Guaranteed emergency-stop helper for Python. Wrap critical sections so a user-supplied shutdown callback always runs — on normal exit, on exception, or on SIGINT. Planned roadmap includes BLE device registry and haptic feedback for real hardware kill-switches.

Install

pip install buzzkill

Usage

from buzzkill import EmergencyStop

stopped = []

def cut_power():
    stopped.append("power_cut")

with EmergencyStop(cut_power):
    # work that must never leave hardware/live state dangling
    pass

assert stopped == ["power_cut"]

Roadmap

This is an early 0.1.0 release with active development planned:

  • BLE device registry for pairing emergency-stop hardware
  • Haptic / status feedback hooks
  • Cross-platform signal coverage refinements

Author

Coldbricks — coldbricks@gmail.com

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

buzzkill-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

buzzkill-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file buzzkill-0.1.0.tar.gz.

File metadata

  • Download URL: buzzkill-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for buzzkill-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4c42ba057915e2ce5bb8a37007c1ee348115f8b627c6ef2786141fb2767d1c6d
MD5 79d9389050af75d27c73dc6607c2acec
BLAKE2b-256 cdadc61e23099992c4f997125ba46e934a1e2026af70d1123904f6d5d2b0fff3

See more details on using hashes here.

File details

Details for the file buzzkill-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: buzzkill-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for buzzkill-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2abf6c87b47b34a6b112990ca2f5aabbdb679a1dd6058c3bb964ecfc45e7c4e3
MD5 d541c05a78d12cf98d0c99ec002f4fa8
BLAKE2b-256 801037053d564159be6fe77a00777d054bb405a57128bdada416c9afb52e9ece

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