Skip to main content

POSIX exit status codes

Project description

https://github.com/johnthagen/exitstatus/workflows/python/badge.svg https://codeclimate.com/github/johnthagen/exitstatus/badges/gpa.svg https://codeclimate.com/github/johnthagen/exitstatus/badges/issue_count.svg https://codecov.io/github/johnthagen/exitstatus/coverage.svg https://img.shields.io/pypi/v/exitstatus.svg https://img.shields.io/pypi/status/exitstatus.svg https://img.shields.io/pypi/pyversions/exitstatus.svg

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.6.0 (2024-10-26)

  • Drop support for Python 3.8

  • Add support for Python 3.13

2.5.0 (2024-01-13)

  • Add support for Python 3.12

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exitstatus-2.6.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

exitstatus-2.6.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file exitstatus-2.6.0.tar.gz.

File metadata

  • Download URL: exitstatus-2.6.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for exitstatus-2.6.0.tar.gz
Algorithm Hash digest
SHA256 ec393131186d96dcfaa76c4042c8370b7eefb986d9886169bad72a57a820be6e
MD5 5e61b2faddd7108f588d58a4b669c986
BLAKE2b-256 d2a843c7b4496d66844e0b882489587bf2e321e84fbfdfa7165c36c964e60feb

See more details on using hashes here.

File details

Details for the file exitstatus-2.6.0-py3-none-any.whl.

File metadata

  • Download URL: exitstatus-2.6.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for exitstatus-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c05d04714560dc820a95f5c1e3917301d0e82d1ff6f29340f4f5e49e30c8212
MD5 10ce80c8130715b75ded0fb08c9da20a
BLAKE2b-256 d9b9cff88786c72dd0a4d6fe6a889f45a088c1c13685b20ef733e9b6870caeb3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page