Helpers for handling SIGTERM/SIGINT and draining work before exit.
I wanted something I could read in one sitting and vendor into a project if needed.
pip install signal-utilsfrom signal_utils import signalUtils
result = signalUtils("example")
print(result)- No runtime dependencies outside the standard library.
- Tested on Python 3.9 and newer.
MIT