tinybird 0.0.1.dev106__tar.gz → 0.0.1.dev108__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 (108) hide show
  1. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/PKG-INFO +1 -1
  2. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/prompts.py +3 -1
  3. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/__cli__.py +2 -2
  4. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/cicd.py +49 -0
  5. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/local.py +36 -18
  6. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/login.py +1 -1
  7. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird.egg-info/PKG-INFO +1 -1
  8. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/setup.cfg +0 -0
  9. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/__cli__.py +0 -0
  10. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/ch_utils/constants.py +0 -0
  11. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/ch_utils/engine.py +0 -0
  12. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/check_pypi.py +0 -0
  13. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/client.py +0 -0
  14. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/config.py +0 -0
  15. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/connectors.py +0 -0
  16. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/context.py +0 -0
  17. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/datafile.py +0 -0
  18. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/datatypes.py +0 -0
  19. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/feedback_manager.py +0 -0
  20. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/git_settings.py +0 -0
  21. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/sql.py +0 -0
  22. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/sql_template.py +0 -0
  23. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/sql_template_fmt.py +0 -0
  24. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/sql_toolset.py +0 -0
  25. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/syncasync.py +0 -0
  26. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/cli.py +0 -0
  27. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/auth.py +0 -0
  28. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/build.py +0 -0
  29. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/cli.py +0 -0
  30. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/common.py +0 -0
  31. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/config.py +0 -0
  32. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/connection.py +0 -0
  33. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/copy.py +0 -0
  34. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/create.py +0 -0
  35. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/build.py +0 -0
  36. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/build_common.py +0 -0
  37. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
  38. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
  39. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/common.py +0 -0
  40. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/diff.py +0 -0
  41. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/exceptions.py +0 -0
  42. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/fixture.py +0 -0
  43. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/format_common.py +0 -0
  44. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
  45. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
  46. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
  47. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
  48. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
  49. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/playground.py +0 -0
  50. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datafile/pull.py +0 -0
  51. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/datasource.py +0 -0
  52. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/deployment.py +0 -0
  53. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/endpoint.py +0 -0
  54. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/exceptions.py +0 -0
  55. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/feedback_manager.py +0 -0
  56. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/fmt.py +0 -0
  57. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/infra.py +0 -0
  58. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/job.py +0 -0
  59. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/llm.py +0 -0
  60. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/llm_utils.py +0 -0
  61. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/local_common.py +0 -0
  62. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/logout.py +0 -0
  63. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/materialization.py +0 -0
  64. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/mock.py +0 -0
  65. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/open.py +0 -0
  66. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/pipe.py +0 -0
  67. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/playground.py +0 -0
  68. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/project.py +0 -0
  69. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/regions.py +0 -0
  70. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/secret.py +0 -0
  71. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/shell.py +0 -0
  72. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/table.py +0 -0
  73. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/tag.py +0 -0
  74. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/telemetry.py +0 -0
  75. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/test.py +0 -0
  76. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
  77. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
  78. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/token.py +0 -0
  79. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/watch.py +0 -0
  80. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/workspace.py +0 -0
  81. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb/modules/workspace_members.py +0 -0
  82. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli.py +0 -0
  83. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/auth.py +0 -0
  84. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/branch.py +0 -0
  85. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/cicd.py +0 -0
  86. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/cli.py +0 -0
  87. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/common.py +0 -0
  88. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/config.py +0 -0
  89. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/connection.py +0 -0
  90. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/datasource.py +0 -0
  91. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/exceptions.py +0 -0
  92. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/fmt.py +0 -0
  93. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/job.py +0 -0
  94. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/pipe.py +0 -0
  95. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/regions.py +0 -0
  96. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/tag.py +0 -0
  97. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/telemetry.py +0 -0
  98. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/test.py +0 -0
  99. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
  100. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
  101. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/workspace.py +0 -0
  102. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tb_cli_modules/workspace_members.py +0 -0
  103. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird/tornado_template.py +0 -0
  104. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird.egg-info/SOURCES.txt +0 -0
  105. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird.egg-info/dependency_links.txt +0 -0
  106. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird.egg-info/entry_points.txt +0 -0
  107. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/tinybird.egg-info/requires.txt +0 -0
  108. {tinybird-0.0.1.dev106 → tinybird-0.0.1.dev108}/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.dev106
3
+ Version: 0.0.1.dev108
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -605,8 +605,9 @@ Follow the instructions and generate the following response with no additional t
605
605
  copy_pipe_instructions = """
606
606
  <copy_pipe_instructions>
607
607
  - Do not create copy pipes by default, unless the user asks for it.
608
+ - Copy pipes should be created in the /copies folder.
608
609
  - In a .pipe file you can define how to export the result of a Pipe to a Data Source, optionally with a schedule.
609
- - Do not include COPY_SCHEDULE in the .pipe file if it is not requested by the user.
610
+ - Do not include COPY_SCHEDULE in the .pipe file unless is specifically requested by the user.
610
611
  - COPY_SCHEDULE is a cron expression that defines the schedule of the copy pipe.
611
612
  - COPY_SCHEDULE is optional and if not provided, the copy pipe will be executed only once.
612
613
  - TARGET_DATASOURCE is the name of the Data Source to export the result to.
@@ -634,6 +635,7 @@ COPY_SCHEDULE 0 * * * *
634
635
  materialized_pipe_instructions = """
635
636
  <materialized_pipe_instructions>
636
637
  - Do not create materialized pipes by default, unless the user asks for it.
638
+ - Materialized pipes should be created in the /materializations folder.
637
639
  - In a .pipe file you can define how to materialize each row ingested in the earliest Data Source in the Pipe query to a materialized Data Source. Materialization happens at ingest.
638
640
  - DATASOURCE: Required when TYPE is MATERIALIZED. Sets the target Data Source for materialized nodes.
639
641
  - TYPE MATERIALIZED is the type of the pipe and it is mandatory for materialized pipes.
@@ -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.dev106'
8
- __revision__ = 'b74e464'
7
+ __version__ = '0.0.1.dev108'
8
+ __revision__ = '1909c2e'
@@ -58,6 +58,33 @@ jobs:
58
58
  run: tb --cloud --host ${{! env.TINYBIRD_HOST }} --token ${{! env.TINYBIRD_TOKEN }} deploy --check
59
59
  """
60
60
 
61
+ GITHUB_CD_YML = """
62
+ name: Tinybird - CD Workflow
63
+
64
+ on:
65
+ push:
66
+ branches:
67
+ - main
68
+ - master{% if data_project_dir != '.' %}
69
+ paths:
70
+ - '{{ data_project_dir }}/**'{% end %}
71
+
72
+ concurrency: ${{! github.workflow }}-${{! github.event.ref }}
73
+
74
+ env:
75
+ TINYBIRD_HOST: ${{! secrets.TINYBIRD_HOST }}
76
+ TINYBIRD_TOKEN: ${{! secrets.TINYBIRD_TOKEN }}
77
+
78
+ jobs:
79
+ cd:
80
+ runs-on: ubuntu-latest
81
+ steps:
82
+ - uses: actions/checkout@v3
83
+ - name: Install Tinybird CLI
84
+ run: curl -LsSf https://api.tinybird.co/static/install.sh | sh
85
+ - name: Deploy project
86
+ run: tb --cloud --host ${{! env.TINYBIRD_HOST }} --token ${{! env.TINYBIRD_TOKEN }} deploy
87
+ """
61
88
 
62
89
  GITLAB_YML = """
63
90
  include:
@@ -65,6 +92,7 @@ include:
65
92
 
66
93
  stages:
67
94
  - tests
95
+ - deploy
68
96
  """
69
97
 
70
98
 
@@ -92,6 +120,22 @@ tinybird_ci_workflow:
92
120
  services:
93
121
  - name: tinybirdco/tinybird-local:beta
94
122
  alias: tinybird-local
123
+
124
+ tinybird_cd_workflow:
125
+ image: ubuntu:latest
126
+ stage: deploy
127
+ resource_group: production
128
+ needs: []
129
+ rules:
130
+ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
131
+ changes:
132
+ - .gitlab/tinybird/*{% if data_project_dir != '.' %}
133
+ - {{ data_project_dir }}/*
134
+ - {{ data_project_dir }}/**/*{% end %}
135
+ script:
136
+ - export PATH="$HOME/.local/bin:$PATH"
137
+ - cd $CI_PROJECT_DIR/{{ data_project_dir }}
138
+ - tb --cloud --host ${{! TINYBIRD_HOST }} --token ${{! TINYBIRD_TOKEN }} deploy
95
139
  """
96
140
 
97
141
 
@@ -153,6 +197,11 @@ class GitHubCICDGenerator(CICDGeneratorBase):
153
197
  file_name="tinybird-ci.yml",
154
198
  dir_path=".github/workflows",
155
199
  ),
200
+ CICDFile(
201
+ template=GITHUB_CD_YML,
202
+ file_name="tinybird-cd.yml",
203
+ dir_path=".github/workflows",
204
+ ),
156
205
  ]
157
206
 
158
207
 
@@ -1,4 +1,3 @@
1
- import os
2
1
  import re
3
2
  import subprocess
4
3
  import time
@@ -7,6 +6,7 @@ import boto3
7
6
  import click
8
7
 
9
8
  import docker
9
+ from docker.client import DockerClient
10
10
  from tinybird.tb.modules.cli import cli
11
11
  from tinybird.tb.modules.common import coro
12
12
  from tinybird.tb.modules.exceptions import CLIException
@@ -15,8 +15,9 @@ from tinybird.tb.modules.local_common import TB_CONTAINER_NAME, TB_IMAGE_NAME, T
15
15
 
16
16
 
17
17
  def start_tinybird_local(
18
- docker_client,
19
- ):
18
+ docker_client: DockerClient,
19
+ use_aws_creds: bool,
20
+ ) -> None:
20
21
  """Start the Tinybird container."""
21
22
  pull_show_prompt = False
22
23
  pull_required = False
@@ -52,13 +53,13 @@ def start_tinybird_local(
52
53
  if container:
53
54
  container.remove(force=True)
54
55
 
55
- environment = get_local_aws_credentials()
56
+ environment = get_use_aws_creds() if use_aws_creds else {}
56
57
 
57
58
  container = docker_client.containers.run(
58
59
  TB_IMAGE_NAME,
59
60
  name=TB_CONTAINER_NAME,
60
61
  detach=True,
61
- ports={"80/tcp": TB_LOCAL_PORT},
62
+ ports={"7181/tcp": TB_LOCAL_PORT},
62
63
  remove=False,
63
64
  platform="linux/amd64",
64
65
  environment=environment,
@@ -81,7 +82,7 @@ def start_tinybird_local(
81
82
  image.remove(force=True)
82
83
 
83
84
 
84
- def get_docker_client():
85
+ def get_docker_client() -> DockerClient:
85
86
  """Check if Docker is installed and running."""
86
87
  try:
87
88
  client = docker.from_env() # type: ignore
@@ -93,7 +94,7 @@ def get_docker_client():
93
94
  )
94
95
 
95
96
 
96
- def get_local_aws_credentials():
97
+ def get_use_aws_creds():
97
98
  credentials: dict[str, str] = {}
98
99
  try:
99
100
  # Get the boto3 session and credentials
@@ -132,21 +133,36 @@ def remove_tinybird_local(docker_client):
132
133
  """Remove the Tinybird container."""
133
134
  try:
134
135
  container = docker_client.containers.get(TB_CONTAINER_NAME)
135
- container.remove(force=True)
136
+ if click.confirm(
137
+ FeedbackManager.warning(
138
+ message="△ This step will remove all your data inside Tinybird Local. Are you sure? [y/N]:"
139
+ ),
140
+ show_default=False,
141
+ prompt_suffix="",
142
+ ):
143
+ container.remove(force=True)
136
144
  except Exception:
137
145
  pass
138
146
 
139
147
 
140
148
  def update_cli():
141
149
  click.echo(FeedbackManager.highlight(message="» Updating Tinybird CLI..."))
142
- process = subprocess.Popen(
143
- [f"{os.getenv('HOME')}/.local/bin/uv", "tool", "upgrade", "tinybird"],
144
- stdout=subprocess.PIPE,
145
- stderr=subprocess.PIPE,
146
- text=True,
147
- )
150
+
151
+ try:
152
+ process = subprocess.Popen(
153
+ ["uv", "tool", "upgrade", "tinybird"],
154
+ stdout=subprocess.PIPE,
155
+ stderr=subprocess.PIPE,
156
+ text=True,
157
+ )
158
+ except FileNotFoundError:
159
+ raise CLIException("Cannot find required tool: uv. Reinstall using: curl -LsSf tbrd.co/fwd | sh")
160
+
148
161
  stdout, stderr = process.communicate()
149
162
  if "Nothing to upgrade" not in stdout + stderr:
163
+ for line in stdout.split("\n") + stderr.split("\n"):
164
+ if "Updated tinybird" in line:
165
+ click.echo(FeedbackManager.info(message=f"» {line}"))
150
166
  click.echo(FeedbackManager.success(message="✓ Tinybird CLI updated"))
151
167
  else:
152
168
  click.echo(FeedbackManager.info(message="✓ Tinybird CLI is already up-to-date"))
@@ -192,21 +208,23 @@ async def remove() -> None:
192
208
 
193
209
  @local.command()
194
210
  @coro
195
- async def start() -> None:
211
+ @click.option("--use-aws-creds", default=False, is_flag=True, help="Use local AWS credentials")
212
+ async def start(use_aws_creds: bool) -> None:
196
213
  """Start Tinybird Local"""
197
214
  click.echo(FeedbackManager.highlight(message="» Starting Tinybird Local..."))
198
215
  docker_client = get_docker_client()
199
- start_tinybird_local(docker_client)
216
+ start_tinybird_local(docker_client, use_aws_creds)
200
217
  click.echo(FeedbackManager.success(message="✓ Tinybird Local is ready!"))
201
218
 
202
219
 
203
220
  @local.command()
204
221
  @coro
205
- async def restart() -> None:
222
+ @click.option("--use-aws-creds", is_flag=True, help="Use local AWS credentials")
223
+ async def restart(use_aws_creds: bool) -> None:
206
224
  """Restart Tinybird Local"""
207
225
  click.echo(FeedbackManager.highlight(message="» Restarting Tinybird Local..."))
208
226
  docker_client = get_docker_client()
209
227
  remove_tinybird_local(docker_client)
210
228
  click.echo(FeedbackManager.info(message="✓ Tinybird Local stopped"))
211
- start_tinybird_local(docker_client)
229
+ start_tinybird_local(docker_client, use_aws_creds)
212
230
  click.echo(FeedbackManager.success(message="✓ Tinybird Local is ready!"))
@@ -99,7 +99,7 @@ def start_server(auth_callback, auth_host):
99
99
  @click.option(
100
100
  "--host",
101
101
  default="https://api.europe-west2.gcp.tinybird.co",
102
- help="Set custom host if it's different than https://api.tinybird.co. See https://www.tinybird.co/docs/api-reference/overview#regions-and-endpoints for the available list of regions.",
102
+ help="Set custom host if it's different than https://api.europe-west2.gcp.tinybird.co. See https://www.tinybird.co/docs/api-reference/overview#regions-and-endpoints for the available list of regions.",
103
103
  )
104
104
  @click.option(
105
105
  "--auth-host",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev106
3
+ Version: 0.0.1.dev108
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird