tinybird 0.0.1.dev65__py3-none-any.whl → 0.0.1.dev66__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.dev65'
8
- __revision__ = 'bb7c13c'
7
+ __version__ = '0.0.1.dev66'
8
+ __revision__ = '449a9aa'
@@ -272,14 +272,13 @@ class Shell:
272
272
  click.echo(FeedbackManager.error(message="'tb workspace' command is not available in watch mode"))
273
273
 
274
274
  def handle_mock(self, arg):
275
- arg = arg.strip().lower()
276
- if "mock" in arg:
275
+ if "mock" in arg.strip().lower():
277
276
  arg = arg.replace("mock", "")
278
277
  subprocess.run(f"tb --build mock {arg} --skip", shell=True, text=True)
279
278
 
280
- def handle_tb(self, arg):
279
+ def handle_tb(self, argline):
281
280
  click.echo("")
282
- arg = arg.strip().lower()
281
+ arg = argline.strip().lower()
283
282
  if arg.startswith("build"):
284
283
  self.handle_build()
285
284
  elif arg.startswith("auth"):
@@ -287,12 +286,12 @@ class Shell:
287
286
  elif arg.startswith("workspace"):
288
287
  self.handle_workspace()
289
288
  elif arg.startswith("mock"):
290
- self.handle_mock(arg)
289
+ self.handle_mock(argline)
291
290
  else:
292
291
  need_skip = ("mock", "test create", "create")
293
292
  if any(arg.startswith(cmd) for cmd in need_skip):
294
- arg = f"{arg} --skip"
295
- subprocess.run(f"tb --build {arg}", shell=True, text=True)
293
+ argline = f"{argline} --skip"
294
+ subprocess.run(f"tb --build {argline}", shell=True, text=True)
296
295
 
297
296
  def default(self, argline):
298
297
  click.echo("")
@@ -302,12 +301,12 @@ class Shell:
302
301
  if arg.startswith("with") or arg.startswith("select"):
303
302
  self.run_sql(argline)
304
303
  elif len(arg.split()) == 1 and arg in self.project.pipes + self.project.datasources:
305
- self.run_sql(f"select * from {arg}")
304
+ self.run_sql(f"select * from {argline}")
306
305
  else:
307
306
  need_skip = ("mock", "test create", "create")
308
307
  if any(arg.startswith(cmd) for cmd in need_skip):
309
- arg = f"{arg} --skip"
310
- subprocess.run(f"tb --build {arg}", shell=True, text=True)
308
+ argline = f"{argline} --skip"
309
+ subprocess.run(f"tb --build {argline}", shell=True, text=True)
311
310
 
312
311
  def run_sql(self, query, rows_limit=20):
313
312
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinybird
3
- Version: 0.0.1.dev65
3
+ Version: 0.0.1.dev66
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=FL85SMPq2dH4JqKovmSbaolGdEzwOO91NqOzqXo2Qr0,41863
16
16
  tinybird/ch_utils/constants.py,sha256=aYvg2C_WxYWsnqPdZB1ZFoIr8ZY-XjUXYyHKE9Ansj0,3890
17
17
  tinybird/ch_utils/engine.py,sha256=OXkBhlzGjZotjD0vaT-rFIbSGV4tpiHxE8qO_ip0SyQ,40454
18
- tinybird/tb/__cli__.py,sha256=fD49yxghhJjtdVUmPoEWjIta0RRP1hCf3gR6vBT8PB4,251
18
+ tinybird/tb/__cli__.py,sha256=GRk6vijLSZx6TsCAFusMMEjXkUNS-ZUlJVmwCBHAcw4,251
19
19
  tinybird/tb/cli.py,sha256=FD1pfbzu9YHJHEG6Vtn_EwPLTYhwqw-I6AxXeTaRHU8,926
20
20
  tinybird/tb/modules/auth.py,sha256=EzRWFmwRkXNhUmRaruEVFLdkbUg8xMSix0cAWl5D4Jg,9029
21
21
  tinybird/tb/modules/build.py,sha256=UN1d7EZ93VOlPCrtsay-KLgZnzxn2NCBDY3wvrUSP1Q,9198
@@ -42,7 +42,7 @@ tinybird/tb/modules/mock.py,sha256=6_hY9a7jdFDwrHnOmOpn1mGchDl9MBIqcNTn8Gm9-Eg,5
42
42
  tinybird/tb/modules/pipe.py,sha256=pH2KwgH6Xbvl3kT8vMelpKvT6bcyB4EKFDvGfOsxXbg,2418
43
43
  tinybird/tb/modules/project.py,sha256=RkejMzY6OLWlJMckziZiZFJLnjFxSeQjagklXAYCzoQ,2945
44
44
  tinybird/tb/modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
45
- tinybird/tb/modules/shell.py,sha256=B9PLdsSIMN9nsSPecQrlBKNwE5ZUTWoyj_U6KOIxfts,14580
45
+ tinybird/tb/modules/shell.py,sha256=6N5M08A0_xllfdZKAvKxrgGrG2CcS6EVtjXNDx6wuBE,14602
46
46
  tinybird/tb/modules/table.py,sha256=4XrtjM-N0zfNtxVkbvLDQQazno1EPXnxTyo7llivfXk,11035
47
47
  tinybird/tb/modules/tag.py,sha256=anPmMUBc-TbFovlpFi8GPkKA18y7Y0GczMsMms5TZsU,3502
48
48
  tinybird/tb/modules/telemetry.py,sha256=iEGnMuCuNhvF6ln__j6X9MSTwL_0Hm-GgFHHHvhfknk,10466
@@ -74,8 +74,8 @@ tinybird/tb_cli_modules/config.py,sha256=6u6B5QCdiQLbJkCkwtnKGs9H3nP-KXXhC75mF7B
74
74
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
75
75
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
76
76
  tinybird/tb_cli_modules/telemetry.py,sha256=iEGnMuCuNhvF6ln__j6X9MSTwL_0Hm-GgFHHHvhfknk,10466
77
- tinybird-0.0.1.dev65.dist-info/METADATA,sha256=XOsZaJhbk6z2jxLEATAMBLOo4EtGmXnij7ZjGPYabNY,2482
78
- tinybird-0.0.1.dev65.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
79
- tinybird-0.0.1.dev65.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
80
- tinybird-0.0.1.dev65.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
81
- tinybird-0.0.1.dev65.dist-info/RECORD,,
77
+ tinybird-0.0.1.dev66.dist-info/METADATA,sha256=-MQeZI-aYygYdJ4eu0Rex_wpY0sWsPZzo5t8gvPIhDs,2482
78
+ tinybird-0.0.1.dev66.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
79
+ tinybird-0.0.1.dev66.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
80
+ tinybird-0.0.1.dev66.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
81
+ tinybird-0.0.1.dev66.dist-info/RECORD,,