POSIX exit status codes
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.
You can install, upgrade, and uninstall exitstatus with these commands:
$ pip install exitstatus $ pip install --upgrade exitstatus $ pip uninstall exitstatus
Exit status codes are defined in a simple to use IntEnum.
import sys from exitstatus import ExitStatus sys.exit(ExitStatus.success)
Support Python 3.6.
Add docstrings and simplify checking for enum34 dependency need.