Network bandwidth monitor — track interface statistics, throughput, and traffic in real-time from /proc/net/dev
Project description
dargslan-bandwidth-monitor
Network Bandwidth Monitor — Track interface statistics, throughput, and traffic from /proc/net/dev. Real-time speed tests. Zero external dependencies.
Installation
pip install dargslan-bandwidth-monitor
CLI Usage
dargslan-bw report # Full bandwidth report
dargslan-bw stats # Interface statistics
dargslan-bw speed # Real-time throughput test
dargslan-bw speed -d 5 # 5-second speed test
dargslan-bw total # Total traffic counters
dargslan-bw errors # Interface errors/drops
dargslan-bw json # JSON output
Python API
from dargslan_bandwidth_monitor import BandwidthMonitor
bm = BandwidthMonitor()
stats = bm.get_stats()
throughput = bm.measure_throughput(duration=3)
bm.print_report()
More from Dargslan
- Dargslan.com — Linux & DevOps eBook Store
- Free Cheat Sheets
- Blog & Tutorials
License
MIT — see LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dargslan_bandwidth_monitor-1.0.0.tar.gz.
File metadata
- Download URL: dargslan_bandwidth_monitor-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0db75945ba692025d67e1c821dff72ecc0bdf369254817aa70ad9baa4142fc77
|
|
| MD5 |
505177551c6bbaabdb6615ff0184b677
|
|
| BLAKE2b-256 |
095bdad2c2d95d403318ebfe77749c16c2a7e546663cba18900cfc50083a944f
|
File details
Details for the file dargslan_bandwidth_monitor-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dargslan_bandwidth_monitor-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
577c3db477176ae650b50d3911ec34ba28e9c6e543f213f5cb97e33155073cc1
|
|
| MD5 |
74cce790a218b5f6269a90df08eb71fd
|
|
| BLAKE2b-256 |
6072740ca114373d0db54baffbb7fcf1b9badd38d43977a6394c747aaddadeed
|