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.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.2.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

exitstatus-2.2.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: exitstatus-2.2.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

File hashes

Hashes for exitstatus-2.2.0.tar.gz
Algorithm Hash digest
SHA256 89f638e9b3361b8b57fb9e716e918cc947decd15bf10af9b2d9ad85c23096480
MD5 65cdb81464751d57052b8bfd099f3aab
BLAKE2b-256 039cdb714bb2a2121fc878ceb1a912567330e8491e744770b13ba90278af6e69

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: exitstatus-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

File hashes

Hashes for exitstatus-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 977b69ba4d2147e112fdc0661cac1541c5639f7b116c51f12dedc48f4dffcc8b
MD5 71a2488c2dae817c457e557d82720695
BLAKE2b-256 e45213ea54d2d9fb6ac8d81d8d542503140051f4002eae6068ddd5da24434284

See more details on using hashes here.

Provenance

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