tinybird 0.0.1.dev81__tar.gz → 0.0.1.dev83__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.dev81 → tinybird-0.0.1.dev83}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/cli.py +5 -5
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/local.py +12 -6
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/setup.cfg +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/auth.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/common.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/fmt.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/playground.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/tag.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/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.dev83'
|
|
8
|
+
__revision__ = '8505269'
|
|
@@ -108,7 +108,8 @@ async def cli(
|
|
|
108
108
|
|
|
109
109
|
config = await get_config(host, token, config_file=config_temp._path)
|
|
110
110
|
client = _get_tb_client(config.get("token", None), config["host"])
|
|
111
|
-
|
|
111
|
+
project = Project(folder=config.get("cwd", os.getcwd()))
|
|
112
|
+
config["path"] = str(project.path)
|
|
112
113
|
# If they have passed a token or host as paramter and it's different that record in .tinyb, refresh the workspace id
|
|
113
114
|
if token or host:
|
|
114
115
|
try:
|
|
@@ -131,7 +132,6 @@ async def cli(
|
|
|
131
132
|
if client:
|
|
132
133
|
ctx.ensure_object(dict)["client"] = client
|
|
133
134
|
|
|
134
|
-
project = Project(folder=config.get("cwd", os.getcwd()))
|
|
135
135
|
ctx.ensure_object(dict)["project"] = project
|
|
136
136
|
ctx.ensure_object(dict)["env"] = get_target_env(cloud, build)
|
|
137
137
|
|
|
@@ -393,14 +393,14 @@ def __unpatch_click_output():
|
|
|
393
393
|
|
|
394
394
|
|
|
395
395
|
async def create_ctx_client(ctx: Context, config: Dict[str, Any], cloud: bool, build: bool, staging: bool):
|
|
396
|
-
commands_without_ctx_client = ["auth", "check", "login", "local", "upgrade"]
|
|
396
|
+
commands_without_ctx_client = ["auth", "check", "login", "local", "update", "upgrade"]
|
|
397
397
|
command = ctx.invoked_subcommand
|
|
398
398
|
if command in commands_without_ctx_client:
|
|
399
399
|
return None
|
|
400
400
|
|
|
401
401
|
commands_always_cloud = ["pull", "playground"]
|
|
402
|
-
commands_always_build = ["build", "test", "dev"]
|
|
403
|
-
commands_always_local = [
|
|
402
|
+
commands_always_build = ["build", "test", "dev", "create"]
|
|
403
|
+
commands_always_local: List[str] = []
|
|
404
404
|
if (
|
|
405
405
|
(cloud or command in commands_always_cloud)
|
|
406
406
|
and command not in commands_always_local
|
|
@@ -108,9 +108,9 @@ def remove_tinybird_local(docker_client):
|
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
@cli.command()
|
|
111
|
-
def
|
|
112
|
-
"""
|
|
113
|
-
click.echo(FeedbackManager.highlight(message="»
|
|
111
|
+
def update():
|
|
112
|
+
"""Update Tinybird CLI to the latest version."""
|
|
113
|
+
click.echo(FeedbackManager.highlight(message="» Updating Tinybird CLI..."))
|
|
114
114
|
process = subprocess.Popen(
|
|
115
115
|
[f"{os.getenv('HOME')}/.local/bin/uv", "tool", "upgrade", "tinybird"],
|
|
116
116
|
stdout=subprocess.PIPE,
|
|
@@ -118,10 +118,16 @@ def upgrade():
|
|
|
118
118
|
text=True,
|
|
119
119
|
)
|
|
120
120
|
stdout, stderr = process.communicate()
|
|
121
|
-
if "Nothing to
|
|
122
|
-
click.echo(FeedbackManager.success(message="✓ Tinybird CLI
|
|
121
|
+
if "Nothing to update" not in stdout + stderr:
|
|
122
|
+
click.echo(FeedbackManager.success(message="✓ Tinybird CLI updated"))
|
|
123
123
|
else:
|
|
124
|
-
click.echo(FeedbackManager.info(message="✓ Tinybird CLI is already up
|
|
124
|
+
click.echo(FeedbackManager.info(message="✓ Tinybird CLI is already up-to-date"))
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
@cli.command(name="upgrade", hidden=True)
|
|
128
|
+
def upgrade():
|
|
129
|
+
"""Alias for tb update."""
|
|
130
|
+
update()
|
|
125
131
|
|
|
126
132
|
|
|
127
133
|
@cli.group()
|
|
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.dev81 → tinybird-0.0.1.dev83}/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
|
|
File without changes
|
{tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev81 → tinybird-0.0.1.dev83}/tinybird/tb/modules/datafile/parse_datasource.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
|
|
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.dev81 → tinybird-0.0.1.dev83}/tinybird/tb_cli_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
|