Stress Test Kit
一个基于 Locust 的本地压测工具,提供完整的 Web UI 和实时监控。
特性
- 📦 一键安装,开箱即用
- 🎯 完整的压测任务配置(请求头、请求体、参数化)
- 📊 实时资源监控(CPU、内存、请求曲线)
- 🔧 内置函数变量(时间戳、UUID、随机数)
- 💾 SQLite 本地存储,无需额外中间件
- 🧹 孤儿进程自动清理
快速开始
# 安装
pip install stress-test-kit
# 启动(自动打开浏览器)
stress-test
# 自定义端口
stress-test --port 9000
# 指定数据目录
stress-test --data-dir ./my-tests
开发
# 克隆项目
cd stress-test-kit
# 创建虚拟环境
python -m venv venv
.\venv\Scripts\Activate.ps1
# 安装开发依赖
pip install -e .
# 运行
python -m stress_test_kit
架构
- 后端: FastAPI + SQLAlchemy + SQLite
- 压测引擎: Locust
- 进程管理: psutil
- 前端: Vue 3 + Element Plus + ECharts
License
MIT
Metadata
Release files for stress-test-kit 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 | |
|---|---|---|---|
| stress_test_kit-0.1.0.tar.gz | 795.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stress_test_kit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.6 MB
Release files / stress_test_kit-0.1.0.tar.gz
| Download URL | stress_test_kit-0.1.0.tar.gz |
|---|---|
| Size | 795.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2069b717c5b580ce7617d815a17b5adc8e8a73608bb9c576c9ceaea4dc742676
|
|
BLAKE2b-256 checksum How to use checksums |
c1ef80e3584c4302989bb2e0e22dd4b67e0dbf5e79ae0ea99657e5b796c3cddc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / stress_test_kit-0.1.0-py3-none-any.whl
| Download URL | stress_test_kit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 807.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af4201232b7d2588525d42a19544f31d8ea8cd35a566e08ca8d3f31aa4d7a7f5
|
|
BLAKE2b-256 checksum How to use checksums |
cda4d17fc5fa5e81adffde026c6062fa6d7bfb5575d1fca0a71d81d60237b6fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|