Registry / serialization / exit-codes

exit-codes

JSON →
library1.3.0pypypi✓ verified 84d ago

Platform-independent exit codes for Python. Provides a comprehensive mapping of standardized exit codes (e.g., EX_OK, EX_USAGE, EX_SOFTWARE) based on POSIX and common system conventions. Current version 1.3.0; stable with infrequent releases.

pip install exit-codes
INSTALL
IMPORT
SIG · EXIT-CODES
E
exit-codes
serializationpythonv1.3.0
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ExitCode
from exit_codes import ExitCode
import exit_codes
exit_codes
from exit_codes import exit_codes
import exit_codes
ExitCodeError
from exit_codes import ExitCodeError
import exit_codes

Use exit codes from the module for platform-independent script exits.

import sys import exit_codes sys.exit(exit_codes.EX_USAGE) # exits with code 64
Debug
Known issues
gotchaThe library does not provide reverse lookups (e.g., getting name from code). All exit codes are integer constants.
fix
If you need reverse lookup, maintain your own mapping.
affects: >=1.0.0
gotchaThe module name uses a hyphen in PyPI but an underscore in Python: `import exit_codes` (not `exit-codes`).
fix
Use `import exit_codes` in code.
affects: >=1.0.0
deprecatedSome constants like EX_TEMPFAIL are defined but may be platform-specific and not always available.
fix
Check if the constant exists before using via `hasattr(exit_codes, 'EX_TEMPFAIL')`.
affects: >=1.0.0
Upgrade
Version history
1.3.0latest on PyPI · released Jul 9, 2019
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
exit-codes — pip install exit-codes · libregistry