https://github.com/rumpelsepp/exitcode
Preferred system exit codes as defined by sysexits.h
https://github.com/rumpelsepp/exitcode
exitcode python
Last synced: 6 months ago
JSON representation
Preferred system exit codes as defined by sysexits.h
- Host: GitHub
- URL: https://github.com/rumpelsepp/exitcode
- Owner: rumpelsepp
- License: mit
- Created: 2023-02-20T12:46:24.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-01T01:55:15.000Z (almost 2 years ago)
- Last Synced: 2025-05-10T17:48:04.012Z (8 months ago)
- Topics: exitcode, python
- Language: Python
- Homepage:
- Size: 208 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# exitcode
Preferred system exit codes as defined by [`sysexits.h`](https://man.openbsd.org/sysexits).
This library is inspired by this [rust library](https://docs.rs/exitcode).
## Example
All constants from the manpage [sysexits(3)](https://man.openbsd.org/sysexits) are available without the `EX_` prefix.
``` python
import exitcode
import sys
sys.exit(exitcode.OK)
```