Skip to main content

Python version Build Status

exit_codes

Platform-independent exit codes.

Python provides standard exit status codes for some platforms, but not all. This is technically, pedantically correct, but it makes it awkward to provide practical cross-platform exit statuses. This package takes the exit status codes defined in os for Unixes and make them available to the unwashed masses.

It’s simple to use:

from exit_codes import ExitCode

def main():
    if big_operation():
        # If your program exits normally, return OK
        return ExitCode.OK
    else:
        # Otherwise, return the appropriate error code
        return ExitCode.IO_ERR

Release files for exit-codes 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exit-codes 1.3.0
File Size Uploaded
exit_codes-1.3.0.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for exit-codes 1.3.0
File Interpreter ABI Platform
exit_codes-1.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 8.5 kB

Release files / exit_codes-1.3.0.tar.gz

Download URL exit_codes-1.3.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8fe3a056be6cbc530d59d9ad9bdc1771d8cff7d9ac7386a0c39b517a8ae52b3e
BLAKE2b-256 checksum
How to use checksums
f8201a8671601b459a8388185ee29f98cee5965a94aeaccc6b9c926f4afec4dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.8.0a3+

Release files / exit_codes-1.3.0-py2.py3-none-any.whl

Download URL exit_codes-1.3.0-py2.py3-none-any.whl
Size 4.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
09444844772043f9be22128856088792be0f91cdbe269af992b1338a5464dc85
BLAKE2b-256 checksum
How to use checksums
fa075dc359aba858ec096bd9e72c4a214617c95da24553a736bcce7818a61486
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.8.0a3+

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page