Skip to main content

Résif Delivery stats plotter

Project description

resif-delivery-stats-plotter is a command line tool to plot statistics about requests and metadata/data deliveries by the datacenter about a seismic network handled by Résif. This tool is mostly designed to help the seismic networks’ PI to build their annual activity reports.

More details about Résif are available on http://seismology.resif.fr/

Installation

From PyPI

resif-delivery-stats-plotter is distributed on PyPI as a universal wheel and is available on Linux/macOS and Windows and supports Python 3.5+ and PyPy.

First, create and activate a virtualenv:

$ python3 -m venv venv
$ source venv/bin/activate

Install/Update the wheel package to allow installation of the binary version of dependencies.

$ pip install --upgrade pip setuptools wheel

Then, install the resif-delivery-stats-plotter package:

$ pip install resif-delivery-stats-plotter

From sources

resif-delivery-stats-plotter sources are distributed under the terms of GPLv3 licence and are available at https://gitlab.com/resif/resif-delivery-stats-plotter

First, ensure Git and Python 3 are installed on your system.

$ sudo apt install git
$ sudo apt install python3 python3-virtualenv python3-pip python3-setuptools python3-wheel

Then, clone the project from the Gitlab repository:

$ git clone https://gitlab.com/resif/resif-delivery-stats-plotter.git
$ cd resif-delivery-stats-plotter

Then, create and activate a virtualenv:

$ python3 -m venv venv
$ source venv/bin/activate

Finally, install the project and its dependencies:

$ pip install --upgrade pip setuptools wheel
$ pip install -e .

Usage

General syntax:

$ resif-delivery-stats-plotter [OPTIONS] COMMAND [ARGS]

Use the –help option to show the specific syntax of each command.

Build an HTML report

$ resif-delivery-stats-plotter report [OPTIONS] NETWORK YEAR

Build an individual plot

Use the following commands:

  • plot-network-availability

  • plot-map-network-stations

  • plot-data-send-monthly

  • plot-data-send-yearly

  • plot-data-stored-yearly

  • plot-requests-monthly

  • plot-requests-yearly

  • plot-map-clients-by-country

  • plot-map-requests-by-country

Other operations

Use the following commands:

  • list-networks

  • list-stations

  • list-channels

  • clear-requests-cache

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

resif-delivery-stats-plotter-0.1.3.tar.gz (1.3 MB view hashes)

Uploaded Source

Built Distribution

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