tinybird 0.0.1.dev168__py3-none-any.whl → 0.0.1.dev170__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/forward/commands'
5
5
  __author__ = 'Tinybird'
6
6
  __author_email__ = 'support@tinybird.co'
7
- __version__ = '0.0.1.dev168'
8
- __revision__ = 'd746fb3'
7
+ __version__ = '0.0.1.dev170'
8
+ __revision__ = '0c715ac'
@@ -435,13 +435,8 @@ def save_context(prompt: str, feedback: str):
435
435
 
436
436
 
437
437
  def get_resources_xml(project: Project) -> str:
438
- folder = project.folder
439
- datasource_paths = [
440
- Path(folder) / "datasources" / f for f in os.listdir(Path(folder) / "datasources") if f.endswith(".datasource")
441
- ]
442
- pipes_paths = [
443
- Path(folder) / "endpoints" / f for f in os.listdir(Path(folder) / "endpoints") if f.endswith(".pipe")
444
- ]
438
+ datasource_paths = [Path(f) for f in project.get_datasource_files()]
439
+ pipes_paths = [Path(f) for f in project.get_pipe_files()]
445
440
  resources_xml = "\n".join(
446
441
  [
447
442
  f"<resource><type>{resource_type}</type><name>{resource_name}</name><content>{resource_content}</content></resource>"
@@ -419,7 +419,7 @@ def deployment_discard(ctx: click.Context, wait: bool) -> None:
419
419
  discard_deployment(client.host, HEADERS, wait=wait)
420
420
 
421
421
 
422
- @cli.command(name="deploy", hidden=True)
422
+ @cli.command(name="deploy")
423
423
  @click.option(
424
424
  "--wait/--no-wait",
425
425
  is_flag=True,
@@ -5,7 +5,7 @@ from tinybird.tb.modules.config import CLIConfig
5
5
  from tinybird.tb.modules.feedback_manager import FeedbackManager
6
6
 
7
7
 
8
- @cli.command(name="logout", hidden=True)
8
+ @cli.command(name="logout")
9
9
  def logout() -> None:
10
10
  """
11
11
  Remove authentication from Tinybird.
@@ -38,32 +38,26 @@ class Project:
38
38
  return None
39
39
  return Path(full_path).relative_to(self.path).as_posix()
40
40
 
41
- def get_vendor_files(self) -> List[str]:
42
- vendor_files: List[str] = []
43
- for project_file in glob.glob(f"{self.vendor_path}/**/*.datasource", recursive=False):
44
- vendor_files.append(project_file)
45
- return vendor_files
46
-
47
41
  @property
48
42
  def datasources(self) -> List[str]:
49
- return sorted([Path(f).stem for f in glob.glob(f"{self.path}/**/*.datasource", recursive=False)])
43
+ return sorted([Path(f).stem for f in self.get_datasource_files()])
50
44
 
51
45
  @property
52
46
  def pipes(self) -> List[str]:
53
- return sorted([Path(f).stem for f in glob.glob(f"{self.path}/**/*.pipe", recursive=False)])
47
+ return sorted([Path(f).stem for f in self.get_pipe_files()])
54
48
 
55
49
  @property
56
50
  def connections(self) -> List[str]:
57
- return sorted([Path(f).stem for f in glob.glob(f"{self.path}/**/*.connection", recursive=False)])
51
+ return sorted([Path(f).stem for f in self.get_connection_files()])
58
52
 
59
53
  def get_datasource_files(self) -> List[str]:
60
- return glob.glob(f"{self.path}/**/*.datasource", recursive=False)
54
+ return glob.glob(f"{self.path}/**/*.datasource", recursive=True)
61
55
 
62
56
  def get_pipe_files(self) -> List[str]:
63
- return glob.glob(f"{self.path}/**/*.pipe", recursive=False)
57
+ return glob.glob(f"{self.path}/**/*.pipe", recursive=True)
64
58
 
65
59
  def get_connection_files(self) -> List[str]:
66
- return glob.glob(f"{self.path}/**/*.connection", recursive=False)
60
+ return glob.glob(f"{self.path}/**/*.connection", recursive=True)
67
61
 
68
62
  def get_pipe_datafile(self, filename: str) -> Optional[Datafile]:
69
63
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev168
3
+ Version: 0.0.1.dev170
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -12,7 +12,7 @@ tinybird/syncasync.py,sha256=IPnOx6lMbf9SNddN1eBtssg8vCLHMt76SuZ6YNYm-Yk,27761
12
12
  tinybird/tornado_template.py,sha256=jjNVDMnkYFWXflmT8KU_Ssbo5vR8KQq3EJMk5vYgXRw,41959
13
13
  tinybird/ch_utils/constants.py,sha256=aYvg2C_WxYWsnqPdZB1ZFoIr8ZY-XjUXYyHKE9Ansj0,3890
14
14
  tinybird/ch_utils/engine.py,sha256=X4tE9OrfaUy6kO9cqVEzyI9cDcmOF3IAssRRzsTsfEQ,40781
15
- tinybird/tb/__cli__.py,sha256=XPx4-MwELLknnQYjPb6p_n3szbXZ7pyW7d3_yhPjhGc,247
15
+ tinybird/tb/__cli__.py,sha256=vD6Y8VoWGa0KwaRdT1ksFw14CJ5K3i8ornL8qjiLOt4,247
16
16
  tinybird/tb/check_pypi.py,sha256=rW4QmDRbtgKdUUwJCnBkVjmTjZSZGN-XgZhx7vMkC0w,1009
17
17
  tinybird/tb/cli.py,sha256=u3eGOhX0MHkuT6tiwaZ0_3twqLmqKXDAOxF7yV_Nn9Q,1075
18
18
  tinybird/tb/client.py,sha256=CSBl_JRuioPyY0H8Ac96dJ9wQXDXfrvK2lwqlOxKGoY,55715
@@ -24,9 +24,9 @@ tinybird/tb/modules/common.py,sha256=12SMmfOlEwQZGBUR22KNVNdTXhEMc0BjvDJ7bbqhZf4
24
24
  tinybird/tb/modules/config.py,sha256=ziqW_t_mRVvWOd85VoB4vKyvgMkEfpXDf9H4v38p2xc,11422
25
25
  tinybird/tb/modules/connection.py,sha256=7oOR7x4PhBcm1ETFFCH2YJ_3oeGXjAbmx1cnZX9_L70,9014
26
26
  tinybird/tb/modules/copy.py,sha256=2Mm4FWKehOG7CoOhiF1m9UZJgJn0W1_cMolqju8ONYg,5805
27
- tinybird/tb/modules/create.py,sha256=OHUvuHuvP0iecPPGI4eVOHOgR20qy7a_Sw7sbJKuG8g,17411
27
+ tinybird/tb/modules/create.py,sha256=_s_vdb9pjq1ORajE_gFMxSGVuns1imNgiD5H8KuI2gQ,17231
28
28
  tinybird/tb/modules/datasource.py,sha256=V314rkpdVxVMjsp5qcSCTqDlmp4Vu--qM07BoWh-aqs,17783
29
- tinybird/tb/modules/deployment.py,sha256=rChSiCSB4t7528Ojf-E3KAvLJfvYARqZ-W6M8WZnOE0,26854
29
+ tinybird/tb/modules/deployment.py,sha256=z2xK8EwKbx_a-rIOxIo3o_IQibcBASOaFfeWWosQFhs,26841
30
30
  tinybird/tb/modules/deprecations.py,sha256=rrszC1f_JJeJ8mUxGoCxckQTJFBCR8wREf4XXXN-PRc,4507
31
31
  tinybird/tb/modules/dev_server.py,sha256=57FCKuWpErwYUYgHspYDkLWEm9F4pbvVOtMrFXX1fVU,10129
32
32
  tinybird/tb/modules/endpoint.py,sha256=XySDt3pk66vxOZ0egUfz4bY8bEk3BjOXkv-L0OIJ3sc,12083
@@ -40,12 +40,12 @@ tinybird/tb/modules/llm_utils.py,sha256=nS9r4FAElJw8yXtmdYrx-rtI2zXR8qXfi1QqUDCf
40
40
  tinybird/tb/modules/local.py,sha256=SUaGWH9TLDFFF9uCw4y7UW4NsKgnXG8uxTcxz1dbkCM,14230
41
41
  tinybird/tb/modules/local_common.py,sha256=msAZDNPPVenNyL9Dqfb0Z5uFC_1O809xdAi7j1iKmJA,17066
42
42
  tinybird/tb/modules/login.py,sha256=fmXPSdvJnKPv03chptGuu3_Fm6LhP6kUsUKhrmT8rJc,8269
43
- tinybird/tb/modules/logout.py,sha256=ULooy1cDBD02-r7voZmhV7udA0ML5tVuflJyShrh56Y,1022
43
+ tinybird/tb/modules/logout.py,sha256=sniI4JNxpTrVeRCp0oGJuQ3yRerG4hH5uz6oBmjv724,1009
44
44
  tinybird/tb/modules/materialization.py,sha256=QJX5kCPhhm6IXBO1JsalVfbQdypCe_eOUDZ_WHJZWS8,5478
45
45
  tinybird/tb/modules/mock.py,sha256=IyHweMUM6bUH8IhyiX2tTMpdVpTFUeAJ41lZ5P42-HQ,5303
46
46
  tinybird/tb/modules/open.py,sha256=OuctINN77oexpSjth9uoIZPCelKO4Li-yyVxeSnk1io,1371
47
47
  tinybird/tb/modules/pipe.py,sha256=AQKEDagO6e3psPVjJkS_MDbn8aK-apAiLp26k7jgAV0,2432
48
- tinybird/tb/modules/project.py,sha256=PwEG8Ob9bW4HZxh1jQq2LyDfIoitqF69Jdu0WsWHMCg,3568
48
+ tinybird/tb/modules/project.py,sha256=yENgJAqRx_eH_n7qalPMWWMZpjEWhAf0CMfGM6ChQrM,3220
49
49
  tinybird/tb/modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
50
50
  tinybird/tb/modules/secret.py,sha256=WsqzxxLh9W_jkuHL2JofMXdIJy0lT5WEI-7bQSIDgAc,2921
51
51
  tinybird/tb/modules/shell.py,sha256=Zd_4Ak_5tKVX-cw6B4ag36xZeEGHeh-jZpAsIXkoMoE,14116
@@ -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.dev168.dist-info/METADATA,sha256=7U21tZLoTw5A0sAI75vDGVKAbv05tNj0GHruwEm3Q0Y,1607
84
- tinybird-0.0.1.dev168.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
85
- tinybird-0.0.1.dev168.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
86
- tinybird-0.0.1.dev168.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
87
- tinybird-0.0.1.dev168.dist-info/RECORD,,
83
+ tinybird-0.0.1.dev170.dist-info/METADATA,sha256=rh49VPqPEc8mRA4VUEFKfP5H46DQWyL6Q4p1P8sYLnM,1607
84
+ tinybird-0.0.1.dev170.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
85
+ tinybird-0.0.1.dev170.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
86
+ tinybird-0.0.1.dev170.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
87
+ tinybird-0.0.1.dev170.dist-info/RECORD,,