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.4.0 (2023-04-30)
Add support for Python 3.11
2.3.0 2022-11-02
Add py.typed file to package to support Mypy type checking.
Refactor the project into an installable package rather than an installable module.
Drop support for Python 3.7
2.2.0 2021-11-06
Support Python 3.10 and drop 3.6.
2.1.0 2020-12-27
Drop Python 3.5 and support Python 3.9.
Switch to GitHub Actions for CI.
2.0.1 2020-04-26
Update LICENSE file.
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
Hashes for exitstatus-2.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a03890061fc75b39b7494f684c3542132e9d91a4eb778427d1a2422d7c960cca |
|
MD5 | 28128af9acbb4e7cc4b80832a998f05f |
|
BLAKE2b-256 | 7be835bd3f90eed8453551b8b15034b640e0dd8951c27c44f22dd70ebd774dd5 |