Print to standard error optionally exiting with a code
Project description
print_err
Command line utility and python library to print to standard error optionally exiting with a code.
Install
pip install print_err
Usage
As a python function
from print_err import print_err
print_err("This messages goes to stderr")
print_err("This messages goes to stderr", exit_code=2)
As a command line utility
$ print_err "print to stderr and exit() with code 2" 2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
print_err-0.0.1.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for print_err-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc16434c7f8f4d18f242cafe884966eeeac1c14f3db271eb053004b698809e4e |
|
MD5 | d530d959e0cb5bebea2a962b37061ebd |
|
BLAKE2b-256 | 0e3b3772333bb079d6a2ffb44060f33fe6c733b888f853b55181f21afa05ab2a |