tinybird 0.0.1.dev322__tar.gz → 0.0.1.dev324__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-0.0.1.dev322 → tinybird-0.0.1.dev324}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/client.py +18 -18
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/connection.py +2 -1
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/copy.py +14 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/sink.py +14 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/setup.cfg +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/datafile/common.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/datafile/parse_connection.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/service_datasources.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/__init__.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/agent.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/animations.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/banner.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/command_agent.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/compactor.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/explore_agent.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/file_agent.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/memory.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/mock_agent.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/models.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/prompts.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/testing_agent.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/__init__.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/analyze.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/append.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/build.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/datafile.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/deploy.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/deploy_check.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/diff_resource.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/execute_query.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/file.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/get_endpoint_stats.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/get_openapi_definition.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/mock.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/plan.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/request_endpoint.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/run_command.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/secret.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/test.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/utils.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/branch.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/build_common.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/deployment_common.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/dev_server.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/info.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/local_logs.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/login_common.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/mock_common.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/secret_common.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/test_common.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/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.dev324'
|
|
8
|
+
__revision__ = 'b4c5779'
|
|
@@ -300,33 +300,33 @@ class TinyB:
|
|
|
300
300
|
response = self._req(f"/v0/connectors?{urlencode(params)}")
|
|
301
301
|
return response["connectors"]
|
|
302
302
|
|
|
303
|
-
def connections(self, connector: Optional[str] = None):
|
|
303
|
+
def connections(self, connector: Optional[str] = None, datasources: Optional[List[Dict[str, Any]]] = None):
|
|
304
304
|
response = self._req("/v0/connectors")
|
|
305
305
|
connectors = response["connectors"]
|
|
306
|
+
connectors_to_return = []
|
|
307
|
+
for c in connectors:
|
|
308
|
+
if connector and c["service"] != connector:
|
|
309
|
+
continue
|
|
310
|
+
if connector == "gcscheduler":
|
|
311
|
+
continue
|
|
312
|
+
if datasources and len(datasources) > 0:
|
|
313
|
+
datasource_ids = [linker["datasource_id"] for linker in c["linkers"]]
|
|
314
|
+
datasource_names = [ds["name"] for ds in datasources if ds["id"] in datasource_ids]
|
|
315
|
+
connected_datasources = ", ".join(datasource_names) if len(datasource_names) > 0 else ""
|
|
316
|
+
else:
|
|
317
|
+
connected_datasources = str(len(c["linkers"]))
|
|
306
318
|
|
|
307
|
-
|
|
308
|
-
return [
|
|
319
|
+
connectors_to_return.append(
|
|
309
320
|
{
|
|
310
321
|
"id": c["id"],
|
|
311
322
|
"service": c["service"],
|
|
312
323
|
"name": c["name"],
|
|
313
|
-
"connected_datasources":
|
|
324
|
+
"connected_datasources": connected_datasources,
|
|
314
325
|
**c["settings"],
|
|
315
326
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
return [
|
|
320
|
-
{
|
|
321
|
-
"id": c["id"],
|
|
322
|
-
"service": c["service"],
|
|
323
|
-
"name": c["name"],
|
|
324
|
-
"connected_datasources": len(c["linkers"]),
|
|
325
|
-
**c["settings"],
|
|
326
|
-
}
|
|
327
|
-
for c in connectors
|
|
328
|
-
if c["service"] != "gcscheduler"
|
|
329
|
-
]
|
|
327
|
+
)
|
|
328
|
+
|
|
329
|
+
return connectors_to_return
|
|
330
330
|
|
|
331
331
|
def get_datasource(self, ds_name: str, used_by: bool = False) -> Dict[str, Any]:
|
|
332
332
|
params = {
|
|
@@ -121,7 +121,8 @@ def connection_ls(ctx: Context, service: Optional[DataConnectorType] = None) ->
|
|
|
121
121
|
obj: Dict[str, Any] = ctx.ensure_object(dict)
|
|
122
122
|
client: TinyB = obj["client"]
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
datasources = client.datasources()
|
|
125
|
+
connections = client.connections(connector=service, datasources=datasources)
|
|
125
126
|
columns = []
|
|
126
127
|
table = []
|
|
127
128
|
|
|
@@ -12,10 +12,12 @@ from click import Context
|
|
|
12
12
|
|
|
13
13
|
from tinybird.datafile.common import get_name_version
|
|
14
14
|
from tinybird.tb.client import AuthNoTokenException, TinyB
|
|
15
|
+
from tinybird.tb.config import get_display_cloud_host
|
|
15
16
|
from tinybird.tb.modules.cli import cli
|
|
16
17
|
from tinybird.tb.modules.common import echo_safe_humanfriendly_tables_format_smart_table, wait_job
|
|
17
18
|
from tinybird.tb.modules.exceptions import CLIPipeException
|
|
18
19
|
from tinybird.tb.modules.feedback_manager import FeedbackManager
|
|
20
|
+
from tinybird.tb.modules.local_common import TB_LOCAL_ADDRESS
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
@cli.group()
|
|
@@ -89,15 +91,27 @@ def copy_run(ctx: click.Context, pipe_name_or_id: str, wait: bool, mode: str, pa
|
|
|
89
91
|
params = dict(key_value.split("=") for key_value in param) if param else {}
|
|
90
92
|
click.echo(FeedbackManager.highlight(message=f"\n» Running on-demand copy '{pipe_name_or_id}'"))
|
|
91
93
|
client: TinyB = ctx.ensure_object(dict)["client"]
|
|
94
|
+
config = ctx.ensure_object(dict)["config"]
|
|
95
|
+
env = ctx.ensure_object(dict)["env"]
|
|
92
96
|
|
|
93
97
|
try:
|
|
94
98
|
response = client.pipe_run(pipe_name_or_id, "copy", params, mode)
|
|
95
99
|
job_id = response["job"]["job_id"]
|
|
96
100
|
job_url = response["job"]["job_url"]
|
|
101
|
+
|
|
102
|
+
# In Tinybird Local, base URL is http://localhost:8001 internally, we need to replace it with the public one.
|
|
103
|
+
if env == "local":
|
|
104
|
+
job_url = f"{job_url.replace('http://localhost:8001', TB_LOCAL_ADDRESS)}?token={client.token}"
|
|
105
|
+
|
|
97
106
|
target_datasource_id = response["tags"]["copy_target_datasource"]
|
|
98
107
|
target_datasource = client.get_datasource(target_datasource_id)
|
|
99
108
|
target_datasource_name = target_datasource["name"]
|
|
100
109
|
click.echo(FeedbackManager.gray(message="Job URL: ") + FeedbackManager.info(message=f"{job_url}"))
|
|
110
|
+
ui_host = get_display_cloud_host(client.host)
|
|
111
|
+
click.echo(
|
|
112
|
+
FeedbackManager.gray(message="Job dashboard URL: ")
|
|
113
|
+
+ FeedbackManager.info(message=f"{ui_host}/{config.get('name')}/jobs")
|
|
114
|
+
)
|
|
101
115
|
click.echo(FeedbackManager.success(message=f"✓ Copy to '{target_datasource_name}' job created"))
|
|
102
116
|
|
|
103
117
|
if wait:
|
|
@@ -7,10 +7,12 @@ from click import Context
|
|
|
7
7
|
|
|
8
8
|
from tinybird.datafile.common import get_name_version
|
|
9
9
|
from tinybird.tb.client import AuthNoTokenException, TinyB
|
|
10
|
+
from tinybird.tb.config import get_display_cloud_host
|
|
10
11
|
from tinybird.tb.modules.cli import cli
|
|
11
12
|
from tinybird.tb.modules.common import echo_safe_humanfriendly_tables_format_smart_table, wait_job
|
|
12
13
|
from tinybird.tb.modules.exceptions import CLIPipeException
|
|
13
14
|
from tinybird.tb.modules.feedback_manager import FeedbackManager
|
|
15
|
+
from tinybird.tb.modules.local_common import TB_LOCAL_ADDRESS
|
|
14
16
|
|
|
15
17
|
|
|
16
18
|
@cli.group()
|
|
@@ -84,12 +86,24 @@ def sink_run(ctx: click.Context, pipe_name_or_id: str, wait: bool, mode: str, pa
|
|
|
84
86
|
params = dict(key_value.split("=") for key_value in param) if param else {}
|
|
85
87
|
click.echo(FeedbackManager.highlight(message=f"\n» Running sink '{pipe_name_or_id}'"))
|
|
86
88
|
client: TinyB = ctx.ensure_object(dict)["client"]
|
|
89
|
+
config = ctx.ensure_object(dict)["config"]
|
|
90
|
+
env = ctx.ensure_object(dict)["env"]
|
|
87
91
|
|
|
88
92
|
try:
|
|
89
93
|
response = client.pipe_run(pipe_name_or_id, "sink", params, mode)
|
|
90
94
|
job_id = response["job"]["id"]
|
|
91
95
|
job_url = response["job"]["job_url"]
|
|
96
|
+
|
|
97
|
+
# In Tinybird Local, base URL is http://localhost:8001 internally, we need to replace it with the public one.
|
|
98
|
+
if env == "local":
|
|
99
|
+
job_url = f"{job_url.replace('http://localhost:8001', TB_LOCAL_ADDRESS)}?token={client.token}"
|
|
92
100
|
click.echo(FeedbackManager.gray(message="Job URL: ") + FeedbackManager.info(message=f"{job_url}"))
|
|
101
|
+
|
|
102
|
+
ui_host = get_display_cloud_host(client.host)
|
|
103
|
+
click.echo(
|
|
104
|
+
FeedbackManager.gray(message="Job dashboard URL: ")
|
|
105
|
+
+ FeedbackManager.info(message=f"{ui_host}/{config.get('name')}/jobs")
|
|
106
|
+
)
|
|
93
107
|
click.echo(FeedbackManager.success(message="✓ Sink job created"))
|
|
94
108
|
|
|
95
109
|
if wait:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/deploy_check.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/diff_resource.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/execute_query.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/agent/tools/request_endpoint.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/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
|
|
File without changes
|
{tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/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
|
|
File without changes
|
{tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/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.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev322 → tinybird-0.0.1.dev324}/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
|