tinybird-cli 5.4.1.dev1__py3-none-any.whl → 5.4.1.dev2__py3-none-any.whl
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__.py +2 -2
- tinybird/ch_utils/constants.py +4 -1
- tinybird/config.py +45 -1
- tinybird/tb_cli_modules/auth.py +3 -1
- tinybird/tb_cli_modules/common.py +3 -2
- {tinybird_cli-5.4.1.dev1.dist-info → tinybird_cli-5.4.1.dev2.dist-info}/METADATA +6 -1
- {tinybird_cli-5.4.1.dev1.dist-info → tinybird_cli-5.4.1.dev2.dist-info}/RECORD +10 -10
- {tinybird_cli-5.4.1.dev1.dist-info → tinybird_cli-5.4.1.dev2.dist-info}/WHEEL +0 -0
- {tinybird_cli-5.4.1.dev1.dist-info → tinybird_cli-5.4.1.dev2.dist-info}/entry_points.txt +0 -0
- {tinybird_cli-5.4.1.dev1.dist-info → tinybird_cli-5.4.1.dev2.dist-info}/top_level.txt +0 -0
tinybird/__cli__.py
CHANGED
|
@@ -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.4.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '5.4.1.dev2'
|
|
8
|
+
__revision__ = '5e2ca7a'
|
tinybird/ch_utils/constants.py
CHANGED
|
@@ -4,7 +4,10 @@ LIVE_WS_NAME = "live"
|
|
|
4
4
|
SNAPSHOT_WS_NAME = "snapshot"
|
|
5
5
|
|
|
6
6
|
ENABLED_TABLE_FUNCTIONS = {"generateRandom", "null", "numbers", "numbers_mt", "values", "zeros", "zeros_mt"}
|
|
7
|
-
|
|
7
|
+
# there's a workspace limit allowed_table_functions used in the APIs limit in cheriff
|
|
8
|
+
COPY_ENABLED_TABLE_FUNCTIONS = frozenset(
|
|
9
|
+
["postgresql", "mysql", "mongodb", "url", "azureBlobStorage", "gcs", "iceberg", "s3"]
|
|
10
|
+
)
|
|
8
11
|
|
|
9
12
|
ENABLED_SYSTEM_TABLES = {
|
|
10
13
|
"functions",
|
tinybird/config.py
CHANGED
|
@@ -17,11 +17,51 @@ DEFAULT_API_HOST = "https://api.tinybird.co"
|
|
|
17
17
|
DEFAULT_LOCALHOST = "http://localhost:8001"
|
|
18
18
|
CURRENT_VERSION = f"{__cli__.__version__}"
|
|
19
19
|
VERSION = f"{__cli__.__version__} (rev {__revision__})"
|
|
20
|
-
DEFAULT_UI_HOST = "https://
|
|
20
|
+
DEFAULT_UI_HOST = "https://app.tinybird.co"
|
|
21
21
|
SUPPORTED_CONNECTORS = ["bigquery", "snowflake"]
|
|
22
22
|
PROJECT_PATHS = ["datasources", "datasources/fixtures", "endpoints", "pipes", "tests", "scripts", "deploy"]
|
|
23
23
|
DEPRECATED_PROJECT_PATHS = ["endpoints"]
|
|
24
24
|
MIN_WORKSPACE_ID_LENGTH = 36
|
|
25
|
+
LEGACY_HOSTS = {
|
|
26
|
+
"https://api.tinybird.co": "https://app.tinybird.co/gcp/europe-west3",
|
|
27
|
+
"https://api.us-east.tinybird.co": "https://app.tinybird.co/gcp/us-east4",
|
|
28
|
+
"https://api.us-east.aws.tinybird.co": "https://app.tinybird.co/aws/us-east-1",
|
|
29
|
+
"https://api.us-west-2.aws.tinybird.co": "https://app.tinybird.co/aws/us-west-2",
|
|
30
|
+
"https://api.eu-central-1.aws.tinybird.co": "https://app.tinybird.co/aws/eu-central-1",
|
|
31
|
+
"https://api.ap-east.aws.tinybird.co": "https://app.tinybird.co/aws/ap-east",
|
|
32
|
+
"https://api.wadus1.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus1",
|
|
33
|
+
"https://api.wadus2.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus2",
|
|
34
|
+
"https://api.wadus3.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus3",
|
|
35
|
+
"https://api.wadus4.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus4",
|
|
36
|
+
"https://api.wadus5.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus5",
|
|
37
|
+
"https://api.wadus6.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus6",
|
|
38
|
+
"https://ui.tinybird.co": "https://app.tinybird.co/gcp/europe-west3",
|
|
39
|
+
"https://ui.us-east.tinybird.co": "https://app.tinybird.co/gcp/us-east4",
|
|
40
|
+
"https://ui.us-east.aws.tinybird.co": "https://app.tinybird.co/aws/us-east-1",
|
|
41
|
+
"https://ui.us-west-2.aws.tinybird.co": "https://app.tinybird.co/aws/us-west-2",
|
|
42
|
+
"https://ui.eu-central-1.aws.tinybird.co": "https://app.tinybird.co/aws/eu-central-1",
|
|
43
|
+
"https://ui.ap-east.aws.tinybird.co": "https://app.tinybird.co/aws/ap-east",
|
|
44
|
+
"https://inditex-tech.tinybird.co": "https://app.inditex.tinybird.co/gcp/inditex-tech",
|
|
45
|
+
"https://inditex-c-stg.tinybird.co": "https://app.inditex.tinybird.co/gcp/inditex-c-stg",
|
|
46
|
+
"https://inditex-c-pro.tinybird.co": "https://app.inditex.tinybird.co/gcp/inditex-c-pro",
|
|
47
|
+
"https://inditex-z-stg.tinybird.co": "https://app.inditex.tinybird.co/gcp/inditex-z-stg",
|
|
48
|
+
"https://inditex-rt-pro.tinybird.co": "https://app.inditex.tinybird.co/gcp/inditex-rt-pro",
|
|
49
|
+
"https://inditex-pro.tinybird.co": "https://app.inditex.tinybird.co/gcp/inditex-pro",
|
|
50
|
+
"https://ui.split.tinybird.co": "https://app.tinybird.co/aws/split-us-east",
|
|
51
|
+
"https://ui.split.us-west-2.aws.tinybird.co": "https://app.tinybird.co/aws/aws/split-us-west-2",
|
|
52
|
+
"https://ui.split.azure.tinybird.co": "https://app.tinybird.co/azure/split-us-east",
|
|
53
|
+
"https://ui.split-westeurope.azure.tinybird.co": "https://app.tinybird.co/azure/split-westeurope",
|
|
54
|
+
"https://ui.wadus1.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus1",
|
|
55
|
+
"https://ui.wadus2.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus2",
|
|
56
|
+
"https://ui.wadus3.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus3",
|
|
57
|
+
"https://ui.wadus4.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus4",
|
|
58
|
+
"https://ui.wadus5.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus5",
|
|
59
|
+
"https://ui.wadus6.gcp.tinybird.co": "https://app.wadus.tinybird.co/gcp/wadus6",
|
|
60
|
+
"https://ui.wadus1.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus1",
|
|
61
|
+
"https://ui.wadus2.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus2",
|
|
62
|
+
"https://ui.wadus3.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus3",
|
|
63
|
+
"https://ui.wadus4.aws.tinybird.co": "https://app.wadus.tinybird.co/aws/wadus4",
|
|
64
|
+
}
|
|
25
65
|
|
|
26
66
|
|
|
27
67
|
async def get_config(host: str, token: Optional[str], semver: Optional[str] = None) -> Dict[str, Any]:
|
|
@@ -53,6 +93,10 @@ async def write_config(config: Dict[str, Any], dest_file: str = ".tinyb"):
|
|
|
53
93
|
file.write(json.dumps(config, indent=4, sort_keys=True))
|
|
54
94
|
|
|
55
95
|
|
|
96
|
+
def get_display_host(ui_host: str):
|
|
97
|
+
return LEGACY_HOSTS.get(ui_host, ui_host)
|
|
98
|
+
|
|
99
|
+
|
|
56
100
|
class FeatureFlags:
|
|
57
101
|
@classmethod
|
|
58
102
|
def ignore_sql_errors(cls) -> bool: # Context: #1155
|
tinybird/tb_cli_modules/auth.py
CHANGED
|
@@ -8,6 +8,7 @@ from typing import Any, Dict, List, Optional
|
|
|
8
8
|
import click
|
|
9
9
|
import humanfriendly.tables
|
|
10
10
|
|
|
11
|
+
from tinybird.config import get_display_host
|
|
11
12
|
from tinybird.feedback_manager import FeedbackManager
|
|
12
13
|
from tinybird.tb_cli_modules.cli import cli
|
|
13
14
|
from tinybird.tb_cli_modules.common import (
|
|
@@ -157,7 +158,8 @@ async def auth_info() -> None:
|
|
|
157
158
|
token = f"{config.get_token()} ({token_origin})"
|
|
158
159
|
|
|
159
160
|
host_origin = ORIGINS.get(config.get_value_origin("host"), "")
|
|
160
|
-
|
|
161
|
+
host_name = get_display_host(config.get_host() or "")
|
|
162
|
+
host = f"{host_name} ({host_origin})"
|
|
161
163
|
|
|
162
164
|
if config.get_user_token():
|
|
163
165
|
user_token_origin = ORIGINS.get(config.get_value_origin("user_token"), "")
|
|
@@ -50,6 +50,7 @@ from tinybird.config import (
|
|
|
50
50
|
VERSION,
|
|
51
51
|
FeatureFlags,
|
|
52
52
|
get_config,
|
|
53
|
+
get_display_host,
|
|
53
54
|
write_config,
|
|
54
55
|
)
|
|
55
56
|
|
|
@@ -1874,7 +1875,7 @@ async def try_authenticate(
|
|
|
1874
1875
|
config.set_host(api_host)
|
|
1875
1876
|
|
|
1876
1877
|
if not token:
|
|
1877
|
-
token = ask_for_admin_token_interactively(ui_host, default_token=default_password)
|
|
1878
|
+
token = ask_for_admin_token_interactively(get_display_host(ui_host), default_token=default_password)
|
|
1878
1879
|
config.set_token(token)
|
|
1879
1880
|
|
|
1880
1881
|
add_telemetry_event("auth_token", token=token)
|
|
@@ -1891,7 +1892,7 @@ async def try_authenticate(
|
|
|
1891
1892
|
config.set_host(host)
|
|
1892
1893
|
authenticated = await try_update_config_with_remote(config, raise_on_errors=False)
|
|
1893
1894
|
if authenticated:
|
|
1894
|
-
click.echo(FeedbackManager.success_using_host(name=name, host=ui_host))
|
|
1895
|
+
click.echo(FeedbackManager.success_using_host(name=name, host=get_display_host(ui_host)))
|
|
1895
1896
|
break
|
|
1896
1897
|
|
|
1897
1898
|
if not authenticated:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tinybird-cli
|
|
3
|
-
Version: 5.4.1.
|
|
3
|
+
Version: 5.4.1.dev2
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/cli/introduction.html
|
|
6
6
|
Author: Tinybird
|
|
@@ -51,6 +51,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
|
|
|
51
51
|
Changelog
|
|
52
52
|
----------
|
|
53
53
|
|
|
54
|
+
5.4.1.dev1
|
|
55
|
+
**********
|
|
56
|
+
|
|
57
|
+
- `Fixed` regions list when usign `tb auth --interactive`, `tb auth ls` and `tb auth info`
|
|
58
|
+
|
|
54
59
|
5.4.0
|
|
55
60
|
**********
|
|
56
61
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
tinybird/__cli__.py,sha256=
|
|
1
|
+
tinybird/__cli__.py,sha256=bQsxglDNQkqHiVcuw5ahwfNSPDoOC3Wn6Xafw1cgvzo,254
|
|
2
2
|
tinybird/check_pypi.py,sha256=_4NkharLyR_ELrAdit-ftqIWvOf7jZNPt3i76frlo9g,975
|
|
3
3
|
tinybird/client.py,sha256=X9WYDS8gf07w0vncMMO7eeZj7G1D4vJAv9_npf1Otak,48339
|
|
4
|
-
tinybird/config.py,sha256=
|
|
4
|
+
tinybird/config.py,sha256=LTHiR5JeAhslZCq4WaIZRW973KQMcEEC7TfN-uyS3wU,5397
|
|
5
5
|
tinybird/connectors.py,sha256=lkpVSUmSuViEZBa4QjTK7YmPHUop0a5UFoTrSmlVq6k,15244
|
|
6
6
|
tinybird/context.py,sha256=3KwB9TL-nON6qX9Mm5uev4CkrgLwYyNDvdFfQmNc0Cc,1171
|
|
7
7
|
tinybird/datafile.py,sha256=AQpMsvSRplsyVUpFXokaXNEW5UxQwTafcZ13y_acIsg,219704
|
|
@@ -15,13 +15,13 @@ tinybird/sql_toolset.py,sha256=OIilqfV8o9uIOk6LetDwz4cePzLHKj-iiGvZou203SU,13777
|
|
|
15
15
|
tinybird/syncasync.py,sha256=WlcT89npPwxcDEZ6kSF4ViZnyRwoEr74Jk1NDjhW83k,27819
|
|
16
16
|
tinybird/tb_cli.py,sha256=XPyQ8QQ85ohpfVv7ZGzZjIbeijFZEzWQDwCz5zVpZ_U,674
|
|
17
17
|
tinybird/tornado_template.py,sha256=GQ153Ou5RtVJ4OH_siO2lJBNbt7NTjOZS3upseoPuQo,42202
|
|
18
|
-
tinybird/ch_utils/constants.py,sha256
|
|
18
|
+
tinybird/ch_utils/constants.py,sha256=-VCzZDXpx0YEpFU4QyXizgR2NBNk_bIXiJ-rLcLXkRs,3877
|
|
19
19
|
tinybird/ch_utils/engine.py,sha256=fXaO-CLIUiS_HLhIiTd3OwJnDmxVzvuos8lVxzpbV6Y,39975
|
|
20
|
-
tinybird/tb_cli_modules/auth.py,sha256=
|
|
20
|
+
tinybird/tb_cli_modules/auth.py,sha256=q8kWMShi26bMYtOcmT_43oKED75JQUh2C89RF43_yiM,8700
|
|
21
21
|
tinybird/tb_cli_modules/branch.py,sha256=eDITCAep5BvzXOPlPfSDTX5jG8YrG5vS5JsbE2hWJvs,38625
|
|
22
22
|
tinybird/tb_cli_modules/cicd.py,sha256=HYOINvm1eD37P-oF_BZ6v-A-KFoySRkkMjMGAuSfrqc,13910
|
|
23
23
|
tinybird/tb_cli_modules/cli.py,sha256=7ce9J4VuaKiGRhFrKZB-MxwS4uVtczI4cGFSDV1hwIE,64576
|
|
24
|
-
tinybird/tb_cli_modules/common.py,sha256=
|
|
24
|
+
tinybird/tb_cli_modules/common.py,sha256=r2WJ3dyR-sUvhpIl_3mYw9cvraieKcyqGA5xqRZNIZU,86164
|
|
25
25
|
tinybird/tb_cli_modules/config.py,sha256=6NTgIdwf0X132A1j6G_YrdPep87ymZ9b5pABabKLzh4,11484
|
|
26
26
|
tinybird/tb_cli_modules/connection.py,sha256=Ur2EgXRC25idzcQqh9ayAL5K2KA2EepyavHuj9a4sBM,28306
|
|
27
27
|
tinybird/tb_cli_modules/datasource.py,sha256=P2lREhGMxOp6hGYBuxwVz9yjWayF06AyH2qkaluQkN8,32202
|
|
@@ -36,8 +36,8 @@ tinybird/tb_cli_modules/workspace.py,sha256=TfKqSQuIk5JhG7Za4Z6e2uTwy4NhWPXLgZN2
|
|
|
36
36
|
tinybird/tb_cli_modules/workspace_members.py,sha256=0nkaQJJdR_6rLnTeoK0eBkiDFnm4v7Z2oFGovY-jYMY,8446
|
|
37
37
|
tinybird/tb_cli_modules/tinyunit/tinyunit.py,sha256=0dYYmZMMJVubxSPls2e_a-fqtUYvgLfu2B0xwLfkbHw,11667
|
|
38
38
|
tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py,sha256=j92za8QbXrv4eIPjKBZPn9ghR-nYQ2wZZ88MeXyMWXE,1868
|
|
39
|
-
tinybird_cli-5.4.1.
|
|
40
|
-
tinybird_cli-5.4.1.
|
|
41
|
-
tinybird_cli-5.4.1.
|
|
42
|
-
tinybird_cli-5.4.1.
|
|
43
|
-
tinybird_cli-5.4.1.
|
|
39
|
+
tinybird_cli-5.4.1.dev2.dist-info/METADATA,sha256=2oSRHAAwQk_PVnZWMxIusA2OpDAA2NES3P50N2FzpJg,74818
|
|
40
|
+
tinybird_cli-5.4.1.dev2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
41
|
+
tinybird_cli-5.4.1.dev2.dist-info/entry_points.txt,sha256=PKPKuPmA4IfJYnCFHHUiw-aAWZuBomFvwCklv1OyCjE,43
|
|
42
|
+
tinybird_cli-5.4.1.dev2.dist-info/top_level.txt,sha256=pgw6AzERHBcW3YTi2PW4arjxLkulk2msOz_SomfOEuc,45
|
|
43
|
+
tinybird_cli-5.4.1.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|