Skip to main content

POSIX exit status codes

Project description

https://travis-ci.org/johnthagen/exitstatus.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

On Python 3.4+, the standard library enum is used, on older versions enum34 is installed as a dependency.

Usage

Exit status codes are defined in a simple to use IntEnum.

import sys
from exitstatus import ExitStatus

sys.exit(ExitStatus.success)

Releases

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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: exitstatus-1.4.1.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

Hashes for exitstatus-1.4.1.tar.gz
Algorithm Hash digest
SHA256 8344fcbf1bcca6bd086d0e8f2d0963300fede881ef7000ff9d942ae8bf39ed1a
MD5 bd6f6809bf85f70a4522c9dc87fec4cd
BLAKE2b-256 8565abfeaa86c7e391023837b597a88f344ba71f20b9539dc50f9131407df76d

See more details on using hashes here.

Provenance

File details

Details for the file exitstatus-1.4.1-py2.py3-none-any.whl.

File metadata

  • Download URL: exitstatus-1.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 2, 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

Hashes for exitstatus-1.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4ecef584f75927cebceff1f893ef1d2cdb422b8bf5377d25939fcc128694a484
MD5 1773563be62f8fad025f11f542cb5f7f
BLAKE2b-256 1834bab6f8ed89115ecffd2a9071498ed2d2258c8d95e771f3293a2a5ee75f9d

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