portbug
portbug 是 portbug.com 的 Python 命令行客户端,用于从本机测量已登记测速节点上的 TCP 与 UDP 端口吞吐。
它只接受中心登记的节点 ID,不支持任意 IP 或域名作为目标,避免被误用为对第三方的流量工具。
安装
python -m pip install -U portbug
使用
列出可用节点:
portbug nodes
测试 TCP 443、80 的上下行:
portbug port 443 80 --to sh-spot
测试 UDP 443 的上下行(默认速率 50 Mbps,避免无节制 UDP 发送):
portbug port 443 --udp --to sh-spot --rate-mbps 50
输出 JSON,便于脚本或 AI 工具读取:
portbug port 443 --to sh-spot --json
默认中心是 https://portbug.com。私有部署可用 --center 或 PORTBUG_CENTER 指定自己的中心。
当前范围
Python 版提供节点查询、端口探测、TCP/UDP 上下行吞吐和 JSON 输出;桌面版中的报告、账户、协议模拟、实时曲线等功能仍由 Go/Wails 客户端提供。
Metadata
Release files for portbug 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| portbug-0.1.0.tar.gz | 10.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| portbug-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.8 kB
Release files / portbug-0.1.0.tar.gz
| Download URL | portbug-0.1.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8203212c0ef687e5a0ad9130a34482a7609f7ed10f1f29d3d9249b4e491c98b1
|
|
BLAKE2b-256 checksum How to use checksums |
2462b36d04a72083db9209c6894ffd2002a89eb4dedc1589883f7f1947800c78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / portbug-0.1.0-py3-none-any.whl
| Download URL | portbug-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6535bddc785bc9174dc88281649019f51b6c64ca956b66e61f0f4d957f16dae9
|
|
BLAKE2b-256 checksum How to use checksums |
a7c8eca42331ac3b2e638e1063989a77c3bc6b9a6b8e21e58aa4eee9de3ff827
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Security for portbug 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.