exit-codes
Platform-independent exit codes.
Decision gist · record as of 2026-08-14
Yes, if you need cross-platform exit codes and can accept that the package is no longer maintained. The library is simple, has no dependencies, and the exit code constants are unlikely to change. Install it only if you're comfortable with a frozen codebase and confident the constants match your needs; for new projects, consider whether you can define your own exit codes or use a more actively maintained alternative.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is frictionless with no runtime dependencies and a pure-Python wheel distribution.
- However, the package has been abandoned since 2019 with no updates in over six years, so it will not receive bug fixes or maintenance.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and places no restrictions on use, modification, or distribution in commercial or private projects.
last release 2019-07-09 (2593 days) · last repo commit 2020-12-07 · 6 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 362,171 downloads/mo, #7,234 on PyPI
Alternatives
Verify before relying
from exit_codes import ExitCode
if operation_succeeds():
exit(ExitCode.OK)
else:
exit(ExitCode.IO_ERR)- Whether the exit code constants match current Unix standards or have diverged since the last 2019 release
- Compatibility with modern Python versions beyond what the unspecified support statement indicates
What it is and what it does
exit_codes is a minimal library that exposes Unix-style exit status codes as Python constants, solving the problem that Python's os module only provides these codes on Unix platforms. It lets you write portable scripts that return meaningful exit codes across Windows, macOS, and Linux without platform-specific conditionals.
The package is straightforward: import ExitCode and use its attributes (OK, IO_ERR, and others) in your main() function or script exit logic. It has no runtime dependencies and installs as a pure Python wheel, making it lightweight. However, the project has not been updated since July 2019 and is marked abandoned, so it will not receive maintenance or adapt to future Python changes.
Use it for
- CLI tools that need to return standard exit codes consistently across Windows and Unix systems
- Scripts that wrap system utilities and must propagate meaningful exit statuses to calling processes
- Testing frameworks or build tools that rely on exit codes to signal success or specific failure modes
- Cross-platform Python applications where exit code semantics matter to shell scripts or CI/CD pipelines
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need cross-platform exit codes and can accept that the package is no longer maintained.
The library is simple, has no dependencies, and the exit code constants are unlikely to change. Install it only if you're comfortable with a frozen codebase and confident the constants match your needs; for new projects, consider whether you can define your own exit codes or use a more actively maintained alternative.
Install
exit-codes on PyPI
Before you install
Installation is frictionless with no runtime dependencies and a pure-Python wheel distribution. However, the package has been abandoned since 2019 with no updates in over six years, so it will not receive bug fixes or maintenance.
License in practice
MIT license is permissive and places no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
from exit_codes import ExitCode
if operation_succeeds():
exit(ExitCode.OK)
else:
exit(ExitCode.IO_ERR)
Verify before relying
- Whether the exit code constants match current Unix standards or have diverged since the last 2019 release
- Compatibility with modern Python versions beyond what the unspecified support statement indicates
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,593 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 362,171 / month, #7,234 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaOperating System :: OS IndependentProgramming Language :: Python |
Evidence: exit_codes-1.3.0-py2.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 › “cross-platform exit codes”
- exit-codesProvides platform-independent exit codes for Python programs, making…
- exitstatusProvides portable, type-safe POSIX exit status code definitions as an…
- 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 exitstatus · pylint-exit · python-status · lib-cli-exit-tools · python-yakh · ntstatus · pytest-custom-exit-code · filelock · lockfile · oschmod