Data visualization in the terminal.
Install
From PyPI:
easy_install viz
From source:
git clone https://github.com/chbrown/viz.git cd viz python setup.py install
The CLI entry point is viz, which should be installed on your PATH.
Commands
viz hist
Read floats from stdin and plot as a single line histogram.
Example: ping google every 100ms (0.1s) and plot the first 50 response times you get back:
ping -i 0.1 google.com | head -50 | sed -n 's/.*time=\(.*\) ms/\1/p' | viz hist
Example result (which should fit your terminal width automatically):
26.1390000[▁ ▁▁ ▁▁▂▂ ▉ ▂▂ ▃ ▂▁▂ ▁ ▁▁ ▁ ▁ ]39.5580000
viz total
Read floats from stdin and sum them. No graphics, but useful because awk '{sum+=$1}END{print sum} is too long.
Example: count the bytes used by the current directory and its children.
find . -ls | tr -s ' ' | cut -d ' ' -f 7 | viz total
Example result:
8519086.0
Compare to du:
echo $[$(du -sk . | cut -f 1) * 1024] > 8531968
viz points
Read floats from stdin, plot on a single line from left to right with as much granularity as the terminal will allow. Otherwise, bin incrementally and plot the arithmetic mean of each bin.
Example: ping some really awful website every 100ms, plot the first 100 successful responses (takes about 10s).
ping -i 0.1 godaddy.com | head -100 | sed -n 's/.*time=\(.*\) ms/\1/p' | viz points
Example result:
[+156.298000] ▃▃ ▁▃ ▁ ▁▁ ▁ ▁ ▁▁▁▂ ▃▂ ▉▂ ▁ ▁▁ ▁▂▁ ▁ ▁ ▁ ▁ [+70.593000]
The top line is the maximum, the bottom is the minimum. The other values are scaled linearly between those extremes.
Dependencies:
numpy
License
Copyright (c) 2013 Christopher Brown. MIT Licensed.
Metadata
Release files for viz 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| viz-0.0.5.tar.gz | 7.3 kB | Without provenance | Details for viz-0.0.5.tar.gz |
Release files / viz-0.0.5.tar.gz
| Download URL | viz-0.0.5.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc47a0678f49336772271695c8a057edb6d75c63eb400bc5603d12091d95762d
|
|
BLAKE2b-256 checksum How to use checksums |
7810cf785aca299d0e62dbd5a00d6b9cb1e88b44838bd8ce036cb60fb9e826fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for viz 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.