locust 2.42.0__py3-none-any.whl → 2.42.1.dev17__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.

Potentially problematic release.


This version of locust might be problematic. Click here for more details.

locust/_version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '2.42.0'
32
- __version_tuple__ = version_tuple = (2, 42, 0)
31
+ __version__ = version = '2.42.1.dev17'
32
+ __version_tuple__ = version_tuple = (2, 42, 1, 'dev17')
33
33
 
34
34
  __commit_id__ = commit_id = None
locust/argument_parser.py CHANGED
@@ -909,12 +909,22 @@ class UIExtraArgOptions(NamedTuple):
909
909
  choices: list[str] | None = None
910
910
 
911
911
 
912
- def ui_extra_args_dict(args=None) -> dict[str, dict[str, Any]]:
913
- """Get all the UI visible arguments"""
912
+ def ui_extra_args_dict(args=None, parsed_options=None) -> dict[str, dict[str, Any]]:
913
+ """Get all the UI visible arguments
914
+
915
+ Args:
916
+ args: Optional list of command-line arguments to parse (legacy parameter)
917
+ parsed_options: Optional already-parsed options namespace to extract values from
918
+ """
914
919
  locust_args = default_args_dict()
915
920
 
916
921
  parser = get_parser()
917
- all_args = vars(parser.parse_args(args))
922
+
923
+ # If parsed_options is provided, use it directly; otherwise parse args
924
+ if parsed_options is not None:
925
+ all_args = vars(parsed_options)
926
+ else:
927
+ all_args = vars(parser.parse_args(args))
918
928
 
919
929
  extra_args = {
920
930
  k: UIExtraArgOptions(
locust/web.py CHANGED
@@ -691,7 +691,7 @@ class WebUI:
691
691
  worker_count = 0
692
692
 
693
693
  request_stats = self.environment.runner.stats
694
- extra_options = argument_parser.ui_extra_args_dict()
694
+ extra_options = argument_parser.ui_extra_args_dict(parsed_options=options)
695
695
 
696
696
  available_user_classes = None
697
697
  users = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: locust
3
- Version: 2.42.0
3
+ Version: 2.42.1.dev17
4
4
  Summary: Developer-friendly load testing framework
5
5
  Project-URL: homepage, https://locust.io/
6
6
  Project-URL: repository, https://github.com/locustio/locust
@@ -31,7 +31,7 @@ Requires-Dist: flask-login>=0.6.3
31
31
  Requires-Dist: flask>=2.0.0
32
32
  Requires-Dist: gevent!=25.8.1,<26.0.0,>=24.10.1
33
33
  Requires-Dist: geventhttpclient>=2.3.1
34
- Requires-Dist: locust-cloud>=1.27.6
34
+ Requires-Dist: locust-cloud>=1.27.7
35
35
  Requires-Dist: msgpack>=1.0.0
36
36
  Requires-Dist: psutil>=5.9.1
37
37
  Requires-Dist: pytest<9.0.0,>=8.3.3
@@ -1,7 +1,7 @@
1
1
  locust/__init__.py,sha256=HadpgGidiyCDPSKwkxrk1Qw6eB7dTmftNJVftuJzAiw,1876
2
2
  locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
3
- locust/_version.py,sha256=3xoccVmO4IZYR_9MJmIdA9mbz0qIHFMpXRV_VUlSYYg,706
4
- locust/argument_parser.py,sha256=E0HM9jOlKCzPM9S_E_UKSwgiF_CL0aIli5eCcOG8Xac,33547
3
+ locust/_version.py,sha256=3g3zsjIvk7pqn1ycnqsR7YW--NY-NogXQLZZBIzqJfc,721
4
+ locust/argument_parser.py,sha256=OwX76Ci-6Hb-oum1nJD20HuTAtSWY2vZXlp_FDjzCcI,33920
5
5
  locust/clients.py,sha256=OfMTOT3LwijczdL3u6bpDwDNM2TDcPCIwXBelizPOyw,20776
6
6
  locust/debug.py,sha256=7CCm8bIg44uGH2wqBlo1rXBzV2VzwPicLxLewz8r5CQ,5099
7
7
  locust/dispatch.py,sha256=prdwtb9EoN4A9klgiKgWuwQmvFB8hEuFHOK6ot62AJI,16202
@@ -16,7 +16,7 @@ locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
16
16
  locust/runners.py,sha256=RqqCZaGt61gjlFR8KkCUJupOZAJPjpTiYCuRbVJ_gNo,70680
17
17
  locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
18
18
  locust/stats.py,sha256=qyoSKT0i7RunLDj5pMGqizK1Sp8bcqUsXwh2m4_DpR8,47203
19
- locust/web.py,sha256=pLYuocmx9gifJ4vsVDgGDYIPkQhQxI7kKjxoXcUajqM,31865
19
+ locust/web.py,sha256=X5f5xlcjA7Gf1QbE51i8J9Ob8OvXOfOB7qiD5Zs9wbs,31887
20
20
  locust/contrib/__init__.py,sha256=LtZN7MczpIAbZkN7PT2h8W2wgb9nBl6cDXbFCVsV4fo,290
21
21
  locust/contrib/dns.py,sha256=FyEFB69zkRtfoY_NkM_jRhLYg_QMckmAn1xLa9gYJso,2054
22
22
  locust/contrib/fasthttp.py,sha256=MpvGh8TSnV7SW4TrO559UgXfDB312g7o14ewRumvvSI,31149
@@ -58,8 +58,8 @@ locust/webui/dist/assets/terminal.gif,sha256=iw80LO2u0dnf4wpGfFJZauBeKTcSpw9iUfI
58
58
  locust/webui/dist/assets/testruns-dark.png,sha256=G4p2VZSBuuqF4neqUaPSshIp5OKQJ_Bvb69Luj6XuVs,125231
59
59
  locust/webui/dist/assets/testruns-light.png,sha256=JinGDiiBPOkhpfF-XCbmQqhRInqItrjrBTLKt5MlqVI,130301
60
60
  pytest_locust/plugin.py,sha256=3jr_5H_1SHCJTdQdgnTDJ-09r5jXzNKxJPkocfE9HF4,1669
61
- locust-2.42.0.dist-info/METADATA,sha256=eXw7FDNVSCS0c81d5fIpSnFtY7F4ii83XZRrXjiknQc,9846
62
- locust-2.42.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
63
- locust-2.42.0.dist-info/entry_points.txt,sha256=0uIHcQ71R1qaWhM_sd8uBUCCJgp7gJfGHUVMnJeZfcY,86
64
- locust-2.42.0.dist-info/licenses/LICENSE,sha256=5hnz-Vpj0Z3kSCQl0LzV2hT1TLc4LHcbpBp3Cy-EuyM,1110
65
- locust-2.42.0.dist-info/RECORD,,
61
+ locust-2.42.1.dev17.dist-info/METADATA,sha256=liWzDn4PHia5H_dl6KyenKIIe3RRGEbIR85bPjOGbp8,9852
62
+ locust-2.42.1.dev17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
63
+ locust-2.42.1.dev17.dist-info/entry_points.txt,sha256=0uIHcQ71R1qaWhM_sd8uBUCCJgp7gJfGHUVMnJeZfcY,86
64
+ locust-2.42.1.dev17.dist-info/licenses/LICENSE,sha256=5hnz-Vpj0Z3kSCQl0LzV2hT1TLc4LHcbpBp3Cy-EuyM,1110
65
+ locust-2.42.1.dev17.dist-info/RECORD,,