Skip to main content

Connection monitoring utility

Project description


This package provides a long-running command to measure network performance.

Following figures are recorded to a csv file:

  • packets sent
  • packets received
  • network latency
  • statistics from the home router


  • Python >= 3.7, due to usage of dataclasses and annotations;
  • Normally handled nicely py installation procedure: bs4, click, pyyaml, psutil and requests third-party libraries.


This package is hosted on Pypi, so it's as easy as:

pip install connection-monitor


  1. Create a secrets.yml file with credentials to connect to your router; see content of sample file.

  2. Open a terminal, activate the virtualenv if appropriate, and simply type::


Available options:


    Filename to the secrets file. Defaults to secrets.yml in current working folder.


    Filename to write the stats into. By default, the stats go in current folder, in file named 'network_data.csv'.

    Writing is in append mode; previous data is kept.

  • -h HOST [HOST...]

    Address(es) to connect to, to measure latency. Defaults to some French web servers.

  • -d DELAY

    Delay between two samplings. Defaults to 1 minute, to behave fairly.

  • -v

    Verbosity setting; use it to show measurements to command line. Repeat it to show debug messages, i.e. -vv. Default behavior is to show only errors and warnings.

Project details

Download files

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

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

connection_monitor-0.0.6-py3-none-any.whl (9.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page