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 details)
Built Distribution
File details
Details for the file print_err-0.0.1.tar.gz
.
File metadata
- Download URL: print_err-0.0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e369c9081cf4ce90e60abd8343a039922c267f56efebcd12effc00cce49de6b |
|
MD5 | 2d57ac576926c79c763c7307fe9373b8 |
|
BLAKE2b-256 | d4e17999003e349ac12ce86ab022b409bc2aa5a547fad654f98c1d052283ff91 |
File details
Details for the file print_err-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: print_err-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc16434c7f8f4d18f242cafe884966eeeac1c14f3db271eb053004b698809e4e |
|
MD5 | d530d959e0cb5bebea2a962b37061ebd |
|
BLAKE2b-256 | 0e3b3772333bb079d6a2ffb44060f33fe6c733b888f853b55181f21afa05ab2a |