Skip to main content

实时网络速度监控 CLI 工具,htop 风格可视化

Project description

ifspeed

实时网络速度监控 CLI 工具,htop 风格彩色可视化。

安装

pip install ifspeed

使用

netspeed                    # 默认 1 秒刷新,显示所有网口
netspeed -i 0.5             # 0.5 秒刷新
netspeed -f eno             # 只显示 eno 开头的网口
netspeed -f 'veth*'         # glob 匹配
netspeed --lo               # 包含 lo 回环接口

效果

 NetSpeed  Ctrl+C 退出 │ 间隔 1s   2026-03-12 10:23:45
──────────────────────────────────────────────────────

  eno1  peak RX 6.52 MB/s  TX 1.20 MB/s
  RX[████████████████████░░░░░░░░░░░░░░░░░░░░]   6.52 MB/s
  TX[████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 148.79 KB/s
     累计  ↓766.49 GB  ↑1015.06 GB

──────────────────────────────────────────────────────
  图例: ██ <50%  ██ 50~80%  ██ >80%  (相对当前峰值)

颜色含义(相对当前峰值):

  • 绿色:< 50%
  • 黄色:50% ~ 80%
  • 红色:> 80%

说明

  • 数据来源:/proc/net/dev,无需 sudo
  • 仅支持 Linux
  • 无第三方依赖,纯标准库

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

ifspeed-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ifspeed-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file ifspeed-0.1.0.tar.gz.

File metadata

  • Download URL: ifspeed-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ifspeed-0.1.0.tar.gz
Algorithm Hash digest
SHA256 373c068955107605a4fcb0bf264f21a8169db93e0a57576d91a6c45ed3fd2cde
MD5 2e96c2f19002e2aeb5e9433fd0cdfbbd
BLAKE2b-256 af27e9009343b95aeab38aacfacfd71034fafc0cb9b261827b3f45469874dd2e

See more details on using hashes here.

File details

Details for the file ifspeed-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ifspeed-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for ifspeed-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cd608bb7b94169f00af2aa4d494eb6870e4b8d8f89c186d55c618ccf0bdf2f5
MD5 7a30c1c8924f89def73eedcf913e2ea0
BLAKE2b-256 a634bf53be5d4cdedc64aaa42ca305193ddf4468c5284c1e5385394f973a54ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page