locust 2.32.7.dev14__py3-none-any.whl → 2.32.7.dev18__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- locust/__init__.py +4 -1
- locust/_version.py +2 -2
- locust/argument_parser.py +0 -1
- locust/contrib/fasthttp.py +1 -1
- locust/html.py +0 -3
- locust/main.py +2 -3
- locust/rpc/__init__.py +5 -0
- locust/user/__init__.py +7 -0
- locust/web.py +0 -1
- locust/webui/dist/assets/{index-DvV-0u6b.js → index-CmqwOkja.js} +28 -28
- locust/webui/dist/auth.html +1 -1
- locust/webui/dist/index.html +1 -1
- {locust-2.32.7.dev14.dist-info → locust-2.32.7.dev18.dist-info}/METADATA +1 -1
- {locust-2.32.7.dev14.dist-info → locust-2.32.7.dev18.dist-info}/RECORD +17 -17
- {locust-2.32.7.dev14.dist-info → locust-2.32.7.dev18.dist-info}/LICENSE +0 -0
- {locust-2.32.7.dev14.dist-info → locust-2.32.7.dev18.dist-info}/WHEEL +0 -0
- {locust-2.32.7.dev14.dist-info → locust-2.32.7.dev18.dist-info}/entry_points.txt +0 -0
locust/__init__.py
CHANGED
@@ -5,7 +5,7 @@ if os.getenv("LOCUST_PLAYWRIGHT", None):
|
|
5
5
|
print("Uninstall trio package and remove the setting.")
|
6
6
|
try:
|
7
7
|
# preserve backwards compatibility for now
|
8
|
-
import trio
|
8
|
+
import trio # noqa: F401
|
9
9
|
except ModuleNotFoundError:
|
10
10
|
# dont show a massive callstack if trio is not installed
|
11
11
|
os._exit(1)
|
@@ -50,6 +50,9 @@ __all__ = (
|
|
50
50
|
"events",
|
51
51
|
"LoadTestShape",
|
52
52
|
"run_single_user",
|
53
|
+
"HttpLocust",
|
54
|
+
"Locust",
|
55
|
+
"__version__",
|
53
56
|
)
|
54
57
|
|
55
58
|
# Used for raising a DeprecationWarning if old Locust/HttpLocust is used
|
locust/_version.py
CHANGED
@@ -14,7 +14,7 @@ __version_tuple__: VERSION_TUPLE
|
|
14
14
|
version_tuple: VERSION_TUPLE
|
15
15
|
|
16
16
|
|
17
|
-
__version__ = "2.32.7.
|
17
|
+
__version__ = "2.32.7.dev18"
|
18
18
|
version = __version__
|
19
|
-
__version_tuple__ = (2, 32, 7, "
|
19
|
+
__version_tuple__ = (2, 32, 7, "dev18")
|
20
20
|
version_tuple = __version_tuple__
|
locust/argument_parser.py
CHANGED
locust/contrib/fasthttp.py
CHANGED
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|
3
3
|
from locust.env import Environment
|
4
4
|
from locust.exception import CatchResponseError, LocustError, ResponseError
|
5
5
|
from locust.user import User
|
6
|
-
from locust.util.deprecation import DeprecatedFastHttpLocustClass as FastHttpLocust
|
6
|
+
from locust.util.deprecation import DeprecatedFastHttpLocustClass as FastHttpLocust # noqa: F401
|
7
7
|
|
8
8
|
import json
|
9
9
|
import json as unshadowed_json # some methods take a named parameter called json
|
locust/html.py
CHANGED
locust/main.py
CHANGED
@@ -8,7 +8,6 @@ import gc
|
|
8
8
|
import importlib.metadata
|
9
9
|
import inspect
|
10
10
|
import itertools
|
11
|
-
import json
|
12
11
|
import logging
|
13
12
|
import os
|
14
13
|
import signal
|
@@ -39,12 +38,12 @@ from .util.load_locustfile import load_locustfile
|
|
39
38
|
|
40
39
|
# import external plugins if installed to allow for registering custom arguments etc
|
41
40
|
try:
|
42
|
-
import locust_plugins # pyright: ignore[reportMissingImports]
|
41
|
+
import locust_plugins # pyright: ignore[reportMissingImports] # noqa: F401
|
43
42
|
except ModuleNotFoundError as e:
|
44
43
|
if e.msg != "No module named 'locust_plugins'":
|
45
44
|
raise
|
46
45
|
try:
|
47
|
-
import locust_cloud # pyright: ignore[reportMissingImports]
|
46
|
+
import locust_cloud # pyright: ignore[reportMissingImports] # noqa: F401
|
48
47
|
|
49
48
|
locust_cloud_version = f" (locust-cloud {importlib.metadata.version('locust-cloud')})"
|
50
49
|
except ModuleNotFoundError as e:
|
locust/rpc/__init__.py
CHANGED
locust/user/__init__.py
CHANGED