register function to be executed at termination
Project description
Install
$ [sudo] pip install exit
Features
- better than
atexit.register
SIGKILL
,SIGSTOP
oros._exit()
not supported
Functions
function | description |
---|---|
exit.register(func=None, signals=[<Signals.SIGTERM: 15>]) |
Register a function which will be executed on exit |
Examples
>>> import exit
>>> def on_exit():
print("goodbye world")
>>> exit.register(on_exit)
Links
readme-md - README.md generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
exit-2018.11.19.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for exit-2018.11.19-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74d395f4333e0a5e49a42febfe8f1f9bf0cdf6092f992fe94ff384a65b36b8c7 |
|
MD5 | db4388a1a5f91399edf53f25c69b7ef4 |
|
BLAKE2b-256 | 31915378a4ff9ddadc671f4f117650c20df355410b25b8f1d25b4ab028dffc27 |