tinybird-cli 5.5.1.dev4__tar.gz → 5.5.1.dev5__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.5.1.dev4 → tinybird-cli-5.5.1.dev5}/PKG-INFO +6 -1
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/__cli__.py +2 -2
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/client.py +1 -3
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/common.py +3 -2
- tinybird-cli-5.5.1.dev5/tinybird/tb_cli_modules/regions.py +9 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird_cli.egg-info/PKG-INFO +6 -1
- tinybird-cli-5.5.1.dev4/tinybird/tb_cli_modules/regions.py +0 -79
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/setup.cfg +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/check_pypi.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/config.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/connectors.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/context.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/datafile.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/datatypes.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/feedback_manager.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/git_settings.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/sql.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/sql_template.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/sql_toolset.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/syncasync.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/token.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tornado_template.py +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird_cli.egg-info/SOURCES.txt +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird_cli.egg-info/dependency_links.txt +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird_cli.egg-info/entry_points.txt +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird_cli.egg-info/requires.txt +0 -0
- {tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/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.5.1.
|
|
3
|
+
Version: 5.5.1.dev5
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/cli/introduction.html
|
|
6
6
|
Author: Tinybird
|
|
@@ -18,6 +18,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
|
|
|
18
18
|
Changelog
|
|
19
19
|
----------
|
|
20
20
|
|
|
21
|
+
5.5.1.dev5
|
|
22
|
+
**********
|
|
23
|
+
|
|
24
|
+
- `Fixed` region list for AWS and custom regions when usign `tb auth --interactive`
|
|
25
|
+
|
|
21
26
|
5.5.1.dev4
|
|
22
27
|
**********
|
|
23
28
|
|
|
@@ -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.5.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '5.5.1.dev5'
|
|
8
|
+
__revision__ = '3811426'
|
|
@@ -13,7 +13,6 @@ from urllib3 import Retry
|
|
|
13
13
|
|
|
14
14
|
from tinybird.ch_utils.constants import COPY_ENABLED_TABLE_FUNCTIONS
|
|
15
15
|
from tinybird.syncasync import sync_to_async
|
|
16
|
-
from tinybird.tb_cli_modules.regions import fill_with_public_regions
|
|
17
16
|
from tinybird.tb_cli_modules.telemetry import add_telemetry_event
|
|
18
17
|
|
|
19
18
|
HOST = "https://api.tinybird.co"
|
|
@@ -1101,8 +1100,7 @@ class TinyB(object):
|
|
|
1101
1100
|
|
|
1102
1101
|
async def regions(self):
|
|
1103
1102
|
regions = await self._req("/v0/regions")
|
|
1104
|
-
|
|
1105
|
-
return regions_superset
|
|
1103
|
+
return regions
|
|
1106
1104
|
|
|
1107
1105
|
async def datasource_query_copy(self, datasource_name: str, sql_query: str):
|
|
1108
1106
|
params = {"copy_to": datasource_name}
|
|
@@ -1765,7 +1765,8 @@ async def get_regions_temp(config: CLIConfig) -> List[Region]:
|
|
|
1765
1765
|
regions: List[Region] = []
|
|
1766
1766
|
|
|
1767
1767
|
try:
|
|
1768
|
-
|
|
1768
|
+
response = await config.get_client().regions()
|
|
1769
|
+
regions = response.get("regions", [])
|
|
1769
1770
|
except Exception:
|
|
1770
1771
|
pass
|
|
1771
1772
|
|
|
@@ -1782,7 +1783,7 @@ async def get_regions_temp(config: CLIConfig) -> List[Region]:
|
|
|
1782
1783
|
regions.append(
|
|
1783
1784
|
{
|
|
1784
1785
|
"api_host": format_host(key, subdomain="api"),
|
|
1785
|
-
"host":
|
|
1786
|
+
"host": get_display_host(key),
|
|
1786
1787
|
"name": key,
|
|
1787
1788
|
"default_password": config["tokens"][key],
|
|
1788
1789
|
"provider": "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tinybird-cli
|
|
3
|
-
Version: 5.5.1.
|
|
3
|
+
Version: 5.5.1.dev5
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/cli/introduction.html
|
|
6
6
|
Author: Tinybird
|
|
@@ -18,6 +18,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
|
|
|
18
18
|
Changelog
|
|
19
19
|
----------
|
|
20
20
|
|
|
21
|
+
5.5.1.dev5
|
|
22
|
+
**********
|
|
23
|
+
|
|
24
|
+
- `Fixed` region list for AWS and custom regions when usign `tb auth --interactive`
|
|
25
|
+
|
|
21
26
|
5.5.1.dev4
|
|
22
27
|
**********
|
|
23
28
|
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
from typing import List, Optional, TypedDict
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class Region(TypedDict):
|
|
5
|
-
name: str
|
|
6
|
-
provider: str
|
|
7
|
-
api_host: str
|
|
8
|
-
host: str
|
|
9
|
-
default_password: Optional[str]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
# Maintain in sync with `production.ts`
|
|
13
|
-
|
|
14
|
-
regions_list: List[Region] = [
|
|
15
|
-
{
|
|
16
|
-
"name": "europe-west3",
|
|
17
|
-
"provider": "gcp",
|
|
18
|
-
"api_host": "https://api.tinybird.co",
|
|
19
|
-
"host": "https://app.tinybird.co/gcp/europe-west3",
|
|
20
|
-
"default_password": "",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "us-east4",
|
|
24
|
-
"provider": "gcp",
|
|
25
|
-
"api_host": "https://api.us-east.tinybird.co",
|
|
26
|
-
"host": "https://app.tinybird.co/gcp/us-east4",
|
|
27
|
-
"default_password": "",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "us-east-1",
|
|
31
|
-
"provider": "aws",
|
|
32
|
-
"api_host": "https://api.us-east.aws.tinybird.co",
|
|
33
|
-
"host": "https://app.tinybird.co/aws/us-east-1",
|
|
34
|
-
"default_password": "",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "us-west-2",
|
|
38
|
-
"provider": "aws",
|
|
39
|
-
"api_host": "https://api.us-west-2.aws.tinybird.co",
|
|
40
|
-
"host": "https://app.tinybird.co/aws/us-west-2",
|
|
41
|
-
"default_password": "",
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "eu-central-1",
|
|
45
|
-
"provider": "aws",
|
|
46
|
-
"api_host": "https://api.eu-central-1.aws.tinybird.co",
|
|
47
|
-
"host": "https://app.tinybird.co/aws/eu-central-1",
|
|
48
|
-
"default_password": "",
|
|
49
|
-
},
|
|
50
|
-
]
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
def regions_has_a_public_region(public_regions: List[Region], initial_regions: List[Region]) -> bool:
|
|
54
|
-
in_a_public_region = False
|
|
55
|
-
|
|
56
|
-
for region in initial_regions:
|
|
57
|
-
existing_region = next(
|
|
58
|
-
(
|
|
59
|
-
public_region
|
|
60
|
-
for public_region in public_regions
|
|
61
|
-
if region["api_host"] == public_region["api_host"] or region["host"] == public_region["host"]
|
|
62
|
-
),
|
|
63
|
-
None,
|
|
64
|
-
)
|
|
65
|
-
if existing_region:
|
|
66
|
-
in_a_public_region = True
|
|
67
|
-
break
|
|
68
|
-
|
|
69
|
-
return in_a_public_region
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
def fill_with_public_regions(regions) -> List[Region]:
|
|
73
|
-
initial_regions = regions.get("regions", [])
|
|
74
|
-
if regions_has_a_public_region(regions_list, initial_regions):
|
|
75
|
-
initial_regions += [
|
|
76
|
-
region for region in regions_list if region["api_host"] not in [r["api_host"] for r in initial_regions]
|
|
77
|
-
]
|
|
78
|
-
|
|
79
|
-
return initial_regions
|
|
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.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird/tb_cli_modules/workspace_members.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-cli-5.5.1.dev4 → tinybird-cli-5.5.1.dev5}/tinybird_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|