Skip to main content

POSIX exit status codes

Project description

exitstatus — POSIX exit status definitions

GitHub Actions uv Nox Ruff Type checked with mypy PyPI version PyPI status PyPI pyversions

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 add exitstatus to your project with uv using:

uv add exitstatus

Usage

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

import sys
from exitstatus import ExitStatus

sys.exit(ExitStatus.success)

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: exitstatus-2.7.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for exitstatus-2.7.0.tar.gz
Algorithm Hash digest
SHA256 ced16dbada1ed9f3c58854457235275aae29fec81e21c410b8bb9dbed497d034
MD5 b231b9558e88ad9eb159334070e0950f
BLAKE2b-256 01ba8f33f3f584ca5d278c574af9514134728d9d01c394331d822fa17202e453

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exitstatus-2.7.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for exitstatus-2.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31ca7bf08a92cb1a511fe080b426a90331007707dfb39844fc47441755f1242b
MD5 d66d4fc9d5951d5016f4a29074889f6b
BLAKE2b-256 777998e989d4fa30cbcd2c3b99478d5d44cc0c4f124c59a24e8a674268912c65

See more details on using hashes here.

Supported by

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