locust 2.26.1.dev12__py3-none-any.whl → 2.26.1.dev26__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/clients.py +1 -2
- locust/main.py +3 -4
- locust/util/timespan.py +2 -3
- locust/web.py +1 -1
- {locust-2.26.1.dev12.dist-info → locust-2.26.1.dev26.dist-info}/METADATA +3 -3
- {locust-2.26.1.dev12.dist-info → locust-2.26.1.dev26.dist-info}/RECORD +11 -11
- {locust-2.26.1.dev12.dist-info → locust-2.26.1.dev26.dist-info}/LICENSE +0 -0
- {locust-2.26.1.dev12.dist-info → locust-2.26.1.dev26.dist-info}/WHEEL +0 -0
- {locust-2.26.1.dev12.dist-info → locust-2.26.1.dev26.dist-info}/entry_points.txt +0 -0
- {locust-2.26.1.dev12.dist-info → locust-2.26.1.dev26.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.26.1.
|
16
|
-
__version_tuple__ = version_tuple = (2, 26, 1, '
|
15
|
+
__version__ = version = '2.26.1.dev26'
|
16
|
+
__version_tuple__ = version_tuple = (2, 26, 1, 'dev26')
|
locust/clients.py
CHANGED
@@ -113,8 +113,7 @@ class HttpSession(requests.Session):
|
|
113
113
|
:param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.
|
114
114
|
:param files: (optional) Dictionary of ``'filename': file-like-objects`` for multipart encoding upload.
|
115
115
|
:param auth: (optional) Auth tuple or callable to enable Basic/Digest/Custom HTTP Auth.
|
116
|
-
:param timeout: (optional) How long
|
117
|
-
or a (`connect timeout, read timeout <user/advanced.html#timeouts>`_) tuple.
|
116
|
+
:param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) <timeouts>` tuple.
|
118
117
|
:type timeout: float or tuple
|
119
118
|
:param allow_redirects: (optional) Set to True by default.
|
120
119
|
:type allow_redirects: bool
|
locust/main.py
CHANGED
@@ -126,7 +126,7 @@ def main():
|
|
126
126
|
|
127
127
|
user_classes[key] = value
|
128
128
|
available_user_classes[key] = value
|
129
|
-
available_user_tasks[key] = value.tasks or
|
129
|
+
available_user_tasks[key] = value.tasks or {}
|
130
130
|
|
131
131
|
if len(stats.PERCENTILES_TO_CHART) != 2:
|
132
132
|
logging.error("stats.PERCENTILES_TO_CHART parameter should be 2 parameters \n")
|
@@ -286,7 +286,7 @@ def main():
|
|
286
286
|
exit_code = max(exit_code, child_exit_code)
|
287
287
|
if exit_code > 1:
|
288
288
|
logging.error(f"Bad response code from worker children: {exit_code}")
|
289
|
-
# ensure master
|
289
|
+
# ensure master doesn't finish until output from workers has arrived
|
290
290
|
# otherwise the terminal might look weird.
|
291
291
|
time.sleep(0.1)
|
292
292
|
|
@@ -433,8 +433,7 @@ See https://github.com/locustio/locust/wiki/Installation#increasing-maximum-numb
|
|
433
433
|
|
434
434
|
if options.run_time:
|
435
435
|
if options.worker:
|
436
|
-
logger.
|
437
|
-
sys.exit(1)
|
436
|
+
logger.info("--run-time specified for a worker node will be ignored.")
|
438
437
|
try:
|
439
438
|
options.run_time = parse_timespan(options.run_time)
|
440
439
|
except ValueError:
|
locust/util/timespan.py
CHANGED
@@ -2,7 +2,7 @@ import re
|
|
2
2
|
from datetime import timedelta
|
3
3
|
|
4
4
|
|
5
|
-
def parse_timespan(time_str):
|
5
|
+
def parse_timespan(time_str) -> int:
|
6
6
|
"""
|
7
7
|
Parse a string representing a time span and return the number of seconds.
|
8
8
|
Valid formats are: 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.
|
@@ -18,8 +18,7 @@ def parse_timespan(time_str):
|
|
18
18
|
parts = timespan_regex.match(time_str)
|
19
19
|
if not parts:
|
20
20
|
raise ValueError("Invalid time span format. Valid formats: 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.")
|
21
|
-
|
22
|
-
time_params = {name: int(value) for name, value in parts.items() if value}
|
21
|
+
time_params = {name: int(value) for name, value in parts.groupdict().items() if value}
|
23
22
|
if not time_params:
|
24
23
|
raise ValueError("Invalid time span format. Valid formats: 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.")
|
25
24
|
return int(timedelta(**time_params).total_seconds())
|
locust/web.py
CHANGED
@@ -104,7 +104,7 @@ class WebUI:
|
|
104
104
|
environment: Reference to the current Locust Environment
|
105
105
|
host: Host/interface that the web server should accept connections to
|
106
106
|
port: Port that the web server should listen to
|
107
|
-
web_login: Enables a login page
|
107
|
+
web_login: Enables a login page
|
108
108
|
tls_cert: A path to a TLS certificate
|
109
109
|
tls_key: A path to a TLS private key
|
110
110
|
delayed_start: Whether or not to delay starting web UI until `start()` is called. Delaying web UI start
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: locust
|
3
|
-
Version: 2.26.1.
|
3
|
+
Version: 2.26.1.dev26
|
4
4
|
Summary: Developer friendly load testing framework
|
5
5
|
License: MIT
|
6
6
|
Project-URL: Homepage, https://github.com/locustio/locust
|
@@ -105,7 +105,7 @@ Locust's code base is intentionally kept small and doesn't solve everything out
|
|
105
105
|
* [Send real time reporting data to TimescaleDB and visualize it in Grafana](https://github.com/SvenskaSpel/locust-plugins/blob/master/locust_plugins/dashboards/README.md)
|
106
106
|
* [Wrap calls to handle the peculiarities of your REST API](https://github.com/SvenskaSpel/locust-plugins/blob/8af21862d8129a5c3b17559677fe92192e312d8f/examples/rest_ex.py#L87)
|
107
107
|
* [Use a totally custom load shape/profile](https://docs.locust.io/en/latest/custom-load-shape.html#custom-load-shape)
|
108
|
-
* ...
|
108
|
+
* [...](https://github.com/locustio/locust/wiki/Extensions)
|
109
109
|
|
110
110
|
## Links
|
111
111
|
|
@@ -116,7 +116,7 @@ Locust's code base is intentionally kept small and doesn't solve everything out
|
|
116
116
|
## Authors
|
117
117
|
|
118
118
|
* Maintainer: [Lars Holmberg](https://github.com/cyberw)
|
119
|
-
*
|
119
|
+
* UI: [Andrew Baldwin](https://github.com/andrewbaldwin44)
|
120
120
|
* Original creator: [Jonatan Heyman](https://github.com/heyman)
|
121
121
|
* Massive thanks to [all of our contributors](https://github.com/locustio/locust/graphs/contributors)
|
122
122
|
|
@@ -1,8 +1,8 @@
|
|
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=UzMj119kATOoBBjWI2c9qaMddMD8HTQOomwHL55-fso,428
|
4
4
|
locust/argument_parser.py,sha256=gOyB1rqEEFNVkhGa-oAuCxf573aB_lATSY9w6FlCbHk,32008
|
5
|
-
locust/clients.py,sha256
|
5
|
+
locust/clients.py,sha256=YKuAyMAbxs8_-w7XJw0hc67KFBNNLxibsw6FwiS01Q8,14781
|
6
6
|
locust/debug.py,sha256=We6Z9W0btkKSc7PxWmrZx-xMynvOOsKhG6jmDgQin0g,5134
|
7
7
|
locust/dispatch.py,sha256=S2pAMOlbadOrtMTLTDkq1Pvqes3HVUdZl-K5SDss6ig,19313
|
8
8
|
locust/env.py,sha256=nd6ui1bv6n-kkLkP3r61ZkskDY627dsKOAkYHhtOW7o,12472
|
@@ -11,12 +11,12 @@ locust/exception.py,sha256=jGgJ32ubuf4pWdlaVOkbh2Y0LlG0_DHi-lv3ib8ppOE,1791
|
|
11
11
|
locust/html.py,sha256=IrOYxmmowzcO96c9fytzR4U0lifTJyMTA7Rd96WOXkk,5708
|
12
12
|
locust/input_events.py,sha256=VQIrgXaoph3JgLo6REKtPBThEPUXYXG5Kcedly5aRYc,3272
|
13
13
|
locust/log.py,sha256=2IVp9YL4ZPfWdj3sBFuOHfgneg3g7m7tUGR-sy2s3E8,3155
|
14
|
-
locust/main.py,sha256=
|
14
|
+
locust/main.py,sha256=Un9THvATWEOewIeeoLkecxBluxQcoC7BkFhmk_UgTxM,28150
|
15
15
|
locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
|
16
16
|
locust/runners.py,sha256=7qJE6cHETFEOo7kr0vo_PN3bdfOIw-fbKrc2aPPrjKw,67954
|
17
17
|
locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
|
18
18
|
locust/stats.py,sha256=l2cxxVre8dvA4MIOD_ZKNj_fYySz5gTGC2f9Rc4-CL0,46134
|
19
|
-
locust/web.py,sha256=
|
19
|
+
locust/web.py,sha256=zj0Lm3tQq0MhbeJ1oKROnvauNibwUSBXsTehw2q2nAA,28251
|
20
20
|
locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
21
|
locust/contrib/fasthttp.py,sha256=B_VofSuvb9cehQxlUZnLVvYAr2AquedxeALua4mVOuM,26749
|
22
22
|
locust/rpc/__init__.py,sha256=nVGoHWFQxZjnhCDWjbgXIbmFbN9sizAjkhvSs9_642c,58
|
@@ -88,16 +88,16 @@ locust/util/deprecation.py,sha256=pFipULkYFjYnuFSycJZ0s95r0CTSlvx8otGnqSu1bsQ,20
|
|
88
88
|
locust/util/exception_handler.py,sha256=jTMyBq2a0O07fRjmqGkheyaPj58tUgnbbcjoesKGPws,797
|
89
89
|
locust/util/load_locustfile.py,sha256=hn70KcIG8jHmZyuKv2pcEmwgWtOEu24Efeji1KRYNUE,2964
|
90
90
|
locust/util/rounding.py,sha256=5haxR8mKhATqag6WvPby-MSRRgIw5Ob6thbyvMYZM7o,92
|
91
|
-
locust/util/timespan.py,sha256=
|
91
|
+
locust/util/timespan.py,sha256=Y0LtnhUq2Mq19p04u0XtBlYQ_-S2cRvwRdgru8W9WhA,986
|
92
92
|
locust/webui/dist/auth.html,sha256=xDquX2awbYPO0FHo0SUTeylBjwbwUWpu2_blXKD0J5s,501
|
93
93
|
locust/webui/dist/index.html,sha256=7LG5sNTcH3Hu07hxAdlpSRTy5fCHq1tNekJo-ZfaWxI,901
|
94
94
|
locust/webui/dist/report.html,sha256=sOdZZVgZbqgu86BBCSQf3uQUYXgmgSnXF32JpnyAII8,513
|
95
95
|
locust/webui/dist/assets/favicon.ico,sha256=IUl-rYqfpHdV38e-s0bkmFIeLS-n3Ug0DQxk-h202hI,8348
|
96
96
|
locust/webui/dist/assets/index-941b6e82.js,sha256=G3n5R81Svt0HzbWaV3AV20jLWGLr4X50UZ-Adu2KcxU,1645614
|
97
97
|
locust/webui/dist/assets/logo.png,sha256=EIVPqr6wE_yqguHaqFHIsH0ZACLSrvNWyYO7PbyIj4w,19299
|
98
|
-
locust-2.26.1.
|
99
|
-
locust-2.26.1.
|
100
|
-
locust-2.26.1.
|
101
|
-
locust-2.26.1.
|
102
|
-
locust-2.26.1.
|
103
|
-
locust-2.26.1.
|
98
|
+
locust-2.26.1.dev26.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
|
99
|
+
locust-2.26.1.dev26.dist-info/METADATA,sha256=7B0ufqAm8D1nKYfoLhSPeJS7TtJe0o5gIUvszDV2JOY,7301
|
100
|
+
locust-2.26.1.dev26.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
101
|
+
locust-2.26.1.dev26.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
|
102
|
+
locust-2.26.1.dev26.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
|
103
|
+
locust-2.26.1.dev26.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|