locust 2.32.3.dev13__py3-none-any.whl → 2.32.3.dev18__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 CHANGED
@@ -14,7 +14,7 @@ __version_tuple__: VERSION_TUPLE
14
14
  version_tuple: VERSION_TUPLE
15
15
 
16
16
 
17
- __version__ = "2.32.3.dev13"
17
+ __version__ = "2.32.3.dev18"
18
18
  version = __version__
19
- __version_tuple__ = (2, 32, 3, "dev13")
19
+ __version_tuple__ = (2, 32, 3, "dev18")
20
20
  version_tuple = __version_tuple__
locust/argument_parser.py CHANGED
@@ -162,14 +162,18 @@ def download_locustfile_from_url(url: str) -> str:
162
162
  """
163
163
  try:
164
164
  response = requests.get(url)
165
- # Check if response is valid python code
166
- ast.parse(response.text)
167
165
  except requests.exceptions.RequestException as e:
168
166
  sys.stderr.write(f"Failed to get locustfile from: {url}. Exception: {e}")
169
167
  sys.exit(1)
170
- except SyntaxError:
171
- sys.stderr.write(f"Failed to get locustfile from: {url}. Response is not valid python code.")
172
- sys.exit(1)
168
+ else:
169
+ try:
170
+ # Check if response is valid python code
171
+ ast.parse(response.text)
172
+ except SyntaxError:
173
+ sys.stderr.write(
174
+ f"Failed to get locustfile from: {url}. Response was not valid python code: '{response.text[:100]}'"
175
+ )
176
+ sys.exit(1)
173
177
 
174
178
  with open(os.path.join(tempfile.gettempdir(), urlparse(url).path.split("/")[-1]), "w") as locustfile:
175
179
  locustfile.write(response.text)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: locust
3
- Version: 2.32.3.dev13
3
+ Version: 2.32.3.dev18
4
4
  Summary: Developer-friendly load testing framework
5
5
  Home-page: https://locust.io/
6
6
  License: MIT
@@ -96,7 +96,26 @@ Locust makes it easy to run load tests distributed over multiple machines. It is
96
96
 
97
97
  Locust has a user friendly web interface that shows the progress of your test in real-time. You can even change the load while the test is running. It can also be run without the UI, making it easy to use for CI/CD testing.
98
98
 
99
- <img src="docs/images/bottlenecked_server.png" alt="Locust UI charts" height="100" width="200"/> <img src="docs/images/webui-running-statistics.png" alt="Locust UI stats" height="100" width="200"/> <img src="docs/images/locust_workers.png" alt="Locust UI workers" height="100" width="200"/> <img src="docs/images/webui-splash-screenshot.png" alt="Locust UI start test" height="100" width="200"/>
99
+ <picture>
100
+ <source media="(prefers-color-scheme: light)" srcset="docs/images/bottlenecked-server-light.png" alt="Locust UI charts" height="100" width="200"/>
101
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/bottlenecked-server-dark.png" alt="Locust UI charts" height="100" width="200"/>
102
+ <img src="docs/images/bottlenecked-server-light.png" alt="Locust UI charts" height="100" width="200"/>
103
+ </picture>
104
+ <picture>
105
+ <source media="(prefers-color-scheme: light)" srcset="docs/images/webui-running-statistics-light.png" alt="Locust UI stats" height="100" width="200"/>
106
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/webui-running-statistics-dark.png" alt="Locust UI stats" height="100" width="200"/>
107
+ <img src="docs/images/webui-running-statistics-light.png" alt="Locust UI stats" height="100" width="200"/>
108
+ </picture>
109
+ <picture>
110
+ <source media="(prefers-color-scheme: light)" srcset="docs/images/locust-workers-light.png" alt="Locust UI workers" height="100" width="200"/>
111
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/locust-workers-dark.png" alt="Locust UI workers" height="100" width="200"/>
112
+ <img src="docs/images/locust-workers-light.png" alt="Locust UI workers" height="100" width="200"/>
113
+ </picture>
114
+ <picture>
115
+ <source media="(prefers-color-scheme: light)" srcset="docs/images/webui-splash-light.png" alt="Locust UI start test" height="100" width="200"/>
116
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/webui-splash-dark.png" alt="Locust UI start test" height="100" width="200"/>
117
+ <img src="docs/images/webui-splash-light.png" alt="Locust UI start test" height="100" width="200"/>
118
+ </picture>
100
119
 
101
120
  #### Can test any system
102
121
 
@@ -1,7 +1,7 @@
1
1
  locust/__init__.py,sha256=Jit8eNUrwuMLqavyFvMZr69e61DILq_KB4yT4MciScw,1681
2
2
  locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
3
- locust/_version.py,sha256=5qrmb18j_BmPm-5FX61zlxkLIPA0ktV2g-QFbp8aJZ8,460
4
- locust/argument_parser.py,sha256=0g34ARe06NHjEkTBnoluwTEuWFUr37-mMW2xfAwnvmY,30039
3
+ locust/_version.py,sha256=fn9C6fMBsq_DxU3OLj4ioC3CPWCy8kD71nu__WHPXTg,460
4
+ locust/argument_parser.py,sha256=xB9TQhAALeIZLx0hxoBOVv4dhSNdB15BG0fDYXkyeFc,30137
5
5
  locust/clients.py,sha256=XK-xabq2_5GZKMEjebDobvEjeBTtCs8h2EelL7s68Qs,19346
6
6
  locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  locust/contrib/fasthttp.py,sha256=Fs83qq8zqT4_aTnA8JUQaIWo2IBj-LNi2AKflx8yGtg,28858
@@ -47,8 +47,8 @@ locust/webui/dist/auth.html,sha256=bKzJKSAULiHAOI01JR96jrbOLEjpXOzlp0C3I0D2sWs,6
47
47
  locust/webui/dist/index.html,sha256=5bnINHCJTK-I7e4GrdOziXlYK_7aUVyUCpndIVq3e7U,654
48
48
  locust/webui/dist/report.html,sha256=KUmkufa4Ob8GTqBmVtFnueZL8h76eEUMVnoL069cAcg,1471006
49
49
  poetry.lock,sha256=ljIk82fqk3w6yev4VK6hzrKcXvOX2cxzeUKT-9Uz4kw,214437
50
- locust-2.32.3.dev13.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
51
- locust-2.32.3.dev13.dist-info/METADATA,sha256=5KrJIUQ4WDhKmYJTpilZXgMMi1W1jgqLqKNwH2NyHDM,7877
52
- locust-2.32.3.dev13.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
53
- locust-2.32.3.dev13.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
54
- locust-2.32.3.dev13.dist-info/RECORD,,
50
+ locust-2.32.3.dev18.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
51
+ locust-2.32.3.dev18.dist-info/METADATA,sha256=w1R5kDfbgoBxvvuimRMnuehYyfZLXizt6Qgqs1ueHFA,9137
52
+ locust-2.32.3.dev18.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
53
+ locust-2.32.3.dev18.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
54
+ locust-2.32.3.dev18.dist-info/RECORD,,