locust 2.32.6.dev21__py3-none-any.whl → 2.32.7__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 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.6.dev21"
17
+ __version__ = "2.32.7"
18
18
  version = __version__
19
- __version_tuple__ = (2, 32, 6, "dev21")
19
+ __version_tuple__ = (2, 32, 7)
20
20
  version_tuple = __version_tuple__
locust/argument_parser.py CHANGED
@@ -10,7 +10,6 @@ import json
10
10
  import os
11
11
  import platform
12
12
  import socket
13
- import ssl
14
13
  import sys
15
14
  import tempfile
16
15
  import textwrap
@@ -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
@@ -1,9 +1,6 @@
1
- import glob
2
1
  import os
3
- import pathlib
4
2
  from html import escape
5
3
  from itertools import chain
6
- from json import dumps
7
4
 
8
5
  from jinja2 import Environment as JinjaEnvironment
9
6
  from jinja2 import FileSystemLoader
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
@@ -1,2 +1,7 @@
1
+ __all__ = (
2
+ "Message",
3
+ "rpc",
4
+ )
5
+
1
6
  from . import zmqrpc as rpc
2
7
  from .protocol import Message
locust/runners.py CHANGED
@@ -1002,7 +1002,7 @@ class MasterRunner(DistributedRunner):
1002
1002
  elif msg.data != __version__ and msg.data != -1:
1003
1003
  if msg.data[0:4] == __version__[0:4]:
1004
1004
  logger.debug(
1005
- f"A worker ({client_id}) running a different patch version ({msg.data}) connected, master version is {__version__}"
1005
+ f"A worker ({client_id}) running a different patch version ({repr(msg.data)}) connected, master version is {repr(__version__)}"
1006
1006
  )
1007
1007
  else:
1008
1008
  logger.warning(
locust/user/__init__.py CHANGED
@@ -1,2 +1,9 @@
1
+ __all__ = (
2
+ "HttpUser",
3
+ "tag",
4
+ "task",
5
+ "TaskSet",
6
+ "User",
7
+ )
1
8
  from .task import TaskSet, tag, task
2
9
  from .users import HttpUser, User
locust/web.py CHANGED
@@ -10,7 +10,6 @@ from html import escape
10
10
  from io import StringIO
11
11
  from itertools import chain
12
12
  from json import dumps
13
- from time import time
14
13
  from typing import TYPE_CHECKING, Any, TypedDict
15
14
 
16
15
  import gevent
Binary file