tinybird 0.0.1.dev279__tar.gz → 0.0.1.dev280__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.dev279 → tinybird-0.0.1.dev280}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/agent.py +16 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/cli.py +2 -2
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/common.py +28 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/local.py +1 -29
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/setup.cfg +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/datafile/common.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/datafile/parse_connection.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/client.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/__init__.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/animations.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/banner.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/command_agent.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/compactor.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/explore_agent.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/memory.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/models.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/prompts.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/testing_agent.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/__init__.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/analyze.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/append.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/build.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/datafile.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/deploy.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/deploy_check.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/diff_resource.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/execute_query.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/get_endpoint_stats.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/get_openapi_definition.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/mock.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/plan.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/request_endpoint.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/run_command.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/secret.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/test.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/utils.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/build_common.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/deployment_common.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/dev_server.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/info.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/login_common.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/mock_common.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/secret_common.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/sink.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/test_common.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/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.dev280'
|
|
8
|
+
__revision__ = 'e419ff7'
|
|
@@ -14,7 +14,9 @@ from pydantic_ai import Agent, RunContext, Tool
|
|
|
14
14
|
from pydantic_ai.messages import ModelMessage, ModelRequest, UserPromptPart
|
|
15
15
|
from requests import Response
|
|
16
16
|
|
|
17
|
+
from tinybird.tb.check_pypi import CheckPypi
|
|
17
18
|
from tinybird.tb.client import TinyB
|
|
19
|
+
from tinybird.tb.config import CURRENT_VERSION
|
|
18
20
|
from tinybird.tb.modules.agent.animations import ThinkingAnimation
|
|
19
21
|
from tinybird.tb.modules.agent.banner import display_banner
|
|
20
22
|
from tinybird.tb.modules.agent.command_agent import CommandAgent
|
|
@@ -54,6 +56,7 @@ from tinybird.tb.modules.common import (
|
|
|
54
56
|
echo_safe_humanfriendly_tables_format_pretty_table,
|
|
55
57
|
get_region_from_host,
|
|
56
58
|
get_regions,
|
|
59
|
+
update_cli,
|
|
57
60
|
)
|
|
58
61
|
from tinybird.tb.modules.config import CLIConfig
|
|
59
62
|
from tinybird.tb.modules.deployment_common import create_deployment
|
|
@@ -368,6 +371,19 @@ class TinybirdAgent:
|
|
|
368
371
|
def run_agent(
|
|
369
372
|
config: dict[str, Any], project: Project, dangerously_skip_permissions: bool, prompt: Optional[str] = None
|
|
370
373
|
):
|
|
374
|
+
if not prompt:
|
|
375
|
+
latest_version = CheckPypi().get_latest_version()
|
|
376
|
+
if latest_version and "x.y.z" not in CURRENT_VERSION and latest_version != CURRENT_VERSION:
|
|
377
|
+
yes = click.confirm(
|
|
378
|
+
FeedbackManager.warning(
|
|
379
|
+
message=f"New version available. {CURRENT_VERSION} -> {latest_version}. Do you want to update now? [Y/n]"
|
|
380
|
+
),
|
|
381
|
+
show_default=False,
|
|
382
|
+
default=True,
|
|
383
|
+
prompt_suffix="",
|
|
384
|
+
)
|
|
385
|
+
if yes:
|
|
386
|
+
update_cli()
|
|
371
387
|
click.echo(FeedbackManager.highlight(message="» Initializing Tinybird Code..."))
|
|
372
388
|
token = config.get("token", None)
|
|
373
389
|
host = config.get("host", None)
|
|
@@ -121,7 +121,8 @@ def cli(
|
|
|
121
121
|
if getenv_bool("TB_DISABLE_SSL_CHECKS", False):
|
|
122
122
|
click.echo(FeedbackManager.warning_disabled_ssl_checks())
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
is_agent_mode = ctx.invoked_subcommand is None
|
|
125
|
+
if not environ.get("PYTEST", None) and version_warning and not token and not is_agent_mode:
|
|
125
126
|
latest_version = CheckPypi().get_latest_version()
|
|
126
127
|
if latest_version:
|
|
127
128
|
if "x.y.z" in CURRENT_VERSION:
|
|
@@ -204,7 +205,6 @@ def cli(
|
|
|
204
205
|
ctx.ensure_object(dict)["env"] = get_target_env(cloud)
|
|
205
206
|
ctx.ensure_object(dict)["output"] = output
|
|
206
207
|
|
|
207
|
-
is_agent_mode = ctx.invoked_subcommand is None
|
|
208
208
|
is_prompt_mode = prompt is not None
|
|
209
209
|
|
|
210
210
|
if is_agent_mode or is_prompt_mode:
|
|
@@ -9,6 +9,7 @@ import json
|
|
|
9
9
|
import os
|
|
10
10
|
import re
|
|
11
11
|
import socket
|
|
12
|
+
import subprocess
|
|
12
13
|
import sys
|
|
13
14
|
import time
|
|
14
15
|
import uuid
|
|
@@ -2234,3 +2235,30 @@ def force_echo(string: str) -> None:
|
|
|
2234
2235
|
|
|
2235
2236
|
def echo_json(data: Dict[str, Any], indent: Union[None, int, str] = None) -> None:
|
|
2236
2237
|
force_echo(json.dumps(data, indent=indent))
|
|
2238
|
+
|
|
2239
|
+
|
|
2240
|
+
def update_cli() -> None:
|
|
2241
|
+
click.echo(FeedbackManager.highlight(message="» Updating Tinybird CLI..."))
|
|
2242
|
+
|
|
2243
|
+
try:
|
|
2244
|
+
process = subprocess.Popen(
|
|
2245
|
+
["uv", "tool", "upgrade", "tinybird"],
|
|
2246
|
+
stdout=subprocess.PIPE,
|
|
2247
|
+
stderr=subprocess.PIPE,
|
|
2248
|
+
text=True,
|
|
2249
|
+
)
|
|
2250
|
+
except FileNotFoundError:
|
|
2251
|
+
raise CLIException(
|
|
2252
|
+
FeedbackManager.error(
|
|
2253
|
+
message="Cannot find required tool: uv. Reinstall using: curl https://tinybird.co | sh"
|
|
2254
|
+
)
|
|
2255
|
+
)
|
|
2256
|
+
|
|
2257
|
+
stdout, stderr = process.communicate()
|
|
2258
|
+
if "Nothing to upgrade" not in stdout + stderr:
|
|
2259
|
+
for line in stdout.split("\n") + stderr.split("\n"):
|
|
2260
|
+
if "Updated tinybird" in line:
|
|
2261
|
+
click.echo(FeedbackManager.info(message=f"» {line}"))
|
|
2262
|
+
click.echo(FeedbackManager.success(message="✓ Tinybird CLI updated"))
|
|
2263
|
+
else:
|
|
2264
|
+
click.echo(FeedbackManager.info(message="✓ Tinybird CLI is already up-to-date"))
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import subprocess
|
|
2
1
|
from pathlib import Path
|
|
3
2
|
|
|
4
3
|
import click
|
|
@@ -6,7 +5,7 @@ import requests
|
|
|
6
5
|
|
|
7
6
|
from docker.client import DockerClient
|
|
8
7
|
from tinybird.tb.modules.cli import cli
|
|
9
|
-
from tinybird.tb.modules.
|
|
8
|
+
from tinybird.tb.modules.common import update_cli
|
|
10
9
|
from tinybird.tb.modules.feedback_manager import FeedbackManager
|
|
11
10
|
from tinybird.tb.modules.local_common import (
|
|
12
11
|
TB_CONTAINER_NAME,
|
|
@@ -42,33 +41,6 @@ def remove_tinybird_local(docker_client: DockerClient, persist_data: bool) -> No
|
|
|
42
41
|
pass
|
|
43
42
|
|
|
44
43
|
|
|
45
|
-
def update_cli() -> None:
|
|
46
|
-
click.echo(FeedbackManager.highlight(message="» Updating Tinybird CLI..."))
|
|
47
|
-
|
|
48
|
-
try:
|
|
49
|
-
process = subprocess.Popen(
|
|
50
|
-
["uv", "tool", "upgrade", "tinybird"],
|
|
51
|
-
stdout=subprocess.PIPE,
|
|
52
|
-
stderr=subprocess.PIPE,
|
|
53
|
-
text=True,
|
|
54
|
-
)
|
|
55
|
-
except FileNotFoundError:
|
|
56
|
-
raise CLIException(
|
|
57
|
-
FeedbackManager.error(
|
|
58
|
-
message="Cannot find required tool: uv. Reinstall using: curl https://tinybird.co | sh"
|
|
59
|
-
)
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
stdout, stderr = process.communicate()
|
|
63
|
-
if "Nothing to upgrade" not in stdout + stderr:
|
|
64
|
-
for line in stdout.split("\n") + stderr.split("\n"):
|
|
65
|
-
if "Updated tinybird" in line:
|
|
66
|
-
click.echo(FeedbackManager.info(message=f"» {line}"))
|
|
67
|
-
click.echo(FeedbackManager.success(message="✓ Tinybird CLI updated"))
|
|
68
|
-
else:
|
|
69
|
-
click.echo(FeedbackManager.info(message="✓ Tinybird CLI is already up-to-date"))
|
|
70
|
-
|
|
71
|
-
|
|
72
44
|
@cli.command()
|
|
73
45
|
def update() -> None:
|
|
74
46
|
"""Update Tinybird CLI to the latest version."""
|
|
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
|
|
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.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/deploy_check.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/diff_resource.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/execute_query.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/request_endpoint.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/agent/tools/run_command.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
|
{tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/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.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev279 → tinybird-0.0.1.dev280}/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
|