Skip to main content

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


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)

Uploaded Source

Built Distribution

print_err-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page