tinybird 0.0.1.dev115__py3-none-any.whl → 0.0.1.dev116__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.

Potentially problematic release.


This version of tinybird might be problematic. Click here for more details.

tinybird/config.py CHANGED
@@ -70,6 +70,24 @@ LEGACY_HOSTS = {
70
70
  }
71
71
 
72
72
 
73
+ CLOUD_HOSTS = {
74
+ "https://api.tinybird.co": "https://cloud.tinybird.co/gcp/europe-west3",
75
+ "https://api.us-east.tinybird.co": "https://cloud.tinybird.co/gcp/us-east4",
76
+ "https://api.us-east.aws.tinybird.co": "https://cloud.tinybird.co/aws/us-east-1",
77
+ "https://api.us-west-2.aws.tinybird.co": "https://cloud.tinybird.co/aws/us-west-2",
78
+ "https://api.eu-central-1.aws.tinybird.co": "https://cloud.tinybird.co/aws/eu-central-1",
79
+ "https://api.eu-west-1.aws.tinybird.co": "https://cloud.tinybird.co/aws/eu-west-1",
80
+ "https://api.europe-west2.gcp.tinybird.co": "https://cloud.tinybird.co/gcp/europe-west2",
81
+ "https://api.ap-east.aws.tinybird.co": "https://cloud.tinybird.co/aws/ap-east",
82
+ "https://ui.tinybird.co": "https://cloud.tinybird.co/gcp/europe-west3",
83
+ "https://ui.us-east.tinybird.co": "https://cloud.tinybird.co/gcp/us-east4",
84
+ "https://ui.us-east.aws.tinybird.co": "https://cloud.tinybird.co/aws/us-east-1",
85
+ "https://ui.us-west-2.aws.tinybird.co": "https://cloud.tinybird.co/aws/us-west-2",
86
+ "https://ui.eu-central-1.aws.tinybird.co": "https://cloud.tinybird.co/aws/eu-central-1",
87
+ "https://ui.europe-west2.gcp.tinybird.co": "https://cloud.tinybird.co/gcp/europe-west2",
88
+ }
89
+
90
+
73
91
  async def get_config(
74
92
  host: str, token: Optional[str], semver: Optional[str] = None, config_file: Optional[str] = None
75
93
  ) -> Dict[str, Any]:
@@ -106,6 +124,10 @@ def get_display_host(ui_host: str):
106
124
  return LEGACY_HOSTS.get(ui_host, ui_host)
107
125
 
108
126
 
127
+ def get_display_cloud_host(cloud_host: str):
128
+ return CLOUD_HOSTS.get(cloud_host, cloud_host)
129
+
130
+
109
131
  class FeatureFlags:
110
132
  @classmethod
111
133
  def ignore_sql_errors(cls) -> bool: # Context: #1155
tinybird/tb/__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__ = '0.0.1.dev115'
8
- __revision__ = '65ba005'
7
+ __version__ = '0.0.1.dev116'
8
+ __revision__ = 'ac56a58'
@@ -9,7 +9,7 @@ from typing import Any, Dict, List, Optional
9
9
  import click
10
10
  import humanfriendly.tables
11
11
 
12
- from tinybird.config import get_display_host
12
+ from tinybird.config import get_display_cloud_host
13
13
  from tinybird.tb.modules.cli import cli
14
14
  from tinybird.tb.modules.common import (
15
15
  configure_connector,
@@ -173,7 +173,7 @@ async def auth_info() -> None:
173
173
  token = f"{config.get_token()} ({token_origin})"
174
174
 
175
175
  host = config.get("host") or ""
176
- ui_host = get_display_host(host)
176
+ ui_host = get_display_cloud_host(host)
177
177
 
178
178
  if config.get_user_token():
179
179
  user_token_origin = ORIGINS.get(config.get_value_origin("user_token"), "")
@@ -50,7 +50,7 @@ from tinybird.config import (
50
50
  VERSION,
51
51
  FeatureFlags,
52
52
  get_config,
53
- get_display_host,
53
+ get_display_cloud_host,
54
54
  write_config,
55
55
  )
56
56
  from tinybird.tb.modules.table import format_table
@@ -1401,7 +1401,7 @@ async def get_regions(config: CLIConfig) -> List[Region]:
1401
1401
  regions.append(
1402
1402
  {
1403
1403
  "api_host": format_host(key, subdomain="api"),
1404
- "host": get_display_host(key),
1404
+ "host": get_display_cloud_host(key),
1405
1405
  "name": key,
1406
1406
  "default_password": config["tokens"][key],
1407
1407
  "provider": "",
@@ -1514,7 +1514,7 @@ async def try_authenticate(
1514
1514
  config.set_host(api_host)
1515
1515
 
1516
1516
  if not token:
1517
- token = ask_for_admin_token_interactively(get_display_host(ui_host), default_token=default_password)
1517
+ token = ask_for_admin_token_interactively(get_display_cloud_host(ui_host), default_token=default_password)
1518
1518
  config.set_token(token)
1519
1519
 
1520
1520
  add_telemetry_event("auth_token", token=token)
@@ -1531,7 +1531,7 @@ async def try_authenticate(
1531
1531
  config.set_host(host)
1532
1532
  authenticated = await try_update_config_with_remote(config, raise_on_errors=False)
1533
1533
  if authenticated:
1534
- click.echo(FeedbackManager.success_using_host(name=name, host=get_display_host(ui_host)))
1534
+ click.echo(FeedbackManager.success_using_host(name=name, host=get_display_cloud_host(ui_host)))
1535
1535
  break
1536
1536
 
1537
1537
  if not authenticated:
@@ -2092,7 +2092,7 @@ async def create_organization_and_add_workspaces(
2092
2092
  async def get_user_token(config: CLIConfig, user_token: Optional[str] = None) -> str:
2093
2093
  client = config.get_client()
2094
2094
  host = config.get_host() or CLIConfig.DEFAULTS["host"]
2095
- ui_host = get_display_host(host)
2095
+ ui_host = get_display_cloud_host(host)
2096
2096
 
2097
2097
  if not user_token:
2098
2098
  user_token = config.get_user_token()
@@ -11,7 +11,7 @@ import click
11
11
  from click import Context
12
12
 
13
13
  from tinybird.client import TinyB
14
- from tinybird.config import get_display_host
14
+ from tinybird.config import get_display_cloud_host
15
15
  from tinybird.tb.modules.common import (
16
16
  ask_for_user_token,
17
17
  check_user_token,
@@ -40,7 +40,7 @@ async def get_command_context(ctx: click.Context) -> WorkspaceMemberCommandConte
40
40
  config = CLIConfig.get_project_config()
41
41
  client = config.get_client()
42
42
  host = config.get_host() or CLIConfig.DEFAULTS["host"]
43
- ui_host = get_display_host(host)
43
+ ui_host = get_display_cloud_host(host)
44
44
 
45
45
  workspace = await get_current_workspace(config)
46
46
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev115
3
+ Version: 0.0.1.dev116
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -1,6 +1,6 @@
1
1
  tinybird/__cli__.py,sha256=esPl5QDTzuQgHe5FuxWLm-fURFigGGwjnYLh9GuWUw4,232
2
2
  tinybird/client.py,sha256=yc2BP2HiQhaUjU-t7nBuZEiJsb2nQMH3vBfOhKCciyU,55468
3
- tinybird/config.py,sha256=5UP_UZ2Qtlm5aOH5W7SbtN8r7X-8u3-r853joKqU5zs,6072
3
+ tinybird/config.py,sha256=Rz2WNJaMDRjAIhRmUM-1jkwiSyi5xQ4N302sB1o0_FE,7396
4
4
  tinybird/connectors.py,sha256=7Gjms7b5MAaBFGi3xytsJurCylprONpFcYrzp4Fw2Rc,15241
5
5
  tinybird/context.py,sha256=FfqYfrGX_I7PKGTQo93utaKPDNVYWelg4Hsp3evX5wM,1291
6
6
  tinybird/datatypes.py,sha256=XNypumfqNjsvLJ5iNXnbVHRvAJe0aQwI3lS6Cxox-e0,10979
@@ -15,13 +15,13 @@ tinybird/syncasync.py,sha256=IPnOx6lMbf9SNddN1eBtssg8vCLHMt76SuZ6YNYm-Yk,27761
15
15
  tinybird/tornado_template.py,sha256=jjNVDMnkYFWXflmT8KU_Ssbo5vR8KQq3EJMk5vYgXRw,41959
16
16
  tinybird/ch_utils/constants.py,sha256=aYvg2C_WxYWsnqPdZB1ZFoIr8ZY-XjUXYyHKE9Ansj0,3890
17
17
  tinybird/ch_utils/engine.py,sha256=BZuPM7MFS7vaEKK5tOMR2bwSAgJudPrJt27uVEwZmTY,40512
18
- tinybird/tb/__cli__.py,sha256=gJjACVVDIOYJ-CaEb9_AtxAC2FTWAu5Il6Ve2a_c5dI,252
18
+ tinybird/tb/__cli__.py,sha256=EdSKhwyV5LjGMaLETBlKEvnBA0wYTqWd2lxTFgg4QtQ,252
19
19
  tinybird/tb/cli.py,sha256=uDLwcbwSJfVFw-pceijZJqaq26z5jNsey0QaUGFjt7w,1097
20
- tinybird/tb/modules/auth.py,sha256=L1IatO2arRSzys3t8px8xVt8uPWUL5EVD0sFzAV_uVU,9022
20
+ tinybird/tb/modules/auth.py,sha256=NF0yfkGGBOtZRot-JPYbLD53i2kQ6lxJMD1140xtfzc,9034
21
21
  tinybird/tb/modules/build.py,sha256=Lx1Q-kcxJN0G3pN3qCD8c8RmTpsmMoxCPhmn4DS2QMM,15563
22
22
  tinybird/tb/modules/cicd.py,sha256=A7zJZF9HkJ6NPokplgNjmefMrpUlRbFxBbjMZhq5OTI,7110
23
23
  tinybird/tb/modules/cli.py,sha256=cyvTGb17eWHdfI61Rom0ooD5D2aI1gRqx2nSi1gqtWA,16143
24
- tinybird/tb/modules/common.py,sha256=d2kkXrkoMBmh_CirBBgLw1E1_cxKUUB3ZE_Mx1x9tww,81717
24
+ tinybird/tb/modules/common.py,sha256=CsyCOq5vnFu5aVDirjDvKV7nPU4fAbEkfmLwkOp6W2s,81747
25
25
  tinybird/tb/modules/config.py,sha256=FqdLpLaKpYubqw3xkB4EX06ufZYDgGRxONR_9i-y-KE,11416
26
26
  tinybird/tb/modules/connection.py,sha256=IL095_8ideKM1Ueen3BdsYvJKA05VAdpv7bSQjhXKJo,5354
27
27
  tinybird/tb/modules/copy.py,sha256=MAVqKip8_QhOYq99U_XuqSO6hCLJEh5sFtbhcXtI3SI,5802
@@ -55,7 +55,7 @@ tinybird/tb/modules/test.py,sha256=FUU-drY8mdjNoKsw16O5ZqvYvZqzycrZBEpSwbhGDUE,1
55
55
  tinybird/tb/modules/token.py,sha256=OhqLFpCHVfYeBCxJ0n7n2qoho9E9eGcUfHgL7R1MUVQ,13485
56
56
  tinybird/tb/modules/watch.py,sha256=poNJOUNDESDNn80H2dHvE6X6pIu-t9MZFi59_TxVN2U,8822
57
57
  tinybird/tb/modules/workspace.py,sha256=pk9_6fNxXGM1JPQcjTz7Sj77qn9ML27lGIyYEHPwORE,6611
58
- tinybird/tb/modules/workspace_members.py,sha256=Vb5XEaKmkfONyfg2MS5EcpwolMvv7GLwFS5m2EuobT8,8726
58
+ tinybird/tb/modules/workspace_members.py,sha256=BnPvVfXDBUmwcN5dYOQ8VGx4J9PuykWDalouUSptpyU,8738
59
59
  tinybird/tb/modules/datafile/build.py,sha256=jhfIJ2xt0N13XsLPe3iMQIyCPApHS13_Df2LfISYtT8,50952
60
60
  tinybird/tb/modules/datafile/build_common.py,sha256=rT7VJ5mnQ68R_8US91DAtkusfvjWuG_NObOzNgtN_ko,4562
61
61
  tinybird/tb/modules/datafile/build_datasource.py,sha256=CCU3eQ8Rax9RgHHfbAXDRL6rQ49N35h_GDQnGrUUUzA,17379
@@ -80,8 +80,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
80
80
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
81
81
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
82
82
  tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
83
- tinybird-0.0.1.dev115.dist-info/METADATA,sha256=wkzjetLbEJX4OKIja_mmfMNwf0rinowJxAcTYTAjoOw,1612
84
- tinybird-0.0.1.dev115.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
85
- tinybird-0.0.1.dev115.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
86
- tinybird-0.0.1.dev115.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
87
- tinybird-0.0.1.dev115.dist-info/RECORD,,
83
+ tinybird-0.0.1.dev116.dist-info/METADATA,sha256=C-plItUGmJMHyINIbKa9YW3UTa5n5-vlnTXyHkoYTEU,1612
84
+ tinybird-0.0.1.dev116.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
85
+ tinybird-0.0.1.dev116.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
86
+ tinybird-0.0.1.dev116.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
87
+ tinybird-0.0.1.dev116.dist-info/RECORD,,