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
Usage
Exit status codes are defined in a simple to use IntEnum.
import sys
from exitstatus import ExitStatus
sys.exit(ExitStatus.success)
Releases
2.0.0 2020-03-29
Drop Python 2.7 support.
1.4.1 2020-03-29
Add python_requires field to setup.py.
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-2.0.0.tar.gz
.
File metadata
- Download URL: exitstatus-2.0.0.tar.gz
- Upload date:
- Size: 3.2 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 | 17780fd252ccb34e10e4bfb72ff0041213550ebb32797d8d59f2e65b899ac048 |
|
MD5 | e6031b7a97366b201c519cd46e60429f |
|
BLAKE2b-256 | 1b8c0193c33b54c1d4a52d2aa68fd3f91ec2c70ac408c3e5d68df11086e33b90 |
Provenance
File details
Details for the file exitstatus-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: exitstatus-2.0.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: 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 | 5765d08a5d7feac95f60b93a71af5c4743fed0a2fb7899410bf1b97c2cbb086b |
|
MD5 | 09f406daffd503e992489de9c13b446a |
|
BLAKE2b-256 | d4e4ed1bd41d38b10ff0431b69aadbb80048554e16b2c195b29cc043d0c3fede |