Query Unix signals
Project description
SignalsDB is an MIT-licensed library written in Python providing a simple way to query a curated database of Unix signals.
Usage:
To explain a Unix signal based on the integer id:
>>> from signalsdb.api import explain >>> explain(13) {'action': 'kill', 'description': 'write on a pipe with no reader', 'id': 13, 'signal': 'SIGPIPE'}
Then to query the signals DB based on the signal name or action in a case insensitive way using regexes:
>>> from signalsdb.api import search >>> search(signal='sigp\w', action='kill') [{'action': 'kill', 'description': 'write on a pipe with no reader', 'id': 13, 'signal': 'SIGPIPE'}, {'action': 'kill', 'description': 'profiling timer alarm', 'id': 27, 'signal': 'SIGPROF'}]
Installation:
From PyPI:
$ pip install signalsdb
For hacking on SignalsDB it is recommended that you install from the git repository:
$ git clone git@github.com:eugene-eeo/signalsdb.git $ cd signalsdb $ pip install .
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
signalsdb-0.1.tar.gz
(3.6 kB
view details)
File details
Details for the file signalsdb-0.1.tar.gz
.
File metadata
- Download URL: signalsdb-0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6050a6de2cf64ea46c291bac262500095145188c94ec7323f2e21a351d6e299a |
|
MD5 | b34be800b8be6f1e98c28a66223fdd76 |
|
BLAKE2b-256 | 77addee89d2f6b1f81fa460c8af1057958d2c2df5b49ff1ee0d7a699d415cd47 |