aerial
A Python library for receiving Unix style signals.
This library is meant to be a simple way to deal with handling signals, while avoiding callbacks.
Install it with pip
pip install aerial
A simple use looks like this:
>>> import time
>>> import signal
>>>
>>> import aerial
>>> def main_loop():
... while not aerial.received(signal.SIGTERM):
... if aerial.received(signal.SIGHUP):
... print('Got a SIGHUP')
... time.sleep(.5)
... print('See you later')
...
>>>
And try out the demo by running the module.
python -m aerial
[ PID 10852 ] Hello, send me a SIGTERM to exit, or a SIGHUP for a trick # In another terminal
[ PID 10852 ] Neat huh? # kill -SIGHUP 10852
[ PID 10852 ] See you later # kill -SIGTERM 10852
Metadata
Release files for aerial 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aerial-0.1.0.tar.gz | 20.1 kB | Without provenance | Details for aerial-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aerial-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for aerial-0.1.0-py2.py3-none-any.whl |
Total release size: 25.0 kB
Release files / aerial-0.1.0.tar.gz
| Download URL | aerial-0.1.0.tar.gz |
|---|---|
| Size | 20.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52bb9e736dababdb2d273d2c7dfe8f2d43c2f2a57cd0f1c83e15c6043c4cf151
|
|
BLAKE2b-256 checksum How to use checksums |
41cd8610c0ce071735e8ccc81b7ac43e1126508e4c8d32e1cc4dcb821286df7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14
|
Release files / aerial-0.1.0-py2.py3-none-any.whl
| Download URL | aerial-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
12c936ed89ad0d0f64f30f2f46abc18fd12d3bc5ecd635815d3268e3008ba56b
|
|
BLAKE2b-256 checksum How to use checksums |
03e6a1da60ba51e86070a6c30d62538f9d61e139414b7dff921b9e0372e219c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14
|
Security for aerial 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.