POSIX exit status codes
Project description
exitstatus provides expressive, portable definitions for the standard POSIX exit codes. While Python does provide some Unix-specific exit status codes in the os module, they are not portable to all platforms and are missing the generic failure case.
Installation
You can install, upgrade, and uninstall exitstatus with these commands:
$ pip install exitstatus
$ pip install --upgrade exitstatus
$ pip uninstall exitstatus
On Python 3.4+, the standard library enum is used, on older versions enum34 is installed as a dependency.
Usage
Exit status codes are defined in a simple to use IntEnum.
import sys
from exitstatus import ExitStatus
sys.exit(ExitStatus.success)
Releases
1.4.0 2019-12-14
Drop Python 3.4 and support Python 3.8.
Include license file.
1.3.0 - 2018-07-09
Drop Python 3.3 and support Python 3.7.
1.2.0 - 2016-12-31
Support Python 3.6.
1.1.0 - 2016-10-11
Add docstrings and simplify checking for enum34 dependency need.
1.0.0 - 2016-06-10
Initial release.
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
Built Distribution
File details
Details for the file exitstatus-1.4.0.tar.gz
.
File metadata
- Download URL: exitstatus-1.4.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bed9d703671fb134b254c49c5751bfdd92cafd0c9c47ee3e8cd97b5684027b34 |
|
MD5 | 0e088de1ad4d83623da46d2438b6720f |
|
BLAKE2b-256 | 357acae84c0a24a5d9ab0e15865622b5f3143a368a8b6182d8e04859f0a1aa70 |
Provenance
File details
Details for the file exitstatus-1.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: exitstatus-1.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d2fc4cc1c20c3b775e979e24f6db328bd8c933d228809937fbf43988e38f12d |
|
MD5 | e596f3ae39e6d444d630d1d617ad6833 |
|
BLAKE2b-256 | 66e68a9f556dac51a43a6e5a96cf222ee8b18d96b612d7db01cedc5c657bcaec |