locust-cloud 1.0.18__py3-none-any.whl → 1.0.19__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_cloud/auth.py CHANGED
@@ -59,10 +59,10 @@ def register_auth(environment):
59
59
 
60
60
  return response
61
61
 
62
- @environment.web_ui.app.route("/authenticate")
62
+ @environment.web_ui.app.route("/authenticate", methods=["POST"])
63
63
  def login_submit():
64
- username = request.args.get("username")
65
- password = request.args.get("password")
64
+ username = request.form.get("username")
65
+ password = request.form.get("password")
66
66
 
67
67
  try:
68
68
  auth_response = requests.post(f"{LAMBDA}/auth/login", json={"username": username, "password": password})
locust_cloud/cloud.py CHANGED
@@ -1,3 +1,4 @@
1
+ import importlib.metadata
1
2
  import json
2
3
  import logging
3
4
  import math
@@ -22,6 +23,7 @@ from locust_cloud.constants import (
22
23
  from locust_cloud.credential_manager import CredentialError, CredentialManager
23
24
 
24
25
  LOCUST_ENV_VARIABLE_IGNORE_LIST = ["LOCUST_BUILD_PATH", "LOCUST_SKIP_MONKEY_PATCH"]
26
+ __version__ = importlib.metadata.version("locust-cloud")
25
27
 
26
28
 
27
29
  class LocustTomlConfigParser(configargparse.TomlConfigParser):
@@ -188,7 +190,7 @@ def main() -> None:
188
190
  )
189
191
  sys.exit(1)
190
192
 
191
- logger.info(f"Logging you into Locust Cloud ({options.lambda_url}, {options.aws_region_name})")
193
+ logger.info(f"Logging you into Locust Cloud ({options.lambda_url}, {options.aws_region_name}, v{__version__})")
192
194
 
193
195
  credential_manager = CredentialManager(
194
196
  lambda_url=options.lambda_url,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: locust-cloud
3
- Version: 1.0.18
3
+ Version: 1.0.19
4
4
  Summary: Locust Cloud
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: blessed==1.20.0
@@ -1,6 +1,6 @@
1
1
  locust_cloud/__init__.py,sha256=51wdjGT0nqS5dVuFVDMhthnPacrctteiCMrwRqaPaQg,1867
2
- locust_cloud/auth.py,sha256=kSSEbOcfZHNWmn802pAS01ooiNm1IIa29Ui_-rku4lM,3027
3
- locust_cloud/cloud.py,sha256=zP7cBYF6K2LpGqKhLwo_cXliCsy7YCF3LyFCJJP2zgg,14448
2
+ locust_cloud/auth.py,sha256=B68r0Hv2mXm_2caqOhofuqaSPVIdWZb6_4_9g7M7zco,3045
3
+ locust_cloud/cloud.py,sha256=LusCi_y8WXyyjR3-_9OhSzzpuhcgia39fecAFNZ--Q8,14547
4
4
  locust_cloud/constants.py,sha256=YGgIEnaOT9cAA8F8a8Z8lOmlI78D2fXiVpP0RF213MA,167
5
5
  locust_cloud/credential_manager.py,sha256=JbuS22RTGAmngVB9DFLxHIgaonCSImemMGvtWnxBZRE,5515
6
6
  locust_cloud/timescale/exporter.py,sha256=j1K-czMUdOLFt5Sop0PTF6TL52vYdngEEI5OEM3Xl60,11128
@@ -15,7 +15,7 @@ locust_cloud/webui/vite.config.ts,sha256=cqxPMkbwEA3H9mGGbuPulQUhIHCosUqm_1usxzs
15
15
  locust_cloud/webui/yarn.lock,sha256=OgV48S7IOMpqldFPL5MFG1fjP8HTcDlFSFzMuRCkGWU,216596
16
16
  locust_cloud/webui/dist/index.html,sha256=JQmktpAcxIB4vZz9r5ZnYTBZ9NcBVerxG4lJVYttQrU,664
17
17
  locust_cloud/webui/dist/assets/index-Cj0_NN88.js,sha256=eLYc6W6tt6fvxrP5UgMjvO1B6dtvkbGbsRwUBFnwEh8,2795629
18
- locust_cloud-1.0.18.dist-info/METADATA,sha256=4g75J8J6JcFC_Gs19Qi6z6QIp7pV7TOrmZEiRX3kbdE,2189
19
- locust_cloud-1.0.18.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
20
- locust_cloud-1.0.18.dist-info/entry_points.txt,sha256=PGyAb4e3aTsGS3N3VGShDl6VzJaXy7QwsEgsLOC7V00,57
21
- locust_cloud-1.0.18.dist-info/RECORD,,
18
+ locust_cloud-1.0.19.dist-info/METADATA,sha256=0SILnLlKO8PUWoLNW07HrPIdwMm18-7jJcsOCEPrcB8,2189
19
+ locust_cloud-1.0.19.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
20
+ locust_cloud-1.0.19.dist-info/entry_points.txt,sha256=PGyAb4e3aTsGS3N3VGShDl6VzJaXy7QwsEgsLOC7V00,57
21
+ locust_cloud-1.0.19.dist-info/RECORD,,