exitstatus
POSIX exit status codes
Decision gist · record as of 2026-08-14
Yes. If you write command-line tools or scripts that need to signal exit status to the operating system, this package eliminates the friction of remembering or looking up POSIX codes. It has no dependencies, is actively maintained, carries a permissive license, and supports current Python versions. The cost of adoption is negligible.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction installation with no runtime dependencies.
- Actively maintained as of 2026-01-01, with recent commits and Production/Stable status.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) allows use in commercial and open-source projects with minimal restrictions.
last release 2026-01-01 (225 days) · last repo commit 2026-03-05 · 9 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 293,683 downloads/mo, #7,951 on PyPI
Alternatives
Verify before relying
import sys
from exitstatus import ExitStatus
sys.exit(ExitStatus.success)- Whether the package covers all standard POSIX exit codes or a subset of them.
- What specific exit codes are available beyond success (e.g., failure, usage error, etc.).
What it is and what it does
exitstatus wraps POSIX standard exit codes in a typed IntEnum, making them portable and expressive across platforms. Python's os module provides some Unix-specific exit codes but lacks portability and the generic failure case; exitstatus fills that gap with clean, standard definitions you can pass directly to sys.exit().
The package is minimal and dependency-free, designed for scripts and applications that need to signal completion status to their operating environment. It supports Python 3.10 through 3.14 and is type-checked with mypy, making it suitable for both simple CLI tools and larger applications that care about exit semantics.
Use it for
- Exit a CLI tool with a standard POSIX code to signal success or specific failure modes to the shell.
- Write cross-platform Python scripts that use portable exit codes instead of platform-specific constants.
- Build type-safe application exit logic where exit codes are defined as named enum members rather than magic integers.
- Integrate exit status handling into test runners or deployment scripts that depend on exit codes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
If you write command-line tools or scripts that need to signal exit status to the operating system, this package eliminates the friction of remembering or looking up POSIX codes. It has no dependencies, is actively maintained, carries a permissive license, and supports current Python versions. The cost of adoption is negligible.
Install
exitstatus on PyPI
Before you install
Low friction installation with no runtime dependencies. Actively maintained as of 2026-01-01, with recent commits and Production/Stable status.
Requires Python 3.10 or later.
License in practice
MIT license (permissive) allows use in commercial and open-source projects with minimal restrictions.
Quickstart
import sys
from exitstatus import ExitStatus
sys.exit(ExitStatus.success)
Verify before relying
- Whether the package covers all standard POSIX exit codes or a subset of them.
- What specific exit codes are available beyond success (e.g., failure, usage error, etc.).
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 225 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 293,683 / month, #7,951 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed |
Evidence: exitstatus-2.7.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “POSIX exit codes”
- exitstatusProvides portable, type-safe POSIX exit status code definitions as an…
- exit-codesProvides platform-independent exit codes for Python programs, making…
- pytest-custom-exit-codeA pytest plugin that lets you customize the exit code pytest returns…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also exit-codes · pylint-exit · ntstatus · lib-cli-exit-tools · python-status · backports.strenum · nox · cli-exit-tools · nox-uv · aenum