Metadata-Version: 2.4
Name: ifspeed
Version: 0.1.0
Summary: 实时网络速度监控 CLI 工具，htop 风格可视化
Project-URL: Homepage, https://github.com/hvt/ifspeed
License: MIT License
        
        Copyright (c) 2026 hvt
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: cli,htop,monitor,network,speed
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: System :: Monitoring
Classifier: Topic :: System :: Networking :: Monitoring
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# ifspeed

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

## 安装

```bash
pip install ifspeed
```

## 使用

```bash
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
- 无第三方依赖，纯标准库
