locust-cloud 1.2.10__py3-none-any.whl → 1.2.12__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/__init__.py CHANGED
@@ -12,11 +12,12 @@ PG_HOST = os.environ.get("PG_HOST")
12
12
  PG_PASSWORD = os.environ.get("PG_PASSWORD")
13
13
  PG_DATABASE = os.environ.get("PG_DATABASE")
14
14
  PG_PORT = os.environ.get("PG_PORT", 5432)
15
+ GRAPH_VIEWER = os.environ.get("GRAPH_VIEWER")
15
16
 
16
17
 
17
18
  @events.init_command_line_parser.add_listener
18
19
  def add_arguments(parser: LocustArgumentParser):
19
- if not PG_HOST:
20
+ if not (PG_HOST or GRAPH_VIEWER):
20
21
  parser.add_argument_group(
21
22
  "locust-cloud",
22
23
  "locust-cloud disabled, because PG_HOST was not set - this is normal for local runs",
@@ -46,10 +47,10 @@ def add_arguments(parser: LocustArgumentParser):
46
47
 
47
48
  @events.init.add_listener
48
49
  def on_locust_init(environment, **_args):
49
- if not PG_HOST:
50
+ if not (PG_HOST or GRAPH_VIEWER):
50
51
  return
51
52
 
52
- if environment.parsed_options.exporter:
53
+ if not GRAPH_VIEWER and environment.parsed_options.exporter:
53
54
  Timescale(
54
55
  environment,
55
56
  pg_user=PG_USER,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: locust-cloud
3
- Version: 1.2.10
3
+ Version: 1.2.12
4
4
  Summary: Locust Cloud
5
5
  Project-URL: Homepage, https://locust.cloud
6
6
  Requires-Python: >=3.11
@@ -1,4 +1,4 @@
1
- locust_cloud/__init__.py,sha256=51wdjGT0nqS5dVuFVDMhthnPacrctteiCMrwRqaPaQg,1867
1
+ locust_cloud/__init__.py,sha256=d-vcft9odW37rtliWSquU4h-BQNlZftSKDoZTk90HsM,1970
2
2
  locust_cloud/auth.py,sha256=2fcTIq0tYDckDsZZ7yFTHZn5nG7Ir1dlV1QIu_tp3JA,3164
3
3
  locust_cloud/cloud.py,sha256=gEiP2Lq7iQbWYiuuDbLmMgv5CUTUrYJ1uRzAgFv2cHw,15062
4
4
  locust_cloud/constants.py,sha256=YGgIEnaOT9cAA8F8a8Z8lOmlI78D2fXiVpP0RF213MA,167
@@ -15,7 +15,7 @@ locust_cloud/webui/vite.config.ts,sha256=cqxPMkbwEA3H9mGGbuPulQUhIHCosUqm_1usxzs
15
15
  locust_cloud/webui/yarn.lock,sha256=HQipc2d3thDdUieYtmTLSOxMlgpN-nQjVWKusAlvf2g,227106
16
16
  locust_cloud/webui/dist/index.html,sha256=uRX9dnfQEMYFWaKl0czXN_2JbtQF0WRgP4gEOWG0WpQ,664
17
17
  locust_cloud/webui/dist/assets/index-BzflLAyP.js,sha256=GR85cK07EBnN6PBKImgYlHdsBl40y0Tay9J8w9LZKqc,2794820
18
- locust_cloud-1.2.10.dist-info/METADATA,sha256=1Oyvvs7wn5Ee146vn77Sicg723dL_Gl_n0mogMrV7CM,1664
19
- locust_cloud-1.2.10.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
20
- locust_cloud-1.2.10.dist-info/entry_points.txt,sha256=PGyAb4e3aTsGS3N3VGShDl6VzJaXy7QwsEgsLOC7V00,57
21
- locust_cloud-1.2.10.dist-info/RECORD,,
18
+ locust_cloud-1.2.12.dist-info/METADATA,sha256=rOtFHGBE1-1QiHrAutxSdcvr5AH9wIef8XvRUelNpxA,1664
19
+ locust_cloud-1.2.12.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
20
+ locust_cloud-1.2.12.dist-info/entry_points.txt,sha256=PGyAb4e3aTsGS3N3VGShDl6VzJaXy7QwsEgsLOC7V00,57
21
+ locust_cloud-1.2.12.dist-info/RECORD,,