tinybird-cli 5.8.2.dev2__tar.gz → 5.8.2.dev4__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-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/PKG-INFO +15 -4
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/__cli__.py +2 -2
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/feedback_manager.py +3 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/sql_template.py +3 -3
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/auth.py +13 -9
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/common.py +5 -1
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird_cli.egg-info/PKG-INFO +15 -4
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/setup.cfg +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/check_pypi.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/client.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/config.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/connectors.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/context.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/datafile.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/datatypes.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/git_settings.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/sql.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/sql_toolset.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/syncasync.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/token.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tornado_template.py +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird_cli.egg-info/SOURCES.txt +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird_cli.egg-info/dependency_links.txt +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird_cli.egg-info/entry_points.txt +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird_cli.egg-info/requires.txt +0 -0
- {tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tinybird-cli
|
|
3
|
-
Version: 5.8.2.
|
|
3
|
+
Version: 5.8.2.dev4
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/cli/introduction.html
|
|
6
6
|
Author: Tinybird
|
|
@@ -18,20 +18,31 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
|
|
|
18
18
|
Changelog
|
|
19
19
|
----------
|
|
20
20
|
|
|
21
|
+
5.8.2.dev4
|
|
22
|
+
***********
|
|
23
|
+
|
|
24
|
+
- `Fixed` `tb auth` uses explicitly the `--host` if provided.
|
|
25
|
+
|
|
26
|
+
5.8.2.dev3
|
|
27
|
+
***********
|
|
28
|
+
|
|
29
|
+
- `Changed` `tb auth info` and `tb auth ls` now show the region API host properly.
|
|
30
|
+
|
|
31
|
+
|
|
21
32
|
5.8.2.dev2
|
|
22
33
|
***********
|
|
23
34
|
|
|
24
|
-
- `Changed` `tb pull`
|
|
35
|
+
- `Changed` `tb pull` has a new `--fmt` flag to apply the same formatting as `tb fmt` when pulling a datafile.
|
|
25
36
|
|
|
26
37
|
5.8.2.dev1
|
|
27
38
|
***********
|
|
28
39
|
|
|
29
|
-
- `Removed` misleading output message when `tb auth --token` with TB_TOKEN env var also defined
|
|
40
|
+
- `Removed` misleading output message when `tb auth --token` with TB_TOKEN env var also defined.
|
|
30
41
|
|
|
31
42
|
5.8.1
|
|
32
43
|
***********
|
|
33
44
|
|
|
34
|
-
- `Improved` error message of `tb push` when pushing .datasource files
|
|
45
|
+
- `Improved` error message of `tb push` when pushing .datasource files.
|
|
35
46
|
|
|
36
47
|
5.8.0
|
|
37
48
|
**********
|
|
@@ -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__ = '5.8.2.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '5.8.2.dev4'
|
|
8
|
+
__revision__ = '373dfeb'
|
|
@@ -95,6 +95,9 @@ class FeedbackManager:
|
|
|
95
95
|
error_processing_data = error_message("{error} - FAIL")
|
|
96
96
|
error_file_already_exists = error_message("{file} already exists, use --force to override")
|
|
97
97
|
error_invalid_token_for_host = error_message("Invalid token for {host}")
|
|
98
|
+
error_invalid_host = error_message(
|
|
99
|
+
"Cannot parse response from host {host}. Please make sure you are using the API host URL."
|
|
100
|
+
)
|
|
98
101
|
error_invalid_release_for_workspace = error_message(
|
|
99
102
|
"There's no Release with semver {semver} for Workspace {workspace}"
|
|
100
103
|
)
|
|
@@ -1459,11 +1459,11 @@ def generate(self, **kwargs) -> Tuple[str, TemplateExecutionResults]:
|
|
|
1459
1459
|
pass
|
|
1460
1460
|
|
|
1461
1461
|
if line:
|
|
1462
|
-
raise
|
|
1462
|
+
raise SQLTemplateException(f"{message.strip()} line {line[0]}")
|
|
1463
1463
|
else:
|
|
1464
|
-
raise
|
|
1464
|
+
raise SQLTemplateException(f"{message.strip()}")
|
|
1465
1465
|
except Exception as e:
|
|
1466
|
-
if isinstance(e,
|
|
1466
|
+
if isinstance(e, SQLTemplateException):
|
|
1467
1467
|
raise e
|
|
1468
1468
|
else:
|
|
1469
1469
|
logging.exception(f"Error on unbound local error: {e}")
|
|
@@ -32,7 +32,9 @@ from tinybird.tb_cli_modules.regions import Region
|
|
|
32
32
|
"--host",
|
|
33
33
|
help="Set custom host if it's different than https://api.tinybird.co. Check https://www.tinybird.co/docs/api-reference/overview#regions-and-endpoints for the available list of regions",
|
|
34
34
|
)
|
|
35
|
-
@click.option(
|
|
35
|
+
@click.option(
|
|
36
|
+
"--region", envvar="TB_REGION", help="Set region. Run 'tb auth ls' to show available regions. Overrides host."
|
|
37
|
+
)
|
|
36
38
|
@click.option(
|
|
37
39
|
"--connector",
|
|
38
40
|
type=click.Choice(["bigquery", "snowflake"], case_sensitive=True),
|
|
@@ -79,6 +81,9 @@ async def auth(ctx: click.Context, token: str, host: str, region: str, connector
|
|
|
79
81
|
regions: Optional[List[Region]] = None
|
|
80
82
|
try_all_regions = True
|
|
81
83
|
|
|
84
|
+
if host:
|
|
85
|
+
try_all_regions = False
|
|
86
|
+
|
|
82
87
|
if region:
|
|
83
88
|
regions, host = await get_host_from_region(config, region, config.get_host())
|
|
84
89
|
config.set_host(host)
|
|
@@ -167,18 +172,17 @@ async def auth_info() -> None:
|
|
|
167
172
|
token_origin = ORIGINS.get(config.get_value_origin("token"), "")
|
|
168
173
|
token = f"{config.get_token()} ({token_origin})"
|
|
169
174
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
host = f"{host_name} ({host_origin})"
|
|
175
|
+
host = config.get("host") or ""
|
|
176
|
+
ui_host = get_display_host(host)
|
|
173
177
|
|
|
174
178
|
if config.get_user_token():
|
|
175
179
|
user_token_origin = ORIGINS.get(config.get_value_origin("user_token"), "")
|
|
176
180
|
user_token = f"{config.get_user_token()} ({user_token_origin})"
|
|
177
|
-
columns = ["user", "user_token", "token", "host", "workspace_name", "workspace_id"]
|
|
178
|
-
table.append([user_email, user_token, token, host, config["name"], config["id"]])
|
|
181
|
+
columns = ["user", "user_token", "token", "host", "ui", "workspace_name", "workspace_id"]
|
|
182
|
+
table.append([user_email, user_token, token, host, ui_host, config["name"], config["id"]])
|
|
179
183
|
else:
|
|
180
|
-
columns = ["user", "token", "host", "workspace_name", "workspace_id"]
|
|
181
|
-
table.append([user_email, token, host, config["name"], config["id"]])
|
|
184
|
+
columns = ["user", "token", "host", "ui", "workspace_name", "workspace_id"]
|
|
185
|
+
table.append([user_email, token, host, ui_host, config["name"], config["id"]])
|
|
182
186
|
|
|
183
187
|
click.echo(humanfriendly.tables.format_robust_table(table, column_names=columns))
|
|
184
188
|
|
|
@@ -214,7 +218,7 @@ async def auth_ls() -> None:
|
|
|
214
218
|
else:
|
|
215
219
|
table.append([1, "default", "", config["host"], True])
|
|
216
220
|
|
|
217
|
-
columns: List[str] = ["idx", "region", "provider", "
|
|
221
|
+
columns: List[str] = ["idx", "region", "provider", "ui", "host", "current"]
|
|
218
222
|
echo_safe_humanfriendly_tables_format_smart_table(table, column_names=columns)
|
|
219
223
|
|
|
220
224
|
|
|
@@ -1562,7 +1562,11 @@ async def try_update_config_with_remote(
|
|
|
1562
1562
|
return False
|
|
1563
1563
|
except Exception as ex:
|
|
1564
1564
|
if raise_on_errors:
|
|
1565
|
-
|
|
1565
|
+
ex_message = str(ex)
|
|
1566
|
+
if "cannot parse" in ex_message.lower():
|
|
1567
|
+
raise CLIAuthException(FeedbackManager.error_invalid_host(host=config.get_host()))
|
|
1568
|
+
|
|
1569
|
+
raise CLIAuthException(FeedbackManager.error_exception(error=ex_message))
|
|
1566
1570
|
return False
|
|
1567
1571
|
|
|
1568
1572
|
for k in ("id", "name", "user_email", "user_id", "scope"):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tinybird-cli
|
|
3
|
-
Version: 5.8.2.
|
|
3
|
+
Version: 5.8.2.dev4
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/cli/introduction.html
|
|
6
6
|
Author: Tinybird
|
|
@@ -18,20 +18,31 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
|
|
|
18
18
|
Changelog
|
|
19
19
|
----------
|
|
20
20
|
|
|
21
|
+
5.8.2.dev4
|
|
22
|
+
***********
|
|
23
|
+
|
|
24
|
+
- `Fixed` `tb auth` uses explicitly the `--host` if provided.
|
|
25
|
+
|
|
26
|
+
5.8.2.dev3
|
|
27
|
+
***********
|
|
28
|
+
|
|
29
|
+
- `Changed` `tb auth info` and `tb auth ls` now show the region API host properly.
|
|
30
|
+
|
|
31
|
+
|
|
21
32
|
5.8.2.dev2
|
|
22
33
|
***********
|
|
23
34
|
|
|
24
|
-
- `Changed` `tb pull`
|
|
35
|
+
- `Changed` `tb pull` has a new `--fmt` flag to apply the same formatting as `tb fmt` when pulling a datafile.
|
|
25
36
|
|
|
26
37
|
5.8.2.dev1
|
|
27
38
|
***********
|
|
28
39
|
|
|
29
|
-
- `Removed` misleading output message when `tb auth --token` with TB_TOKEN env var also defined
|
|
40
|
+
- `Removed` misleading output message when `tb auth --token` with TB_TOKEN env var also defined.
|
|
30
41
|
|
|
31
42
|
5.8.1
|
|
32
43
|
***********
|
|
33
44
|
|
|
34
|
-
- `Improved` error message of `tb push` when pushing .datasource files
|
|
45
|
+
- `Improved` error message of `tb push` when pushing .datasource files.
|
|
35
46
|
|
|
36
47
|
5.8.0
|
|
37
48
|
**********
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird/tb_cli_modules/workspace_members.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-cli-5.8.2.dev2 → tinybird-cli-5.8.2.dev4}/tinybird_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|