Skip to main content

Simple ping visualization on the CLI

Project description

Readme
======

====================
Software Description
====================

This script provides a simple CLI based ping visualization script by utilizing `hipster plot`_ with customize-able UI views.

The software aims to remain lightweight and as os-independent as possible while maintaining ex sensibility throughout the software.

----------------------
Why should you use it?
----------------------

.. *Right, but why would I use it?*

The long and short is that ``pingstats`` provides a simple and stable method to visualize average ping over time from the command line. Aside from that, it provides the following features:

- Provides a highly modular dynamic UI layout selector, allowing the user to modify the way the software presents data.

- Provides a simple API for implementing unique and new UI behaviour

- Automatically resizes and stays aware of viewport size

- Stays under a megabyte of total size

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

Installation has been made easy on any system that implements ``pip3``.
::

pip3 install pingstats

----

----------------------
Installing from source
----------------------

Installing from source can be achieved relatively simply by first cloning the
repository and moving into the subsequent directory:
::

git clone https://gitlab.com/EclectickMediaSolutions/pingstats.git && cd pingstats


.. note:: To checkout the newest, experimental changes ensure you are on the
``rolling-release`` branch with ``git checkout rolling-release``

Once the repository is cloned, you can run the ``setup.py`` script to install
the local files:
::

python3 setup.py install

=====
Usage
=====

This software was implemented with simplicity in mind, and only provides one point of access:
::

pingstats google.ca


----------------------
Command Line Arguments
----------------------

The software also has a variety of command line arguments avaialable:
::

usage: pingstats [-h] [-l LAYOUT] [--list-widgets] [-V] address

positional arguments:
address The address to ping. This could be either a web
address (i.e, "google.ca") or an IP address.

optional arguments:
-h, --help show this help message and exit
-l LAYOUT, --layout LAYOUT
Specify a UI layout by listing ui elements in a comma
separated list where
'realtimepane,progstatus,averagepane' displays the
default layout. See the docs for more information.
--list-widgets Output a list of available widgets for '-l'
-V, --version show program's version number and exit

===========================
Examples of software in use
===========================

.. image:: http://i64.tinypic.com/33mv6ud.png


In this image, we can see two separate outputs. The top display is a display of the most recent actual return times, whereas the bottom display is the average return time for each sequence.

This display automatically scales to whatever window you have open, adding more lines and columns as necessary.


=================
Running the tests
=================

To run the tests, clone the repository:
::

git clone https://gitlab.com/eclectickmediasolutions/pingstats.git

Then simply run:
::

python3 setup.py test


.. include:: CONTRIBUTION.rst


.. _`hipster plot`: https://github.com/imh/hipsterplot
.. _PingStats: https://github.com/eclectickmedia/pingstats


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

pingstats-0.9.4.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pingstats-0.9.4-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file pingstats-0.9.4.tar.gz.

File metadata

  • Download URL: pingstats-0.9.4.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for pingstats-0.9.4.tar.gz
Algorithm Hash digest
SHA256 9b937adf0cacc50330b6698b5f0e302fe97faa0d5785186405736da009032f11
MD5 c182e284d0c76dd72188241404fc1dca
BLAKE2b-256 d5b98157a810e4b908723103c7c210adb6cf5d63606c29f3ee1f67894e5eaf5f

See more details on using hashes here.

File details

Details for the file pingstats-0.9.4-py3-none-any.whl.

File metadata

  • Download URL: pingstats-0.9.4-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for pingstats-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d8850e7781e6c69ab8ba6f45bb8f19e5cc7babf3e65cf4232687ecc87bdc012d
MD5 c4777c2d96441b1cb3825069450ab95b
BLAKE2b-256 87a3cd89412e15746be3ca67b8cae13c1967b36dd2ac65b948a966678ac9af34

See more details on using hashes here.

Supported by

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