tinybird 0.0.1.dev271__py3-none-any.whl → 0.0.1.dev272__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/tb/__cli__.py +2 -2
- tinybird/tb/client.py +4 -23
- tinybird/tb/modules/connection.py +1 -1
- tinybird/tb/modules/datafile/pull.py +1 -1
- {tinybird-0.0.1.dev271.dist-info → tinybird-0.0.1.dev272.dist-info}/METADATA +1 -1
- {tinybird-0.0.1.dev271.dist-info → tinybird-0.0.1.dev272.dist-info}/RECORD +9 -9
- {tinybird-0.0.1.dev271.dist-info → tinybird-0.0.1.dev272.dist-info}/WHEEL +0 -0
- {tinybird-0.0.1.dev271.dist-info → tinybird-0.0.1.dev272.dist-info}/entry_points.txt +0 -0
- {tinybird-0.0.1.dev271.dist-info → tinybird-0.0.1.dev272.dist-info}/top_level.txt +0 -0
tinybird/tb/__cli__.py
CHANGED
|
@@ -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.dev272'
|
|
8
|
+
__revision__ = '6fc56e0'
|
tinybird/tb/client.py
CHANGED
|
@@ -300,13 +300,10 @@ 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):
|
|
304
304
|
response = self._req("/v0/connectors")
|
|
305
305
|
connectors = response["connectors"]
|
|
306
|
-
|
|
307
|
-
if not skip_bigquery:
|
|
308
|
-
bigquery_connection = self.bigquery_connection() if connector == "bigquery" or connector is None else None
|
|
309
|
-
connectors = [*connectors, bigquery_connection] if bigquery_connection else connectors
|
|
306
|
+
|
|
310
307
|
if connector:
|
|
311
308
|
return [
|
|
312
309
|
{
|
|
@@ -328,24 +325,9 @@ class TinyB:
|
|
|
328
325
|
**c["settings"],
|
|
329
326
|
}
|
|
330
327
|
for c in connectors
|
|
328
|
+
if c["service"] != "gcscheduler"
|
|
331
329
|
]
|
|
332
330
|
|
|
333
|
-
def bigquery_connection(self):
|
|
334
|
-
bigquery_resources = self.list_gcp_resources()
|
|
335
|
-
if len(bigquery_resources) == 0:
|
|
336
|
-
return None
|
|
337
|
-
|
|
338
|
-
gcp_account_details: Dict[str, Any] = self.get_gcp_service_account_details()
|
|
339
|
-
datasources = self.datasources()
|
|
340
|
-
bigquery_datasources = [ds["name"] for ds in datasources if ds["type"] == "bigquery"]
|
|
341
|
-
return {
|
|
342
|
-
"id": gcp_account_details["account"].split("@")[0],
|
|
343
|
-
"service": "bigquery",
|
|
344
|
-
"name": "bigquery",
|
|
345
|
-
"linkers": bigquery_datasources,
|
|
346
|
-
"settings": gcp_account_details,
|
|
347
|
-
}
|
|
348
|
-
|
|
349
331
|
def get_datasource(self, ds_name: str, used_by: bool = False) -> Dict[str, Any]:
|
|
350
332
|
params = {
|
|
351
333
|
"attrs": "used_by" if used_by else "",
|
|
@@ -1037,10 +1019,9 @@ class TinyB:
|
|
|
1037
1019
|
name_or_id: str,
|
|
1038
1020
|
service: Optional[str] = None,
|
|
1039
1021
|
key: Optional[str] = "name",
|
|
1040
|
-
skip_bigquery: Optional[bool] = False,
|
|
1041
1022
|
) -> Optional[Dict[str, Any]]:
|
|
1042
1023
|
return next(
|
|
1043
|
-
(c for c in self.connections(connector=service
|
|
1024
|
+
(c for c in self.connections(connector=service) if c[key] == name_or_id),
|
|
1044
1025
|
None,
|
|
1045
1026
|
)
|
|
1046
1027
|
|
|
@@ -121,7 +121,7 @@ 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
|
-
connections = client.connections(connector=service
|
|
124
|
+
connections = client.connections(connector=service)
|
|
125
125
|
columns = []
|
|
126
126
|
table = []
|
|
127
127
|
|
|
@@ -17,10 +17,10 @@ tinybird/datafile/exceptions.py,sha256=8rw2umdZjtby85QbuRKFO5ETz_eRHwUY5l7eHsy1w
|
|
|
17
17
|
tinybird/datafile/parse_connection.py,sha256=tRyn2Rpr1TeWet5BXmMoQgaotbGdYep1qiTak_OqC5E,1825
|
|
18
18
|
tinybird/datafile/parse_datasource.py,sha256=ssW8QeFSgglVFi3sDZj_HgkJiTJ2069v2JgqnH3CkDE,1825
|
|
19
19
|
tinybird/datafile/parse_pipe.py,sha256=xf4m0Tw44QWJzHzAm7Z7FwUoUUtr7noMYjU1NiWnX0k,3880
|
|
20
|
-
tinybird/tb/__cli__.py,sha256=
|
|
20
|
+
tinybird/tb/__cli__.py,sha256=s5oRxeoOkXoJmiNFK4NqIPzdBDisEOHAWlbA-u4cJlg,247
|
|
21
21
|
tinybird/tb/check_pypi.py,sha256=Gp0HkHHDFMSDL6nxKlOY51z7z1Uv-2LRexNTZSHHGmM,552
|
|
22
22
|
tinybird/tb/cli.py,sha256=FdDFEIayjmsZEVsVSSvRiVYn_FHOVg_zWQzchnzfWho,1008
|
|
23
|
-
tinybird/tb/client.py,sha256=
|
|
23
|
+
tinybird/tb/client.py,sha256=IQRaInDjOwr9Fzaz3_xXc3aUGqh94tM2lew7IZbB9eM,53733
|
|
24
24
|
tinybird/tb/config.py,sha256=mhMTGnMB5KcxGoh3dewIr2Jjsa6pHE183gCPAQWyp6o,3973
|
|
25
25
|
tinybird/tb/modules/build.py,sha256=efD-vamK1NPaDo9R86Hn8be2DYoW0Hh5bZiH7knK5dk,7790
|
|
26
26
|
tinybird/tb/modules/build_common.py,sha256=dthlaDn_CuwZnedQcUi7iIdDoHWfSbbbGQwiDgNcmC0,13062
|
|
@@ -28,7 +28,7 @@ tinybird/tb/modules/cicd.py,sha256=0KLKccha9IP749QvlXBmzdWv1On3mFwMY4DUcJlBxiE,7
|
|
|
28
28
|
tinybird/tb/modules/cli.py,sha256=OC4jqGciUAgPQLgmo4ztjiQTOiGzqX3yILfxjbZ-CIs,16686
|
|
29
29
|
tinybird/tb/modules/common.py,sha256=tj6DR2yOqMMQ0PILwFGXmMogxdrbQCgj36HdSM611rs,82657
|
|
30
30
|
tinybird/tb/modules/config.py,sha256=gK7rgaWTDd4ZKCrNEg_Uemr26EQjqWt6TjyQKujxOws,11462
|
|
31
|
-
tinybird/tb/modules/connection.py,sha256
|
|
31
|
+
tinybird/tb/modules/connection.py,sha256=axp8Fny1_4PSLJGN4UF6WygyRbQtM3Lbt6thxHKTxzw,17790
|
|
32
32
|
tinybird/tb/modules/copy.py,sha256=dPZkcIDvxjJrlQUIvToO0vsEEEs4EYumbNV77-BzNoU,4404
|
|
33
33
|
tinybird/tb/modules/create.py,sha256=pJxHXG69c9Z_21s-7VuJ3RZOF_nJU51LEwiAkvI3dZY,23251
|
|
34
34
|
tinybird/tb/modules/datasource.py,sha256=pae-ENeHYIF1HHYRSOziFC-2FPLUFa0KS60YpdlKCS8,41725
|
|
@@ -108,7 +108,7 @@ tinybird/tb/modules/datafile/format_datasource.py,sha256=X5N65vDpprFKaWaxkSwFnHa
|
|
|
108
108
|
tinybird/tb/modules/datafile/format_pipe.py,sha256=_64RGD8XI-gpQBMzhymUAVGMhpQK6zar_irDrJFQrHY,7378
|
|
109
109
|
tinybird/tb/modules/datafile/pipe_checker.py,sha256=dxsCQoA6ruxg1fvF6sMLFowpjaqws8lUQcM7XyhgZPE,24609
|
|
110
110
|
tinybird/tb/modules/datafile/playground.py,sha256=47q4XcvDhclHWYv7oFNEqmF1T5NXd9GPWkrT6Av2VhY,56343
|
|
111
|
-
tinybird/tb/modules/datafile/pull.py,sha256=
|
|
111
|
+
tinybird/tb/modules/datafile/pull.py,sha256=BB-JSAPDRL8WotaSo73PHBDdAKBx4ZM-YeZCVcXdRTQ,4311
|
|
112
112
|
tinybird/tb/modules/tinyunit/tinyunit.py,sha256=sJeBnKDHcUNn8t0sdsKB_M2w8IdzeeQ1PzJuleeQ2-E,11695
|
|
113
113
|
tinybird/tb/modules/tinyunit/tinyunit_lib.py,sha256=hGh1ZaXC1af7rKnX7222urkj0QJMhMWclqMy59dOqwE,1922
|
|
114
114
|
tinybird/tb_cli_modules/cicd.py,sha256=0lMkb6CVOFZl5HOwgY8mK4T4mgI7O8335UngLXtCc-c,13851
|
|
@@ -117,8 +117,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
|
|
|
117
117
|
tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
|
|
118
118
|
tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
|
|
119
119
|
tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
|
|
120
|
-
tinybird-0.0.1.
|
|
121
|
-
tinybird-0.0.1.
|
|
122
|
-
tinybird-0.0.1.
|
|
123
|
-
tinybird-0.0.1.
|
|
124
|
-
tinybird-0.0.1.
|
|
120
|
+
tinybird-0.0.1.dev272.dist-info/METADATA,sha256=Ait5uLqtYO9yjOWIF4F7i4ULQE8rxaqqsyrjfYpxyyc,1763
|
|
121
|
+
tinybird-0.0.1.dev272.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
122
|
+
tinybird-0.0.1.dev272.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
|
|
123
|
+
tinybird-0.0.1.dev272.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
|
|
124
|
+
tinybird-0.0.1.dev272.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|