tinybird 0.0.1.dev104__tar.gz → 0.0.1.dev105__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.
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/deployment.py +10 -10
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/setup.cfg +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/auth.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/common.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/fmt.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/playground.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/tag.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -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.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev105'
|
|
8
|
+
__revision__ = '43fbce5'
|
|
@@ -112,9 +112,9 @@ def promote_deployment(host: Optional[str], headers: dict, wait: bool) -> None:
|
|
|
112
112
|
time.sleep(5)
|
|
113
113
|
|
|
114
114
|
|
|
115
|
-
# TODO(eclbg): This logic should be in the server, and there should be a dedicated endpoint for
|
|
115
|
+
# TODO(eclbg): This logic should be in the server, and there should be a dedicated endpoint for discarding a
|
|
116
116
|
# deployment
|
|
117
|
-
def
|
|
117
|
+
def discard_deployment(host: Optional[str], headers: dict, wait: bool) -> None:
|
|
118
118
|
TINYBIRD_API_URL = f"{host}/v1/deployments"
|
|
119
119
|
result = api_fetch(TINYBIRD_API_URL, headers=headers)
|
|
120
120
|
|
|
@@ -154,7 +154,7 @@ def rollback_deployment(host: Optional[str], headers: dict, wait: bool) -> None:
|
|
|
154
154
|
click.echo(FeedbackManager.error(message=result.get("error")))
|
|
155
155
|
sys.exit(1)
|
|
156
156
|
|
|
157
|
-
click.echo(FeedbackManager.success(message="
|
|
157
|
+
click.echo(FeedbackManager.success(message="Discard process successfully started"))
|
|
158
158
|
|
|
159
159
|
if wait:
|
|
160
160
|
while True:
|
|
@@ -163,7 +163,7 @@ def rollback_deployment(host: Optional[str], headers: dict, wait: bool) -> None:
|
|
|
163
163
|
|
|
164
164
|
current_deployment = result.get("deployment")
|
|
165
165
|
if current_deployment.get("status") == "deleted":
|
|
166
|
-
click.echo(FeedbackManager.success(message="
|
|
166
|
+
click.echo(FeedbackManager.success(message="Discard process successfully completed"))
|
|
167
167
|
break
|
|
168
168
|
time.sleep(5)
|
|
169
169
|
|
|
@@ -264,7 +264,7 @@ def deployment_promote(ctx: click.Context, wait: bool) -> None:
|
|
|
264
264
|
promote_deployment(client.host, HEADERS, wait=wait)
|
|
265
265
|
|
|
266
266
|
|
|
267
|
-
@deployment_group.command(name="
|
|
267
|
+
@deployment_group.command(name="discard")
|
|
268
268
|
@click.pass_context
|
|
269
269
|
@click.option(
|
|
270
270
|
"--wait/--no-wait",
|
|
@@ -272,16 +272,16 @@ def deployment_promote(ctx: click.Context, wait: bool) -> None:
|
|
|
272
272
|
default=False,
|
|
273
273
|
help="Wait for deploy to finish. Disabled by default.",
|
|
274
274
|
)
|
|
275
|
-
def
|
|
275
|
+
def deployment_discard(ctx: click.Context, wait: bool) -> None:
|
|
276
276
|
"""
|
|
277
|
-
|
|
277
|
+
Discard the current deployment.
|
|
278
278
|
"""
|
|
279
279
|
client = ctx.ensure_object(dict)["client"]
|
|
280
280
|
|
|
281
281
|
TINYBIRD_API_KEY = client.token
|
|
282
282
|
HEADERS = {"Authorization": f"Bearer {TINYBIRD_API_KEY}"}
|
|
283
283
|
|
|
284
|
-
|
|
284
|
+
discard_deployment(client.host, HEADERS, wait=wait)
|
|
285
285
|
|
|
286
286
|
|
|
287
287
|
@cli.command(name="deploy", hidden=True)
|
|
@@ -295,7 +295,7 @@ def deployment_rollback(ctx: click.Context, wait: bool) -> None:
|
|
|
295
295
|
"--auto/--no-auto",
|
|
296
296
|
is_flag=True,
|
|
297
297
|
default=True,
|
|
298
|
-
help="Auto-promote the deployment. Only works if --wait is enabled. Disabled by default.",
|
|
298
|
+
help="Auto-promote or auto-discard the deployment. Only works if --wait is enabled. Disabled by default.",
|
|
299
299
|
)
|
|
300
300
|
@click.option(
|
|
301
301
|
"--check",
|
|
@@ -445,7 +445,7 @@ def create_deployment(
|
|
|
445
445
|
|
|
446
446
|
if auto:
|
|
447
447
|
click.echo(FeedbackManager.error(message="Rolling back deployment"))
|
|
448
|
-
|
|
448
|
+
discard_deployment(client.host, HEADERS, wait=wait)
|
|
449
449
|
sys.exit(1)
|
|
450
450
|
|
|
451
451
|
if deployment.get("status") == "data_ready":
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/parse_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/datafile/pipe_checker.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb/modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev104 → tinybird-0.0.1.dev105}/tinybird/tb_cli_modules/workspace_members.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|