一个简约的速度测试库。
项目描述
obur 是一个简约的http速度测试库。它可以测试客户端和服务器之间的下载速度。您可以通过命令行或在其Python程序中使用它。
安装
pip install obur
用法
命令行
obur <target_url>
您可以通过命令行界面提供一些可选参数
usage: obur [-h] [--duration DURATION] [--chunk-size CHUNK_SIZE]
[--threshold THRESHOLD]
[--standard-deviation-count STANDARD_DEVIATION_COUNT]
[--speed-window-size SPEED_WINDOW_SIZE]
[--time-interval TIME_INTERVAL]
url
Calculate speed test between client an server.
positional arguments:
url Destination address
optional arguments:
-h, --help show this help message and exit
--duration DURATION Max speed test duration.
--chunk-size CHUNK_SIZE
Chunk Size
--threshold THRESHOLD
Speed threshold in percentage for determining
stabilitiy.
--standard-deviation-count STANDARD_DEVIATION_COUNT
Standard deviation count
--speed-window-size SPEED_WINDOW_SIZE
Speed window size in seconds.
--time-interval TIME_INTERVAL
Time interval in seconds. Get data points in every
this interval.
Python程序
from obur import measure measure(url, duration=60, chunk_size=1024)
重要提示
为了获得健康且准确的速度测试结果,目标URL应该是一个流URL。您可以在服务器端使用 puke 提供一个虚拟流URL。
项目详情
关闭
obur-1.0.1.tar.gz的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 6517499b3d8ec52935254e3650fee6683a4a9d880b1f4d7e206691db2a85d010 |
|
| MD5 | af7ec6ce764e613a78e9283bcbe0d375 |
|
| BLAKE2b-256 | 3189b7c75253c678f9781f65619a7e6f17a7c36dbf01fe8783ad3b43e6ac8ec0 |