tinybird 0.0.1.dev191__tar.gz → 0.0.1.dev192__tar.gz

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.

Files changed (110) hide show
  1. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/PKG-INFO +1 -1
  2. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/__cli__.py +2 -2
  3. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/build.py +1 -2
  4. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/deployment.py +30 -17
  5. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/project.py +12 -3
  6. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird.egg-info/PKG-INFO +1 -1
  7. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/setup.cfg +0 -0
  8. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/__cli__.py +0 -0
  9. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/ch_utils/constants.py +0 -0
  10. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/ch_utils/engine.py +0 -0
  11. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/check_pypi.py +0 -0
  12. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/client.py +0 -0
  13. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/config.py +0 -0
  14. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/connectors.py +0 -0
  15. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/context.py +0 -0
  16. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/datafile.py +0 -0
  17. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/datatypes.py +0 -0
  18. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/feedback_manager.py +0 -0
  19. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/git_settings.py +0 -0
  20. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/prompts.py +0 -0
  21. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/sql.py +0 -0
  22. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/sql_template.py +0 -0
  23. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/sql_template_fmt.py +0 -0
  24. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/sql_toolset.py +0 -0
  25. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/syncasync.py +0 -0
  26. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/check_pypi.py +0 -0
  27. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/cli.py +0 -0
  28. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/client.py +0 -0
  29. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/config.py +0 -0
  30. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/cicd.py +0 -0
  31. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/cli.py +0 -0
  32. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/common.py +0 -0
  33. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/config.py +0 -0
  34. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/connection.py +0 -0
  35. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/copy.py +0 -0
  36. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/create.py +0 -0
  37. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/build.py +0 -0
  38. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/build_common.py +0 -0
  39. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
  40. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
  41. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/common.py +0 -0
  42. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/diff.py +0 -0
  43. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/exceptions.py +0 -0
  44. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/fixture.py +0 -0
  45. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/format_common.py +0 -0
  46. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
  47. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
  48. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
  49. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
  50. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
  51. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/playground.py +0 -0
  52. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datafile/pull.py +0 -0
  53. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/datasource.py +0 -0
  54. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/deprecations.py +0 -0
  55. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/dev_server.py +0 -0
  56. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/endpoint.py +0 -0
  57. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/exceptions.py +0 -0
  58. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/feedback_manager.py +0 -0
  59. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/info.py +0 -0
  60. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/infra.py +0 -0
  61. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/job.py +0 -0
  62. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/llm.py +0 -0
  63. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/llm_utils.py +0 -0
  64. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/local.py +0 -0
  65. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/local_common.py +0 -0
  66. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/login.py +0 -0
  67. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/logout.py +0 -0
  68. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/materialization.py +0 -0
  69. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/mock.py +0 -0
  70. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/open.py +0 -0
  71. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/pipe.py +0 -0
  72. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/regions.py +0 -0
  73. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/secret.py +0 -0
  74. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/shell.py +0 -0
  75. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/table.py +0 -0
  76. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/telemetry.py +0 -0
  77. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/test.py +0 -0
  78. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
  79. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
  80. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/token.py +0 -0
  81. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/watch.py +0 -0
  82. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/workspace.py +0 -0
  83. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb/modules/workspace_members.py +0 -0
  84. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli.py +0 -0
  85. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/auth.py +0 -0
  86. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/branch.py +0 -0
  87. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/cicd.py +0 -0
  88. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/cli.py +0 -0
  89. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/common.py +0 -0
  90. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/config.py +0 -0
  91. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/connection.py +0 -0
  92. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/datasource.py +0 -0
  93. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/exceptions.py +0 -0
  94. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/fmt.py +0 -0
  95. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/job.py +0 -0
  96. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/pipe.py +0 -0
  97. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/regions.py +0 -0
  98. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/tag.py +0 -0
  99. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/telemetry.py +0 -0
  100. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/test.py +0 -0
  101. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
  102. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
  103. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/workspace.py +0 -0
  104. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tb_cli_modules/workspace_members.py +0 -0
  105. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird/tornado_template.py +0 -0
  106. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird.egg-info/SOURCES.txt +0 -0
  107. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird.egg-info/dependency_links.txt +0 -0
  108. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird.egg-info/entry_points.txt +0 -0
  109. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird.egg-info/requires.txt +0 -0
  110. {tinybird-0.0.1.dev191 → tinybird-0.0.1.dev192}/tinybird.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev191
3
+ Version: 0.0.1.dev192
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -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.dev191'
8
- __revision__ = 'c8535c7'
7
+ __version__ = '0.0.1.dev192'
8
+ __revision__ = '116c2dc'
@@ -258,7 +258,6 @@ def show_data(tb_client: TinyB, filename: str, diff: Optional[str] = None):
258
258
  table_name = diff
259
259
  resource_path = Path(filename)
260
260
  resource_name = resource_path.stem
261
- resource_content = resource_path.read_text()
262
261
 
263
262
  pipeline = resource_name if filename.endswith(".pipe") else None
264
263
 
@@ -269,7 +268,7 @@ def show_data(tb_client: TinyB, filename: str, diff: Optional[str] = None):
269
268
 
270
269
  res = asyncio.run(tb_client.query(sql, pipeline=pipeline))
271
270
  print_table_formatted(res, table_name)
272
- if Project.is_endpoint(resource_content):
271
+ if Project.get_pipe_type(filename) == "endpoint":
273
272
  example_params = {
274
273
  "format": "json",
275
274
  "pipe": resource_name,
@@ -15,7 +15,7 @@ from tinybird.tb.modules.common import (
15
15
  get_display_cloud_host,
16
16
  sys_exit,
17
17
  )
18
- from tinybird.tb.modules.feedback_manager import FeedbackManager
18
+ from tinybird.tb.modules.feedback_manager import FeedbackManager, bcolors
19
19
  from tinybird.tb.modules.project import Project
20
20
 
21
21
 
@@ -229,10 +229,17 @@ def promote_deployment(host: Optional[str], headers: dict, wait: bool) -> None:
229
229
 
230
230
  last_deployment = result.get("deployment")
231
231
  if last_deployment.get("status") == "deleted":
232
- click.echo(FeedbackManager.success(message="✓ Deployment is live!"))
232
+ click.echo(FeedbackManager.success(message=f"✓ Deployment #{candidate_deployment.get('id')} is live!"))
233
233
  break
234
234
 
235
235
  time.sleep(5)
236
+ if last_deployment.get("id") == "0":
237
+ # This is the first deployment, so we prompt the user to ingest data
238
+ click.echo(
239
+ FeedbackManager.info(
240
+ message="A deployment with no data is useless. Learn how to ingest at https://www.tinybird.co/docs/forward/get-data-in"
241
+ )
242
+ )
236
243
 
237
244
 
238
245
  # TODO(eclbg): This logic should be in the server, and there should be a dedicated endpoint for discarding a
@@ -590,8 +597,8 @@ def create_deployment(
590
597
  if status == "success":
591
598
  host = get_display_cloud_host(client.host)
592
599
  click.echo(
593
- FeedbackManager.gray(message="Deployment URL: ")
594
- + FeedbackManager.info(message=f"{host}/{config.get('name')}/deployments/{deployment.get('id')}")
600
+ FeedbackManager.info(message="Deployment URL: ")
601
+ + f"{bcolors.UNDERLINE}{host}/{config.get('name')}/deployments/{deployment.get('id')}{bcolors.ENDC}"
595
602
  )
596
603
 
597
604
  if wait:
@@ -655,40 +662,46 @@ def create_deployment(
655
662
 
656
663
  def print_changes(result: dict, project: Project) -> None:
657
664
  deployment = result.get("deployment", {})
658
- resources_columns = ["status", "name", "path"]
665
+ resources_columns = ["status", "name", "type", "path"]
659
666
  resources: list[list[Union[str, None]]] = []
660
667
  tokens_columns = ["Change", "Token name", "Added permissions", "Removed permissions"]
661
668
  tokens: list[Tuple[str, str, str, str]] = []
662
669
 
663
670
  for ds in deployment.get("new_datasource_names", []):
664
- resources.append(["new", ds, project.get_resource_path(ds, "datasource")])
671
+ resources.append(["new", ds, "datasource", project.get_resource_path(ds, "datasource")])
665
672
 
666
673
  for p in deployment.get("new_pipe_names", []):
667
- resources.append(["new", p, project.get_resource_path(p, "pipe")])
674
+ path = str(project.get_resource_path(p, "pipe"))
675
+ pipe_type = project.get_pipe_type(path)
676
+ resources.append(["new", p, pipe_type, path])
668
677
 
669
678
  for dc in deployment.get("new_data_connector_names", []):
670
- resources.append(["new", dc, project.get_resource_path(dc, "connection")])
679
+ resources.append(["new", dc, "connection", project.get_resource_path(dc, "connection")])
671
680
 
672
681
  for ds in deployment.get("changed_datasource_names", []):
673
- resources.append(["modified", ds, project.get_resource_path(ds, "datasource")])
682
+ resources.append(["modified", ds, "datasource", project.get_resource_path(ds, "datasource")])
674
683
 
675
684
  for p in deployment.get("changed_pipe_names", []):
676
- resources.append(["modified", p, project.get_resource_path(p, "pipe")])
685
+ path = str(project.get_resource_path(p, "pipe"))
686
+ pipe_type = project.get_pipe_type(path)
687
+ resources.append(["modified", p, pipe_type, path])
677
688
 
678
689
  for dc in deployment.get("changed_data_connector_names", []):
679
- resources.append(["modified", dc, project.get_resource_path(dc, "connection")])
690
+ resources.append(["modified", dc, "connection", project.get_resource_path(dc, "connection")])
680
691
 
681
692
  for ds in deployment.get("disconnected_data_source_names", []):
682
- resources.append(["modified", ds, project.get_resource_path(ds, "datasource")])
693
+ resources.append(["modified", ds, "datasource", project.get_resource_path(ds, "datasource")])
683
694
 
684
695
  for ds in deployment.get("deleted_datasource_names", []):
685
- resources.append(["deleted", ds, project.get_resource_path(ds, "datasource")])
696
+ resources.append(["deleted", ds, "datasource", project.get_resource_path(ds, "datasource")])
686
697
 
687
698
  for p in deployment.get("deleted_pipe_names", []):
688
- resources.append(["deleted", p, project.get_resource_path(p, "pipe")])
699
+ path = str(project.get_resource_path(p, "pipe"))
700
+ pipe_type = project.get_pipe_type(path)
701
+ resources.append(["deleted", p, pipe_type, path])
689
702
 
690
703
  for dc in deployment.get("deleted_data_connector_names", []):
691
- resources.append(["deleted", dc, project.get_resource_path(dc, "connection")])
704
+ resources.append(["deleted", dc, "connection", project.get_resource_path(dc, "connection")])
692
705
 
693
706
  for token_change in deployment.get("token_changes", []):
694
707
  token_name = token_change.get("token_name")
@@ -707,9 +720,9 @@ def print_changes(result: dict, project: Project) -> None:
707
720
  click.echo(FeedbackManager.info(message="\n* Changes to be deployed:"))
708
721
  echo_safe_humanfriendly_tables_format_smart_table(resources, column_names=resources_columns)
709
722
  else:
710
- click.echo(FeedbackManager.info(message="\n* No changes to be deployed"))
723
+ click.echo(FeedbackManager.gray(message="\n* No changes to be deployed"))
711
724
  if tokens:
712
725
  click.echo(FeedbackManager.info(message="\n* Changes in tokens to be deployed:"))
713
726
  echo_safe_humanfriendly_tables_format_smart_table(tokens, column_names=tokens_columns)
714
727
  else:
715
- click.echo(FeedbackManager.info(message="* No changes in tokens to be deployed"))
728
+ click.echo(FeedbackManager.gray(message="* No changes in tokens to be deployed"))
@@ -51,7 +51,9 @@ class Project:
51
51
  return project_files
52
52
 
53
53
  def get_resource_path(self, resource_name: str, resource_type: str) -> Optional[str]:
54
- full_path = next((p for p in self.get_project_files() if p.endswith(resource_name + f".{resource_type}")), "")
54
+ full_path = next(
55
+ (p for p in self.get_project_files() if p.endswith("/" + resource_name + f".{resource_type}")), ""
56
+ )
55
57
  if not full_path:
56
58
  return None
57
59
  return Path(full_path).relative_to(self.path).as_posix()
@@ -114,8 +116,15 @@ class Project:
114
116
  return datafiles
115
117
 
116
118
  @staticmethod
117
- def is_endpoint(content: str) -> bool:
118
- return re.search(r"TYPE endpoint", content, re.IGNORECASE) is not None
119
+ def get_pipe_type(path: str) -> str:
120
+ content = Path(path).read_text()
121
+ if re.search(r"TYPE endpoint", content, re.IGNORECASE):
122
+ return "endpoint"
123
+ elif re.search(r"TYPE materialized", content, re.IGNORECASE):
124
+ return "materialization"
125
+ elif re.search(r"TYPE copy", content, re.IGNORECASE):
126
+ return "copy"
127
+ return "pipe"
119
128
 
120
129
  @staticmethod
121
130
  def is_kafka_connection(content: str) -> bool:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev191
3
+ Version: 0.0.1.dev192
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird