Skip to main content

README

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

Prerequisites

  • 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.

Installation

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

pip install connection-monitor

Usage

  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::

    monitor

Available options:

  • -s SECRETS_FILENAME

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

  • -o FILENAME

    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.

Release files for connection-monitor 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for connection-monitor 0.0.6
File Interpreter ABI Platform
connection_monitor-0.0.6-py3-none-any.whl Python 3 none any Details

Release files / connection_monitor-0.0.6-py3-none-any.whl

Download URL connection_monitor-0.0.6-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0dbd4afad7f2430e725db8e0d6fce38010b3831bd9612a5c76ec0a4ceca47044
BLAKE2b-256 checksum
How to use checksums
31f1c93ccc8aef12ef15fd1ccc3e1ebb847f2e7e45855bb0facbc86858f1eb61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.4

1 release file

0.0.1

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page