tinybird 0.0.1.dev116__py3-none-any.whl → 0.0.1.dev117__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 tinybird might be problematic. Click here for more details.

tinybird/tb/__cli__.py CHANGED
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
4
4
  __url__ = 'https://www.tinybird.co/docs/cli/introduction.html'
5
5
  __author__ = 'Tinybird'
6
6
  __author_email__ = 'support@tinybird.co'
7
- __version__ = '0.0.1.dev116'
8
- __revision__ = 'ac56a58'
7
+ __version__ = '0.0.1.dev117'
8
+ __revision__ = 'f1a78c6'
@@ -244,7 +244,32 @@ async def stop() -> None:
244
244
  click.echo(FeedbackManager.highlight(message="» Shutting down Tinybird Local..."))
245
245
  docker_client = get_docker_client()
246
246
  stop_tinybird_local(docker_client)
247
- click.echo(FeedbackManager.success(message="✓ Tinybird Local stopped"))
247
+ click.echo(FeedbackManager.success(message="✓ Tinybird Local stopped."))
248
+
249
+
250
+ @local.command()
251
+ @coro
252
+ async def status() -> None:
253
+ """Check status of Tinybird Local"""
254
+ docker_client = get_docker_client()
255
+ container = get_existing_container_with_matching_env(docker_client, TB_CONTAINER_NAME, {})
256
+
257
+ if container:
258
+ status = container.status
259
+ health = container.attrs.get("State", {}).get("Health", {}).get("Status")
260
+
261
+ if status == "running" and health == "healthy":
262
+ click.echo(FeedbackManager.success(message="✓ Tinybird Local is ready!"))
263
+ elif status == "restarting" or (status == "running" and health == "starting"):
264
+ click.echo(FeedbackManager.highlight(message="* Tinybird Local is starting..."))
265
+ elif status == "removing":
266
+ click.echo(FeedbackManager.highlight(message="* Tinybird Local is stopping..."))
267
+ else:
268
+ click.echo(
269
+ FeedbackManager.info(message="✗ Tinybird Local is not running. Run 'tb local start' to start it")
270
+ )
271
+ else:
272
+ click.echo(FeedbackManager.info(message="✗ Tinybird Local is not running. Run 'tb local start' to start it"))
248
273
 
249
274
 
250
275
  @local.command()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev116
3
+ Version: 0.0.1.dev117
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -15,7 +15,7 @@ tinybird/syncasync.py,sha256=IPnOx6lMbf9SNddN1eBtssg8vCLHMt76SuZ6YNYm-Yk,27761
15
15
  tinybird/tornado_template.py,sha256=jjNVDMnkYFWXflmT8KU_Ssbo5vR8KQq3EJMk5vYgXRw,41959
16
16
  tinybird/ch_utils/constants.py,sha256=aYvg2C_WxYWsnqPdZB1ZFoIr8ZY-XjUXYyHKE9Ansj0,3890
17
17
  tinybird/ch_utils/engine.py,sha256=BZuPM7MFS7vaEKK5tOMR2bwSAgJudPrJt27uVEwZmTY,40512
18
- tinybird/tb/__cli__.py,sha256=EdSKhwyV5LjGMaLETBlKEvnBA0wYTqWd2lxTFgg4QtQ,252
18
+ tinybird/tb/__cli__.py,sha256=PZ_TsMR0HfJ15pmzNID02ZB15vvlhn6XSbxTM3ATIhw,252
19
19
  tinybird/tb/cli.py,sha256=uDLwcbwSJfVFw-pceijZJqaq26z5jNsey0QaUGFjt7w,1097
20
20
  tinybird/tb/modules/auth.py,sha256=NF0yfkGGBOtZRot-JPYbLD53i2kQ6lxJMD1140xtfzc,9034
21
21
  tinybird/tb/modules/build.py,sha256=Lx1Q-kcxJN0G3pN3qCD8c8RmTpsmMoxCPhmn4DS2QMM,15563
@@ -36,7 +36,7 @@ tinybird/tb/modules/infra.py,sha256=fnbsfx8paRE8RHPbjdSOiOEvtyQbJ95OrHZuCighgKA,
36
36
  tinybird/tb/modules/job.py,sha256=956Pj8BEEsiD2GZsV9RKKVM3I_CveOLgS82lykO5ukk,2963
37
37
  tinybird/tb/modules/llm.py,sha256=AC0VSphTOM2t-v1_3NLvNN_FIbgMo4dTyMqIv5nniPo,835
38
38
  tinybird/tb/modules/llm_utils.py,sha256=nS9r4FAElJw8yXtmdYrx-rtI2zXR8qXfi1QqUDCfxvg,3469
39
- tinybird/tb/modules/local.py,sha256=VZZVHVsqf5BTQdwSNFII5IXjpsK6xoHGdv4zD-WclWc,9912
39
+ tinybird/tb/modules/local.py,sha256=n2BRj51yRmYfd_2fuNPv0iNLKftCP-OvYVtZsUTXQsk,11028
40
40
  tinybird/tb/modules/local_common.py,sha256=RN5OEncHdq7ua4AZ--WgKtaFuEsLvIhq_ROHJadRXXA,3188
41
41
  tinybird/tb/modules/login.py,sha256=lLCJ1kIq3sLcoSMH1kZge5isHh-fDwHPRHApIqbaCkw,6350
42
42
  tinybird/tb/modules/logout.py,sha256=ULooy1cDBD02-r7voZmhV7udA0ML5tVuflJyShrh56Y,1022
@@ -80,8 +80,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
80
80
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
81
81
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
82
82
  tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
83
- tinybird-0.0.1.dev116.dist-info/METADATA,sha256=C-plItUGmJMHyINIbKa9YW3UTa5n5-vlnTXyHkoYTEU,1612
84
- tinybird-0.0.1.dev116.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
85
- tinybird-0.0.1.dev116.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
86
- tinybird-0.0.1.dev116.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
87
- tinybird-0.0.1.dev116.dist-info/RECORD,,
83
+ tinybird-0.0.1.dev117.dist-info/METADATA,sha256=Vi1SsGBNGSRzFKr4oqxcLJMKMH12O4ZSat3Zh6lX6_o,1612
84
+ tinybird-0.0.1.dev117.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
85
+ tinybird-0.0.1.dev117.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
86
+ tinybird-0.0.1.dev117.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
87
+ tinybird-0.0.1.dev117.dist-info/RECORD,,