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.0.tar.gz (2.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: pyronic-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 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.0.tar.gz
Algorithm Hash digest
SHA256 70f44f149cc39f5edced4231cc8707643c205aa76ded48ae435f17fdc9a622c4
MD5 f6eb28ed3981096bc00cb0c86421408e
BLAKE2b-256 c468f6731ec1183f75a2a94e0e9f043c604acdd01b0a2f6105fc1ea2ab2a6b96

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