Skip to main content

Platform-independent exit codes.

Project description

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:

import exit_codes

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

exit_codes-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file exit_codes-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for exit_codes-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3c55db7aa2461f51186a117a862710359e9ac6713246f8667763eeaf89cbfdc
MD5 f719227b8f49727db2fec107e688aa74
BLAKE2b-256 8c4cb954416e850244a60bfebab58b63302cc54b3cdd5385b672ca1bd435549a

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