This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

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.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.

Release History

Release History

This version
History Node

1.2.0

History Node

1.1.0

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
exitstatus-1.2.0.tar.gz (2.3 kB) Copy SHA256 Checksum SHA256 Source Dec 31, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting