locust 2.27.1.dev10__py3-none-any.whl → 2.27.1.dev20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- locust/_version.py +2 -2
- locust/main.py +3 -3
- locust/web.py +4 -0
- {locust-2.27.1.dev10.dist-info → locust-2.27.1.dev20.dist-info}/METADATA +3 -3
- {locust-2.27.1.dev10.dist-info → locust-2.27.1.dev20.dist-info}/RECORD +9 -9
- {locust-2.27.1.dev10.dist-info → locust-2.27.1.dev20.dist-info}/LICENSE +0 -0
- {locust-2.27.1.dev10.dist-info → locust-2.27.1.dev20.dist-info}/WHEEL +0 -0
- {locust-2.27.1.dev10.dist-info → locust-2.27.1.dev20.dist-info}/entry_points.txt +0 -0
- {locust-2.27.1.dev10.dist-info → locust-2.27.1.dev20.dist-info}/top_level.txt +0 -0
locust/_version.py
CHANGED
@@ -12,5 +12,5 @@ __version__: str
|
|
12
12
|
__version_tuple__: VERSION_TUPLE
|
13
13
|
version_tuple: VERSION_TUPLE
|
14
14
|
|
15
|
-
__version__ = version = '2.27.1.
|
16
|
-
__version_tuple__ = version_tuple = (2, 27, 1, '
|
15
|
+
__version__ = version = '2.27.1.dev20'
|
16
|
+
__version_tuple__ = version_tuple = (2, 27, 1, 'dev20')
|
locust/main.py
CHANGED
@@ -175,11 +175,11 @@ def main():
|
|
175
175
|
sys.exit(1)
|
176
176
|
|
177
177
|
if options.hatch_rate:
|
178
|
-
sys.stderr.write("
|
179
|
-
|
178
|
+
sys.stderr.write("--hatch-rate parameter has been renamed --spawn-rate\n")
|
179
|
+
sys.exit(1)
|
180
180
|
|
181
181
|
if options.legacy_ui:
|
182
|
-
sys.stderr.write("
|
182
|
+
sys.stderr.write("--legacy-ui is no longer supported, remove the parameter to continue\n")
|
183
183
|
sys.exit(1)
|
184
184
|
|
185
185
|
# setup logging
|
locust/web.py
CHANGED
@@ -211,11 +211,14 @@ class WebUI:
|
|
211
211
|
for key, value in request.form.items():
|
212
212
|
if key == "user_count": # if we just renamed this field to "users" we wouldn't need this
|
213
213
|
user_count = int(value)
|
214
|
+
parsed_options_dict["users"] = user_count
|
214
215
|
elif key == "spawn_rate":
|
215
216
|
spawn_rate = float(value)
|
217
|
+
parsed_options_dict[key] = spawn_rate
|
216
218
|
elif key == "host":
|
217
219
|
# Replace < > to guard against XSS
|
218
220
|
environment.host = str(request.form["host"]).replace("<", "").replace(">", "")
|
221
|
+
parsed_options_dict[key] = environment.host
|
219
222
|
elif key == "user_classes":
|
220
223
|
# Set environment.parsed_options.user_classes to the selected user_classes
|
221
224
|
parsed_options_dict[key] = request.form.getlist("user_classes")
|
@@ -224,6 +227,7 @@ class WebUI:
|
|
224
227
|
continue
|
225
228
|
try:
|
226
229
|
run_time = parse_timespan(value)
|
230
|
+
parsed_options_dict[key] = run_time
|
227
231
|
except ValueError:
|
228
232
|
err_msg = "Valid run_time formats are : 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc."
|
229
233
|
logger.error(err_msg)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: locust
|
3
|
-
Version: 2.27.1.
|
4
|
-
Summary: Developer
|
3
|
+
Version: 2.27.1.dev20
|
4
|
+
Summary: Developer-friendly load testing framework
|
5
5
|
License: MIT
|
6
6
|
Project-URL: Homepage, https://github.com/locustio/locust
|
7
7
|
Project-URL: Documentation, https://docs.locust.io/
|
@@ -49,7 +49,7 @@ Requires-Dist: tomli >=1.1.0 ; python_version < "3.11"
|
|
49
49
|
[](https://github.com/locustio/locust/graphs/contributors)
|
50
50
|
[](https://github.com/support-ukraine/support-ukraine)
|
51
51
|
|
52
|
-
Locust is an open source performance/load testing tool for HTTP and other protocols. Its developer
|
52
|
+
Locust is an open source performance/load testing tool for HTTP and other protocols. Its developer-friendly approach lets you define your tests in regular Python code.
|
53
53
|
|
54
54
|
Locust tests can be run from command line or using its web-based UI. Throughput, response times and errors can be viewed in real time and/or exported for later analysis.
|
55
55
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
locust/__init__.py,sha256=g6oA-Ba_hs3gLWVf5MKJ1mvfltI8MFnDWG8qslqm8yg,1402
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256=
|
3
|
+
locust/_version.py,sha256=_jDKPXlmNHRk4SY73n8LZJh3BjMwEJynHgWwKFEcWeE,428
|
4
4
|
locust/argument_parser.py,sha256=5gUvJ6zLTscX1fUP25oAj_VemKl11Hm2aTm86cIlzWs,28680
|
5
5
|
locust/clients.py,sha256=YKuAyMAbxs8_-w7XJw0hc67KFBNNLxibsw6FwiS01Q8,14781
|
6
6
|
locust/debug.py,sha256=We6Z9W0btkKSc7PxWmrZx-xMynvOOsKhG6jmDgQin0g,5134
|
@@ -11,12 +11,12 @@ locust/exception.py,sha256=jGgJ32ubuf4pWdlaVOkbh2Y0LlG0_DHi-lv3ib8ppOE,1791
|
|
11
11
|
locust/html.py,sha256=Qz3Php454f5QwIdJyP2ckJ2L9aNkdZQCVahFELfMBIc,3983
|
12
12
|
locust/input_events.py,sha256=ZIyePyAMuA_YFYWg18g_pE4kwuQV3RbEB250MzXRwjY,3314
|
13
13
|
locust/log.py,sha256=cqLt7nnxnQuM4vWFB5EpJpNUTxGBVEkUJuaJPI1S7_Y,3186
|
14
|
-
locust/main.py,sha256=
|
14
|
+
locust/main.py,sha256=snmuyKutaCYbjrhHDuPjbeqNAtWcC9wkPa0AnJswMGY,27780
|
15
15
|
locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
|
16
16
|
locust/runners.py,sha256=Go8b8fpOAfFy6JuNcot7KyguHuExA6eoPHVmcgx3RoI,67813
|
17
17
|
locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
|
18
18
|
locust/stats.py,sha256=dulIckrNr3t01LSOFvpr7LdBHj1YXHlEoK7q3b79z0A,45581
|
19
|
-
locust/web.py,sha256=
|
19
|
+
locust/web.py,sha256=x12v0Raz8b3KaDr-WTLzsi9zxcbRutxUljKxNwQKtPU,26964
|
20
20
|
locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
21
|
locust/contrib/fasthttp.py,sha256=vByPepw35DF84qZ2xK89yHgjOA_8btV0wig_rSR6p4g,26757
|
22
22
|
locust/rpc/__init__.py,sha256=nVGoHWFQxZjnhCDWjbgXIbmFbN9sizAjkhvSs9_642c,58
|
@@ -70,9 +70,9 @@ locust/webui/dist/report.html,sha256=sOdZZVgZbqgu86BBCSQf3uQUYXgmgSnXF32JpnyAII8
|
|
70
70
|
locust/webui/dist/assets/favicon.ico,sha256=IUl-rYqfpHdV38e-s0bkmFIeLS-n3Ug0DQxk-h202hI,8348
|
71
71
|
locust/webui/dist/assets/index-941b6e82.js,sha256=G3n5R81Svt0HzbWaV3AV20jLWGLr4X50UZ-Adu2KcxU,1645614
|
72
72
|
locust/webui/dist/assets/logo.png,sha256=EIVPqr6wE_yqguHaqFHIsH0ZACLSrvNWyYO7PbyIj4w,19299
|
73
|
-
locust-2.27.1.
|
74
|
-
locust-2.27.1.
|
75
|
-
locust-2.27.1.
|
76
|
-
locust-2.27.1.
|
77
|
-
locust-2.27.1.
|
78
|
-
locust-2.27.1.
|
73
|
+
locust-2.27.1.dev20.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
|
74
|
+
locust-2.27.1.dev20.dist-info/METADATA,sha256=F965nQckJHN3QpXgiWhSEKeTX2jkrhhJIWTopHlp0_4,7264
|
75
|
+
locust-2.27.1.dev20.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
76
|
+
locust-2.27.1.dev20.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
|
77
|
+
locust-2.27.1.dev20.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
|
78
|
+
locust-2.27.1.dev20.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|