Metadata-Version: 2.0
Name: pipeplot
Version: 0.2.1
Summary: displays an interactive graph based on data from pipe
Home-page: https://github.com/MyGodIsHe/pipeplot
Author: Ilya Chistyakov
Author-email: ilchistyakov@gmail.com
License: MIT
Project-URL: Source, https://github.com/MyGodIsHe/pipeplot
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: POSIX
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7

Pipe Plot
=========

.. image:: https://img.shields.io/pypi/v/pipeplot.svg
    :target: https://pypi.org/project/pipeplot/

.. image:: https://img.shields.io/pypi/pyversions/pipeplot.svg
    :target: https://pypi.org/project/pipeplot/

.. image:: https://img.shields.io/pypi/dm/pipeplot.svg
    :target: https://pypi.python.org/pypi/pipeplot

pipeplot draws an interactive graph in a terminal based on data from pipe.

Installation
============

.. code-block:: bash

    pip install pipeplot


Examples of using
=================

Graphical Ping:

.. code-block:: bash

    ping ya.ru | grep --line-buffered time | sed -u -e 's#.*time=\([^ ]*\).*#\1#' | pipeplot --min 0

Chart of deaths per minute from coronavirus:

.. code-block:: bash

    while true; \
        do curl -s https://coronavirus-19-api.herokuapp.com/all \
        | jq '.deaths'; \
        sleep 60; \
    done \
    | pipeplot --color 1

Render graphite to console:

.. code-block:: bash

    while true; \
    do \
        curl -s 'http://graphite/render?target=my_app_rps_error&format=json&from=-5min&until=now' \
        | jq -c '.[0].datapoints[-1]'; \
        sleep 5; \
    done \
    | sed -u s/null/0/ \
    | stdbuf -oL uniq \
    | stdbuf -oL jq '.[0]' \
    | pipeplot


