Platform-independent exit codes.
Project description
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
Close
Hashes for exit_codes-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3c55db7aa2461f51186a117a862710359e9ac6713246f8667763eeaf89cbfdc |
|
MD5 | f719227b8f49727db2fec107e688aa74 |
|
BLAKE2b-256 | 8c4cb954416e850244a60bfebab58b63302cc54b3cdd5385b672ca1bd435549a |