locust 2.29.0__py3-none-any.whl → 2.29.1.dev10__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/__init__.py +2 -1
- locust/_version.py +2 -2
- locust/event.py +3 -1
- locust/web.py +3 -0
- {locust-2.29.0.dist-info → locust-2.29.1.dev10.dist-info}/METADATA +1 -1
- {locust-2.29.0.dist-info → locust-2.29.1.dev10.dist-info}/RECORD +10 -10
- {locust-2.29.0.dist-info → locust-2.29.1.dev10.dist-info}/WHEEL +1 -1
- {locust-2.29.0.dist-info → locust-2.29.1.dev10.dist-info}/LICENSE +0 -0
- {locust-2.29.0.dist-info → locust-2.29.1.dev10.dist-info}/entry_points.txt +0 -0
- {locust-2.29.0.dist-info → locust-2.29.1.dev10.dist-info}/top_level.txt +0 -0
locust/__init__.py
CHANGED
@@ -12,7 +12,8 @@ if os.getenv("LOCUST_PLAYWRIGHT", None):
|
|
12
12
|
|
13
13
|
from gevent import monkey
|
14
14
|
|
15
|
-
|
15
|
+
if not os.getenv("LOCUST_SKIP_MONKEY_PATCH", None):
|
16
|
+
monkey.patch_all()
|
16
17
|
|
17
18
|
from ._version import version as __version__
|
18
19
|
from .contrib.fasthttp import FastHttpUser
|
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.29.
|
16
|
-
__version_tuple__ = version_tuple = (2, 29,
|
15
|
+
__version__ = version = '2.29.1.dev10'
|
16
|
+
__version_tuple__ = version_tuple = (2, 29, 1, 'dev10')
|
locust/event.py
CHANGED
@@ -61,7 +61,9 @@ class EventHook:
|
|
61
61
|
|
62
62
|
Example usage (in a task):
|
63
63
|
|
64
|
-
|
64
|
+
.. code-block:: python
|
65
|
+
|
66
|
+
with self.environment.events.request.measure("requestType", "requestName") as request_meta:
|
65
67
|
# do the stuff you want to measure
|
66
68
|
|
67
69
|
You can optionally add/overwrite entries in the request_meta dict and they will be passed to the request event.
|
locust/web.py
CHANGED
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
3
3
|
import csv
|
4
4
|
import json
|
5
5
|
import logging
|
6
|
+
import mimetypes
|
6
7
|
import os.path
|
7
8
|
from functools import wraps
|
8
9
|
from html import escape
|
@@ -132,6 +133,8 @@ class WebUI:
|
|
132
133
|
self.app.template_folder = BUILD_PATH
|
133
134
|
self.app.static_folder = STATIC_PATH
|
134
135
|
self.app.static_url_path = "/assets/"
|
136
|
+
# ensures static js files work on Windows
|
137
|
+
mimetypes.add_type("application/javascript", ".js")
|
135
138
|
|
136
139
|
if self.web_login:
|
137
140
|
self.login_manager = LoginManager()
|
@@ -1,12 +1,12 @@
|
|
1
|
-
locust/__init__.py,sha256=
|
1
|
+
locust/__init__.py,sha256=Hmw2vNf75eLQ1mQIPXAwlQrJ_XFY65MOb92fGsNCukQ,1458
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256=
|
3
|
+
locust/_version.py,sha256=MIiWo8hUHI5FT3CkPQhbABB0HIF2NSxKuXtteNfmn-8,428
|
4
4
|
locust/argument_parser.py,sha256=sjQoJ1NTac9LdNYT7zn8RajlWqBQs8YFNv6uRExb2gg,28941
|
5
5
|
locust/clients.py,sha256=YKuAyMAbxs8_-w7XJw0hc67KFBNNLxibsw6FwiS01Q8,14781
|
6
6
|
locust/debug.py,sha256=We6Z9W0btkKSc7PxWmrZx-xMynvOOsKhG6jmDgQin0g,5134
|
7
7
|
locust/dispatch.py,sha256=vYh0QEDFgJ3hY0HgSk-EiNO7IP9ffzXF_Et8wB9JvsI,16995
|
8
8
|
locust/env.py,sha256=sP-fCnZs0e2xodRemLHgTgyyUt5eezwtdA9WsCoqJkQ,12767
|
9
|
-
locust/event.py,sha256=
|
9
|
+
locust/event.py,sha256=H2SuxyadPMsRY-LQ6MuK1okHls9lYsS9GgXIDSxpi50,7864
|
10
10
|
locust/exception.py,sha256=jGgJ32ubuf4pWdlaVOkbh2Y0LlG0_DHi-lv3ib8ppOE,1791
|
11
11
|
locust/html.py,sha256=_n3aB3fxiYzSeE_7RqHF3iiEPjPnbQ3e2Pw9P8AVtPU,3920
|
12
12
|
locust/input_events.py,sha256=ZIyePyAMuA_YFYWg18g_pE4kwuQV3RbEB250MzXRwjY,3314
|
@@ -16,7 +16,7 @@ locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
|
|
16
16
|
locust/runners.py,sha256=wqf9eIPUGrqz7m-EZtXKdMJ43cainHm0bS-3Cj4haBo,69471
|
17
17
|
locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
|
18
18
|
locust/stats.py,sha256=5jx9aD9Sky-kCZ3E-MjRT3xbwvxo9xyDtfcfP56zclo,45875
|
19
|
-
locust/web.py,sha256=
|
19
|
+
locust/web.py,sha256=rN1NVeZ9LKSEeDwvpRbOJ0bcy8U1U4VjP-7vK7ejlwM,27367
|
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
|
@@ -71,9 +71,9 @@ locust/webui/dist/report.html,sha256=sOdZZVgZbqgu86BBCSQf3uQUYXgmgSnXF32JpnyAII8
|
|
71
71
|
locust/webui/dist/assets/favicon.ico,sha256=IUl-rYqfpHdV38e-s0bkmFIeLS-n3Ug0DQxk-h202hI,8348
|
72
72
|
locust/webui/dist/assets/index-84c63e70.js,sha256=cwyH4ju0OCRvFhg3O-0SYVBTFlN_XQeQ6YkymAO4Hco,1647185
|
73
73
|
locust/webui/dist/assets/logo.png,sha256=EIVPqr6wE_yqguHaqFHIsH0ZACLSrvNWyYO7PbyIj4w,19299
|
74
|
-
locust-2.29.
|
75
|
-
locust-2.29.
|
76
|
-
locust-2.29.
|
77
|
-
locust-2.29.
|
78
|
-
locust-2.29.
|
79
|
-
locust-2.29.
|
74
|
+
locust-2.29.1.dev10.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
|
75
|
+
locust-2.29.1.dev10.dist-info/METADATA,sha256=Tt43tTkczmIluw-UW10AjlhdnT2Yd341W7Z1ms4maF8,7323
|
76
|
+
locust-2.29.1.dev10.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
77
|
+
locust-2.29.1.dev10.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
|
78
|
+
locust-2.29.1.dev10.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
|
79
|
+
locust-2.29.1.dev10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|