Skip to main content

Suppress command output on success

Project description

pyronic

Run a program and silence its output, unless it fails.

Usage

usage: pyronic [-h] [-V] [-v] [-s] ...

positional arguments:
  command

optional arguments:
  -h, --help      show this help message and exit
  -V, --version   show program's version number and exit
  -v, --verbose   Include additional output on failure
  -s, --separate  Separate stdout/stderr rather than combining

Background

pyronic is a replacement for chronic.

One key difference is that pyronic, in its default mode, will preserve the relative order of the lines written by program to stdout and stderr. Some programs aren't consistent in printing to stdout or stderr, and this order can make errors much eaiser to comprehend.

$ chronic ./test/interleave
1 stdout
2 stdout
4 stdout
7 stdout
9 stdout
3 stderr
5 stderr
6 stderr
8 stderr

$ pyronic ./test/interleave
1 stdout
2 stdout
3 stderr
4 stdout
5 stderr
6 stderr
7 stdout
8 stderr
9 stdout

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

pyronic-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file pyronic-0.1.1.tar.gz.

File metadata

  • Download URL: pyronic-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyronic-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c047a63d3721a23afb6ad6954365936318ddf1c155f9246541d09e9a0cecde27
MD5 78972c2546abb3db9726941ed25f6ddf
BLAKE2b-256 3258f015e14ee5efa572395ba81ed777f6e16eb6e9068f51edbd02b76f4631cd

See more details on using hashes here.

Supported by

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