tinybird 3.3.1.dev0__tar.gz → 3.3.2.dev0__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.
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/PKG-INFO +6 -1
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/ch_utils/engine.py +2 -2
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/client.py +4 -4
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/datafile/common.py +3 -3
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/sql.py +3 -3
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/sql_template.py +1 -1
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/__cli__.py +2 -2
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/client.py +4 -4
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/agent.py +1 -17
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/cicd.py +3 -3
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/common.py +1 -1
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/format_common.py +1 -1
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/tinyunit/tinyunit.py +1 -1
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/branch.py +1 -3
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/cicd.py +3 -3
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/cli.py +2 -2
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/common.py +1 -1
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/datasource.py +1 -3
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +1 -1
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tornado_template.py +1 -1
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird.egg-info/PKG-INFO +6 -1
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/setup.cfg +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/__cli__.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/check_pypi.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/config.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/context.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/datafile/exceptions.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/datafile/parse_connection.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/datafile/parse_datasource.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/datafile/parse_pipe.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/datatypes.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/feedback_manager.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/git_settings.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/prompts.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/service_datasources.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/sql_toolset.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/syncasync.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/cli.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/config.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/__init__.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/animations.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/banner.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/command_agent.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/compactor.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/explore_agent.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/file_agent.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/memory.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/mock_agent.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/models.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/prompts.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/testing_agent.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/__init__.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/analyze.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/append.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/build.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/datafile.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/deploy.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/deploy_check.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/diff_resource.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/execute_query.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/file.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/get_endpoint_stats.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/get_openapi_definition.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/mock.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/plan.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/request_endpoint.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/run_command.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/secret.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/test.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/utils.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/branch.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/build.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/build_common.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/config.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/connection_kafka.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/connection_s3.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/create.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/format_connection.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/deployment_common.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/dev_server.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/fmt.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/info.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/job.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/job_common.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/local.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/local_logs.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/login.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/login_common.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/mock_common.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/open.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/project.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/project_commands.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/secret_common.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/sink.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/table.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/test.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/test_common.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/token.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: tinybird
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.2.dev0
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/forward/commands
|
|
6
6
|
Author: Tinybird
|
|
@@ -57,6 +57,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
|
|
|
57
57
|
Changelog
|
|
58
58
|
----------
|
|
59
59
|
|
|
60
|
+
3.3.1
|
|
61
|
+
*******
|
|
62
|
+
|
|
63
|
+
- `Changed` Tinybird Code (`tb` / `tb --prompt`) no longer prompts users to auto-update the CLI when starting an agent session.
|
|
64
|
+
|
|
60
65
|
3.3.0
|
|
61
66
|
*******
|
|
62
67
|
|
|
@@ -298,7 +298,7 @@ class EngineOption:
|
|
|
298
298
|
self.required = required
|
|
299
299
|
self.default_value = default_value
|
|
300
300
|
self.is_valid = is_valid
|
|
301
|
-
self.tb_param = tb_param
|
|
301
|
+
self.tb_param = tb_param or "_".join(["engine", name])
|
|
302
302
|
|
|
303
303
|
|
|
304
304
|
class EngineParam:
|
|
@@ -314,7 +314,7 @@ class EngineParam:
|
|
|
314
314
|
self.required = required
|
|
315
315
|
self.default_value = default_value
|
|
316
316
|
self.is_valid = is_valid
|
|
317
|
-
self.tb_param = tb_param
|
|
317
|
+
self.tb_param = tb_param or self.build_engine_param_name(name)
|
|
318
318
|
|
|
319
319
|
@staticmethod
|
|
320
320
|
def build_engine_param_name(name: str):
|
|
@@ -118,7 +118,7 @@ class TinyB:
|
|
|
118
118
|
) -> Response:
|
|
119
119
|
url = f"{self.host.strip('/')}/{endpoint.strip('/')}"
|
|
120
120
|
|
|
121
|
-
token_to_use = use_token
|
|
121
|
+
token_to_use = use_token or self.token
|
|
122
122
|
if token_to_use:
|
|
123
123
|
url += ("&" if "?" in endpoint else "?") + "token=" + token_to_use
|
|
124
124
|
if self.version:
|
|
@@ -191,7 +191,7 @@ class TinyB:
|
|
|
191
191
|
use_token: Optional[str] = None,
|
|
192
192
|
**kwargs,
|
|
193
193
|
):
|
|
194
|
-
token_to_use = use_token
|
|
194
|
+
token_to_use = use_token or self.token
|
|
195
195
|
response = await self._req_raw(endpoint, data, files, method, retries, use_token, **kwargs)
|
|
196
196
|
|
|
197
197
|
if response.status_code == 403:
|
|
@@ -565,8 +565,8 @@ class TinyB:
|
|
|
565
565
|
async def pipes(self, branch=None, dependencies: bool = False, node_attrs=None, attrs=None) -> List[Dict[str, Any]]:
|
|
566
566
|
params = {
|
|
567
567
|
"dependencies": "true" if dependencies else "false",
|
|
568
|
-
"attrs": attrs
|
|
569
|
-
"node_attrs": node_attrs
|
|
568
|
+
"attrs": attrs or "",
|
|
569
|
+
"node_attrs": node_attrs or "",
|
|
570
570
|
}
|
|
571
571
|
response = await self._req(f"/v0/pipes?{urlencode(params)}")
|
|
572
572
|
pipes = response["pipes"]
|
|
@@ -1357,11 +1357,11 @@ def _parse_table_structure(schema: str) -> List[Dict[str, Any]]:
|
|
|
1357
1357
|
nullable = column["type"].lower().startswith("nullable")
|
|
1358
1358
|
column["type"] = column["type"] if not nullable else column["type"][len("Nullable(") : -1] # ')'
|
|
1359
1359
|
column["nullable"] = nullable
|
|
1360
|
-
column["codec"] = column["codec"]
|
|
1360
|
+
column["codec"] = column["codec"] or None
|
|
1361
1361
|
column["name"] = column["name"]
|
|
1362
1362
|
column["normalized_name"] = column["name"]
|
|
1363
|
-
column["jsonpath"] = column["jsonpath"]
|
|
1364
|
-
default_value = column["default_value"]
|
|
1363
|
+
column["jsonpath"] = column["jsonpath"] or None
|
|
1364
|
+
default_value = column["default_value"] or None
|
|
1365
1365
|
if nullable and default_value and default_value.lower() == "default null":
|
|
1366
1366
|
default_value = None
|
|
1367
1367
|
column["default_value"] = default_value
|
|
@@ -821,11 +821,11 @@ def _parse_table_structure(schema: str) -> List[Dict[str, Any]]:
|
|
|
821
821
|
nullable = column["type"].lower().startswith("nullable")
|
|
822
822
|
column["type"] = column["type"] if not nullable else column["type"][len("Nullable(") : -1] # ')'
|
|
823
823
|
column["nullable"] = nullable
|
|
824
|
-
column["codec"] = column["codec"]
|
|
824
|
+
column["codec"] = column["codec"] or None
|
|
825
825
|
column["name"] = column["name"]
|
|
826
826
|
column["normalized_name"] = column["name"]
|
|
827
|
-
column["jsonpath"] = column["jsonpath"]
|
|
828
|
-
default_value = column["default_value"]
|
|
827
|
+
column["jsonpath"] = column["jsonpath"] or None
|
|
828
|
+
default_value = column["default_value"] or None
|
|
829
829
|
if nullable and default_value and default_value.lower() == "default null":
|
|
830
830
|
default_value = None
|
|
831
831
|
column["default_value"] = default_value
|
|
@@ -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__ = '3.3.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '3.3.2.dev0'
|
|
8
|
+
__revision__ = 'f22e1ea'
|
|
@@ -116,7 +116,7 @@ class TinyB:
|
|
|
116
116
|
) -> Response:
|
|
117
117
|
url = f"{self.host.strip('/')}/{endpoint.strip('/')}"
|
|
118
118
|
|
|
119
|
-
token_to_use = use_token
|
|
119
|
+
token_to_use = use_token or self.token
|
|
120
120
|
if token_to_use:
|
|
121
121
|
url += ("&" if "?" in endpoint else "?") + "token=" + token_to_use
|
|
122
122
|
if self.version:
|
|
@@ -179,7 +179,7 @@ class TinyB:
|
|
|
179
179
|
use_token: Optional[str] = None,
|
|
180
180
|
**kwargs,
|
|
181
181
|
):
|
|
182
|
-
token_to_use = use_token
|
|
182
|
+
token_to_use = use_token or self.token
|
|
183
183
|
response = self._req_raw(endpoint, data, files, method, retries, use_token, **kwargs)
|
|
184
184
|
|
|
185
185
|
if response.status_code == 403:
|
|
@@ -566,8 +566,8 @@ class TinyB:
|
|
|
566
566
|
def pipes(self, branch=None, dependencies: bool = False, node_attrs=None, attrs=None) -> List[Dict[str, Any]]:
|
|
567
567
|
params = {
|
|
568
568
|
"dependencies": "true" if dependencies else "false",
|
|
569
|
-
"attrs": attrs
|
|
570
|
-
"node_attrs": node_attrs
|
|
569
|
+
"attrs": attrs or "",
|
|
570
|
+
"node_attrs": node_attrs or "",
|
|
571
571
|
}
|
|
572
572
|
response = self._req(f"/v0/pipes?{urlencode(params)}")
|
|
573
573
|
pipes = response["pipes"]
|
|
@@ -14,9 +14,8 @@ 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
|
|
18
17
|
from tinybird.tb.client import TinyB
|
|
19
|
-
from tinybird.tb.config import
|
|
18
|
+
from tinybird.tb.config import get_clickhouse_host, get_display_cloud_host
|
|
20
19
|
from tinybird.tb.modules.agent.animations import ThinkingAnimation
|
|
21
20
|
from tinybird.tb.modules.agent.banner import display_banner
|
|
22
21
|
from tinybird.tb.modules.agent.command_agent import CommandAgent
|
|
@@ -72,7 +71,6 @@ from tinybird.tb.modules.common import (
|
|
|
72
71
|
get_region_from_host,
|
|
73
72
|
get_regions,
|
|
74
73
|
sys_exit,
|
|
75
|
-
update_cli,
|
|
76
74
|
)
|
|
77
75
|
from tinybird.tb.modules.config import CLIConfig
|
|
78
76
|
from tinybird.tb.modules.deployment_common import create_deployment
|
|
@@ -522,20 +520,6 @@ def run_agent(
|
|
|
522
520
|
prompt: Optional[str] = None,
|
|
523
521
|
feature: Optional[str] = None,
|
|
524
522
|
):
|
|
525
|
-
if not prompt:
|
|
526
|
-
latest_version = CheckPypi().get_latest_version()
|
|
527
|
-
if latest_version and "x.y.z" not in CURRENT_VERSION and latest_version != CURRENT_VERSION:
|
|
528
|
-
yes = click.confirm(
|
|
529
|
-
FeedbackManager.warning(
|
|
530
|
-
message=f"New version available. {CURRENT_VERSION} -> {latest_version}. Do you want to update now? [Y/n]"
|
|
531
|
-
),
|
|
532
|
-
show_default=False,
|
|
533
|
-
default=True,
|
|
534
|
-
prompt_suffix="",
|
|
535
|
-
)
|
|
536
|
-
if yes:
|
|
537
|
-
update_cli()
|
|
538
|
-
|
|
539
523
|
if not prompt:
|
|
540
524
|
click.echo(FeedbackManager.highlight(message="» Initializing Tinybird Code..."))
|
|
541
525
|
|
|
@@ -238,8 +238,8 @@ def init_cicd(
|
|
|
238
238
|
data_project_dir: Optional[str] = None,
|
|
239
239
|
):
|
|
240
240
|
for provider in Provider:
|
|
241
|
-
path = path
|
|
242
|
-
data_project_dir = data_project_dir
|
|
241
|
+
path = path or getcwd()
|
|
242
|
+
data_project_dir = data_project_dir or "."
|
|
243
243
|
generator = CICDGeneratorBase.build_generator(provider.name)
|
|
244
244
|
params = {
|
|
245
245
|
"data_project_dir": data_project_dir,
|
|
@@ -251,7 +251,7 @@ def init_cicd(
|
|
|
251
251
|
|
|
252
252
|
|
|
253
253
|
def check_cicd_exists(path: Optional[str] = None) -> Optional[Provider]:
|
|
254
|
-
path = path
|
|
254
|
+
path = path or getcwd()
|
|
255
255
|
for provider in Provider:
|
|
256
256
|
generator = CICDGeneratorBase.build_generator(provider.name)
|
|
257
257
|
if generator.is_already_generated(path):
|
|
@@ -1473,7 +1473,7 @@ def wait_job(
|
|
|
1473
1473
|
if "progress_percentage" in res:
|
|
1474
1474
|
progress_bar.update(int(round(res["progress_percentage"])) - progress_bar.pos)
|
|
1475
1475
|
elif res["status"] != "working":
|
|
1476
|
-
progress_bar.update(progress_bar.length
|
|
1476
|
+
progress_bar.update(progress_bar.length or 0)
|
|
1477
1477
|
|
|
1478
1478
|
try:
|
|
1479
1479
|
result = wait_job_no_ui(tb_client, job_id, progressbar_cb)
|
|
@@ -88,7 +88,7 @@ def format_engine(
|
|
|
88
88
|
file_parts.append(DATAFILE_NEW_LINE)
|
|
89
89
|
for arg in sorted(node["engine"].get("args", [])):
|
|
90
90
|
elem = ", ".join([x.strip() for x in arg[1].split(",")])
|
|
91
|
-
file_parts.append(f"ENGINE_{arg[0].upper()} {elem
|
|
91
|
+
file_parts.append(f"ENGINE_{arg[0].upper()} {elem or empty}")
|
|
92
92
|
file_parts.append(DATAFILE_NEW_LINE)
|
|
93
93
|
file_parts.append(DATAFILE_NEW_LINE)
|
|
94
94
|
return file_parts
|
|
@@ -226,7 +226,7 @@ def run_test_file(tb_client: TinyB, file: str) -> List[TestResult]:
|
|
|
226
226
|
pipe = test_case.pipe.name
|
|
227
227
|
params = test_case.pipe.params
|
|
228
228
|
try:
|
|
229
|
-
sql = test_case.sql
|
|
229
|
+
sql = test_case.sql or None
|
|
230
230
|
test_response = tb_client.pipe_data(pipe, format="json", params=params, sql=sql)
|
|
231
231
|
results.append(
|
|
232
232
|
TestResult(
|
|
@@ -1014,9 +1014,7 @@ async def datasource_copy_from_main(datasource_name: str, sql: str, sql_from_mai
|
|
|
1014
1014
|
|
|
1015
1015
|
client = config.get_client()
|
|
1016
1016
|
|
|
1017
|
-
response = await client.datasource_query_copy(
|
|
1018
|
-
datasource_name, sql if sql else f"SELECT * FROM main.{datasource_name}"
|
|
1019
|
-
)
|
|
1017
|
+
response = await client.datasource_query_copy(datasource_name, sql or f"SELECT * FROM main.{datasource_name}")
|
|
1020
1018
|
if "job" not in response:
|
|
1021
1019
|
raise CLIBranchException(response)
|
|
1022
1020
|
job_id = response["job"]["job_id"]
|
|
@@ -405,8 +405,8 @@ async def init_cicd(
|
|
|
405
405
|
):
|
|
406
406
|
provider = ask_provider_interactively()
|
|
407
407
|
if provider:
|
|
408
|
-
path = path
|
|
409
|
-
data_project_dir = data_project_dir
|
|
408
|
+
path = path or getcwd()
|
|
409
|
+
data_project_dir = data_project_dir or "."
|
|
410
410
|
generator = CICDGeneratorBase.build_generator(provider)
|
|
411
411
|
workspace_info = await client.workspace_info()
|
|
412
412
|
token = await client.get_token_by_name("admin token")
|
|
@@ -426,7 +426,7 @@ async def init_cicd(
|
|
|
426
426
|
|
|
427
427
|
|
|
428
428
|
async def check_cicd_exists(path: Optional[str] = None) -> Optional[Provider]:
|
|
429
|
-
path = path
|
|
429
|
+
path = path or getcwd()
|
|
430
430
|
for provider in Provider:
|
|
431
431
|
generator = CICDGeneratorBase.build_generator(provider.name)
|
|
432
432
|
if generator.is_already_generated(path):
|
|
@@ -229,7 +229,7 @@ async def init(
|
|
|
229
229
|
config = CLIConfig.get_project_config()
|
|
230
230
|
if config.get("token") is None:
|
|
231
231
|
raise AuthNoTokenException
|
|
232
|
-
folder = folder
|
|
232
|
+
folder = folder or getcwd()
|
|
233
233
|
|
|
234
234
|
workspaces: List[Dict[str, Any]] = (await client.user_workspaces_and_branches()).get("workspaces", [])
|
|
235
235
|
current_ws: Dict[str, Any] = next(
|
|
@@ -644,7 +644,7 @@ async def pull(ctx: Context, folder: str, auto: bool, match: Optional[str], forc
|
|
|
644
644
|
"""Retrieve latest versions for project files from Tinybird."""
|
|
645
645
|
|
|
646
646
|
client = ctx.ensure_object(dict)["client"]
|
|
647
|
-
folder = folder
|
|
647
|
+
folder = folder or getcwd()
|
|
648
648
|
|
|
649
649
|
return await folder_pull(client, folder, auto, match, force, fmt=fmt)
|
|
650
650
|
|
|
@@ -1601,7 +1601,7 @@ async def wait_job(
|
|
|
1601
1601
|
if "progress_percentage" in res:
|
|
1602
1602
|
progress_bar.update(int(round(res["progress_percentage"])) - progress_bar.pos)
|
|
1603
1603
|
elif res["status"] != "working":
|
|
1604
|
-
progress_bar.update(progress_bar.length
|
|
1604
|
+
progress_bar.update(progress_bar.length or 0)
|
|
1605
1605
|
|
|
1606
1606
|
try:
|
|
1607
1607
|
# TODO: Simplify this as it's not needed to use two functions for
|
|
@@ -728,9 +728,7 @@ async def datasource_copy_from_main(
|
|
|
728
728
|
click.echo(FeedbackManager.error_exception(error="Use --sql or --sql-from-main"))
|
|
729
729
|
return
|
|
730
730
|
|
|
731
|
-
response = await client.datasource_query_copy(
|
|
732
|
-
datasource_name, sql if sql else f"SELECT * FROM main.{datasource_name}"
|
|
733
|
-
)
|
|
731
|
+
response = await client.datasource_query_copy(datasource_name, sql or f"SELECT * FROM main.{datasource_name}")
|
|
734
732
|
if "job" not in response:
|
|
735
733
|
raise Exception(response)
|
|
736
734
|
job_id = response["job"]["job_id"]
|
|
@@ -226,7 +226,7 @@ async def run_test_file(tb_client: TinyB, file: str) -> List[TestResult]:
|
|
|
226
226
|
pipe = test_case.pipe.name
|
|
227
227
|
params = test_case.pipe.params
|
|
228
228
|
try:
|
|
229
|
-
sql = test_case.sql
|
|
229
|
+
sql = test_case.sql or None
|
|
230
230
|
test_response = await tb_client.pipe_data(pipe, format="json", params=params, sql=sql)
|
|
231
231
|
results.append(
|
|
232
232
|
TestResult(
|
|
@@ -283,7 +283,7 @@ class Template:
|
|
|
283
283
|
.. versionchanged:: 4.3
|
|
284
284
|
Added ``whitespace`` parameter; deprecated ``compress_whitespace``.
|
|
285
285
|
"""
|
|
286
|
-
name = name
|
|
286
|
+
name = name or "<string>"
|
|
287
287
|
self.name = escape.native_str(name)
|
|
288
288
|
|
|
289
289
|
if compress_whitespace is not _UNSET:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: tinybird
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.2.dev0
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/forward/commands
|
|
6
6
|
Author: Tinybird
|
|
@@ -57,6 +57,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
|
|
|
57
57
|
Changelog
|
|
58
58
|
----------
|
|
59
59
|
|
|
60
|
+
3.3.1
|
|
61
|
+
*******
|
|
62
|
+
|
|
63
|
+
- `Changed` Tinybird Code (`tb` / `tb --prompt`) no longer prompts users to auto-update the CLI when starting an agent session.
|
|
64
|
+
|
|
60
65
|
3.3.0
|
|
61
66
|
*******
|
|
62
67
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/diff_resource.py
RENAMED
|
File without changes
|
{tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/execute_query.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/get_endpoint_stats.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/request_endpoint.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
|
{tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/format_connection.py
RENAMED
|
File without changes
|
{tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/format_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
|
|
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-3.3.1.dev0 → tinybird-3.3.2.dev0}/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
|