Skip to main content

I wanted to view my up to date network usage in a easy to read and friendly way. So I built a tool that pulls the data in from netstat, and displays a cleaned up output in Cowsay.

Project description

I wanted to view my up to date network usage in a easy to read and friendly way. So I built a tool that pulls the data in from netstat, and displays a cleaned up output in Cowsay.

Setup

This is a Python tool that is presently only built for OSX. To render the output as seen above we use figlet and cowsay.

$ pip install cownet

Usage

$ cownet
                              _
  ___ _____      ___ __   ___| |_
 / __/ _ \ \ /\ / / '_ \ / _ \ __|
| (_| (_) \ V  V /| | | |  __/ |_
 \___\___/ \_/\_/ |_| |_|\___|\__|

 ___________________________________
< Received 173.9 MB / Sent 337.7 MB >
 -----------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Low calorie “light” mode

$ cownet -l
Received 2.4 GB / Sent 2.4 GB

Help

$ cownet -h

usage: Cownet [-h] [-l] [-i INTERFACE] [-d DELAY] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -l, --light           The low calorie version
  -i INTERFACE, --interface INTERFACE
                        Change the network interface (defaults to en1)
  -d DELAY, --delay DELAY
                        Change the frequency we check your usage data
                        (defaults to 30 seconds)
  -v, --version         show program's version number and exit

License

This tool is protected by the GNU General Public License v2.

Copyright Jeffrey Hann 2013

Project details


Release history Release notifications

This version
History Node

0.3.0

History Node

0.2.0

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Cownet-0.3.0.tar.gz (2.1 kB) Copy SHA256 hash SHA256 Source None Mar 11, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page