tinybird 0.0.1.dev215__tar.gz → 0.0.1.dev217__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.dev215 → tinybird-0.0.1.dev217}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/cli.py +9 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/common.py +15 -35
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/local.py +7 -1
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/setup.cfg +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/datafile/common.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/datafile/parse_connection.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/client.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/dev_server.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/info.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/sink.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/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/forward/commands'
|
|
5
5
|
__author__ = 'Tinybird'
|
|
6
6
|
__author_email__ = 'support@tinybird.co'
|
|
7
|
-
__version__ = '0.0.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev217'
|
|
8
|
+
__revision__ = '8183690'
|
|
@@ -379,6 +379,15 @@ async def create_ctx_client(ctx: Context, config: Dict[str, Any], cloud: bool, s
|
|
|
379
379
|
click.echo(
|
|
380
380
|
FeedbackManager.gray(message=f"Running against Tinybird Cloud: Workspace {config.get('name', 'default')}")
|
|
381
381
|
)
|
|
382
|
+
|
|
383
|
+
method = None
|
|
384
|
+
if ctx.params.get("token"):
|
|
385
|
+
method = "token via --token option"
|
|
386
|
+
elif os.environ.get("TB_TOKEN"):
|
|
387
|
+
method = "token from TB_TOKEN environment variable"
|
|
388
|
+
if method:
|
|
389
|
+
click.echo(FeedbackManager.gray(message=f"Authentication method: {method}"))
|
|
390
|
+
|
|
382
391
|
return _get_tb_client(config.get("token", None), config["host"], staging=staging)
|
|
383
392
|
local = command in commands_always_local
|
|
384
393
|
test = command in command_always_test
|
|
@@ -318,41 +318,21 @@ line experience. To opt-out, set TB_CLI_TELEMETRY_OPTOUT to '1' or 'true'."""
|
|
|
318
318
|
|
|
319
319
|
# Only suggest if the similarity score is high enough (adjust threshold as needed)
|
|
320
320
|
if score >= 65:
|
|
321
|
-
#
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
else:
|
|
337
|
-
args_before_cmd.append(arg)
|
|
338
|
-
|
|
339
|
-
if args_before_cmd:
|
|
340
|
-
full_command += " " + " ".join(args_before_cmd)
|
|
341
|
-
|
|
342
|
-
# Add any options from params
|
|
343
|
-
if ctx.params:
|
|
344
|
-
for param, value in ctx.params.items():
|
|
345
|
-
if value is True:
|
|
346
|
-
full_command += f" --{param}"
|
|
347
|
-
elif value is not False and value is not None:
|
|
348
|
-
full_command += f" --{param} {value}"
|
|
349
|
-
|
|
350
|
-
# Add the suggested command
|
|
351
|
-
full_command += f" {suggestion}"
|
|
352
|
-
|
|
353
|
-
# Add any arguments that came after the command
|
|
354
|
-
if args_after_cmd:
|
|
355
|
-
full_command += " " + " ".join(args_after_cmd)
|
|
321
|
+
# Build the suggested command from the raw arguments,
|
|
322
|
+
# preserving only those explicitly passed by the user.
|
|
323
|
+
raw_args = sys.argv[1:]
|
|
324
|
+
try:
|
|
325
|
+
idx = raw_args.index(cmd_name)
|
|
326
|
+
except ValueError:
|
|
327
|
+
# If the mistyped command isn't found, use all as 'after'.
|
|
328
|
+
before = []
|
|
329
|
+
after = raw_args
|
|
330
|
+
else:
|
|
331
|
+
before = raw_args[:idx]
|
|
332
|
+
after = raw_args[idx + 1 :]
|
|
333
|
+
|
|
334
|
+
full_tokens = [ctx.command_path, *before, suggestion, *after]
|
|
335
|
+
full_command = " ".join(full_tokens)
|
|
356
336
|
|
|
357
337
|
click.echo(f"\nWARNING: '{cmd_name}' is not a valid command. ", nl=False)
|
|
358
338
|
# Ask for confirmation
|
|
@@ -98,8 +98,9 @@ async def stop() -> None:
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
@local.command()
|
|
101
|
+
@click.pass_context
|
|
101
102
|
@coro
|
|
102
|
-
async def status() -> None:
|
|
103
|
+
async def status(ctx: click.Context) -> None:
|
|
103
104
|
"""Check status of Tinybird Local"""
|
|
104
105
|
docker_client = get_docker_client()
|
|
105
106
|
container = get_existing_container_with_matching_env(docker_client, TB_CONTAINER_NAME, {})
|
|
@@ -110,6 +111,11 @@ async def status() -> None:
|
|
|
110
111
|
|
|
111
112
|
if status == "running" and health == "healthy":
|
|
112
113
|
click.echo(FeedbackManager.success(message="✓ Tinybird Local is ready!"))
|
|
114
|
+
click.echo(FeedbackManager.highlight(message="\n» Tinybird Local:"))
|
|
115
|
+
from tinybird.tb.modules.info import get_local_info
|
|
116
|
+
|
|
117
|
+
config = ctx.ensure_object(dict).get("config", {})
|
|
118
|
+
await get_local_info(config)
|
|
113
119
|
elif status == "restarting" or (status == "running" and health == "starting"):
|
|
114
120
|
click.echo(FeedbackManager.highlight(message="* Tinybird Local is starting..."))
|
|
115
121
|
elif status == "removing":
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/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
|
|
File without changes
|
{tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/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.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev215 → tinybird-0.0.1.dev217}/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
|