tinybird 4.5.1.dev0__py3-none-any.whl → 4.5.2.dev0__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.
@@ -234,7 +234,7 @@ PREVIEW_CONNECTOR_SERVICES = ["s3", "s3_iamrole", "gcs"]
234
234
  pp = pprint.PrettyPrinter()
235
235
 
236
236
  valid_chars_name: str = string.ascii_letters + string.digits + "._`*<>+-'"
237
- valid_chars_fn: str = valid_chars_name + "[](),=!?:/ \n\t\r"
237
+ valid_chars_fn: str = valid_chars_name + "[](),=!?:/% \n\t\r"
238
238
 
239
239
 
240
240
  class UnkownExtensionerror(Exception): ...
tinybird/sql.py CHANGED
@@ -6,7 +6,7 @@ from dataclasses import dataclass
6
6
  from typing import Any, Dict, Iterable, List, Optional
7
7
 
8
8
  valid_chars_name: str = string.ascii_letters + string.digits + "._`*<>+-'"
9
- valid_chars_fn: str = valid_chars_name + "[](),=!?:/ \n\t\r"
9
+ valid_chars_fn: str = valid_chars_name + "[](),=!?:/% \n\t\r"
10
10
  # Use sets for O(1) membership checks in hot loops
11
11
  _VALID_CHARS_NAME_SET = set(valid_chars_name)
12
12
  _VALID_CHARS_FN_SET = set(valid_chars_fn)
tinybird/sql_template.py CHANGED
@@ -2144,7 +2144,7 @@ def get_var_data(content, node_id=None):
2144
2144
  return [dict(name=k, **v) for k, v in vars.items()]
2145
2145
 
2146
2146
 
2147
- def get_var_names_and_types(t, node_id=None):
2147
+ def get_var_names_and_types(t: Template, node_id: Optional[str] = None) -> List[Dict[str, Any]]:
2148
2148
  """
2149
2149
  >>> get_var_names_and_types(Template("SELECT * FROM filter_value WHERE description = {{Float32(with_value, 0.0)}}"))
2150
2150
  [{'name': 'with_value', 'type': 'Float32', 'default': 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__ = '4.5.1.dev0'
8
- __revision__ = '29ba0bd'
7
+ __version__ = '4.5.2.dev0'
8
+ __revision__ = '4cf88c3'
@@ -22,7 +22,7 @@ def open(ctx: Context, workspace: str):
22
22
  client = ctx.ensure_object(dict)["client"]
23
23
  branch = ctx.ensure_object(dict)["branch"]
24
24
 
25
- url_host = get_display_cloud_host(client.host)
25
+ is_local = "localhost" in client.host
26
26
 
27
27
  if not workspace:
28
28
  workspace = config.get("name")
@@ -34,12 +34,18 @@ def open(ctx: Context, workspace: str):
34
34
  )
35
35
  )
36
36
 
37
- if branch:
37
+ if is_local:
38
+ url_host = get_display_cloud_host(config["host"])
39
+ click.echo(FeedbackManager.highlight(message=f"» Opening local workspace {workspace} in the browser"))
40
+ auth_url = f"{url_host}/{workspace}~local~{workspace}"
41
+ elif branch:
42
+ url_host = get_display_cloud_host(client.host)
38
43
  click.echo(
39
44
  FeedbackManager.highlight(message=f"» Opening branch {branch} of workspace {workspace} in the browser")
40
45
  )
41
46
  auth_url = f"{url_host}/{workspace}~{branch}"
42
47
  else:
48
+ url_host = get_display_cloud_host(client.host)
43
49
  click.echo(FeedbackManager.highlight(message=f"» Opening workspace {workspace} in the browser"))
44
50
  auth_url = f"{url_host}/{workspace}"
45
51
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 4.5.1.dev0
3
+ Version: 4.5.2.dev0
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -14,7 +14,7 @@ Requires-Dist: clickhouse-toolset==0.34.dev0
14
14
  Requires-Dist: colorama==0.4.6
15
15
  Requires-Dist: confluent-kafka==2.8.2
16
16
  Requires-Dist: cryptography~=41.0.0
17
- Requires-Dist: croniter==1.3.15
17
+ Requires-Dist: croniter==6.2.2
18
18
  Requires-Dist: docker==7.1.0
19
19
  Requires-Dist: GitPython~=3.1.32
20
20
  Requires-Dist: humanfriendly~=8.2
@@ -52,6 +52,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
52
52
  Changelog
53
53
  ----------
54
54
 
55
+ 4.5.1
56
+ *******
57
+
58
+ - `Fixed` `tb open` now generates the correct UI URL when running against Tinybird Local.
59
+
55
60
  4.5.0
56
61
  *******
57
62
 
@@ -4,20 +4,20 @@ tinybird/feedback_manager.py,sha256=OehfKVruCHwUNN1bHIbDICvOaIovc3hb6RjGHTyIkBc,
4
4
  tinybird/git_settings.py,sha256=mqWgeboOlOFsSo97qyv595UCR2R1QCAqT4GTawBNPBg,3935
5
5
  tinybird/prompts.py,sha256=F8ic_mGId50MDJmg5ec8i5BDavxz9SWtocLXqgO0IRY,45689
6
6
  tinybird/service_datasources.py,sha256=fpGWCHaP0zAh6IsT17KBDtCpCqLkjbFyF8uYTis2LEk,58076
7
- tinybird/sql.py,sha256=GkYat5LdigutlTmC3K1xSfLTX2AbBLcOo6eraDAk0Sk,48762
8
- tinybird/sql_template.py,sha256=CcZHau-rXBL5Mnmi_T0uKhmFjTb7yb15fTCuI8Pry2w,128585
7
+ tinybird/sql.py,sha256=TjuJukrTgHdubY88Pt4OOGRV5IS44R4oWRwF7o5fkx0,48763
8
+ tinybird/sql_template.py,sha256=65wtfKygqkYjU57MOlOTtbUk3EKc-Px7GeEfk65s0WM,128636
9
9
  tinybird/sql_template_fmt.py,sha256=Ma4qcs-2r8ZXQC4GUmrCqYz34DsnGF8k5lE2Jwnr314,10638
10
10
  tinybird/sql_toolset.py,sha256=ATiaUuowBtF8INfVBsI4W7WTJqidB2oIcXEfNDxKif4,27695
11
11
  tinybird/syncasync.py,sha256=rIPmCvygWSFqfnlVqhZH4N9gVVTvD6DEPsfoxGizYrI,27776
12
12
  tinybird/tornado_template.py,sha256=1_0nYFk_xJh_TMHh6AKkJILvnNY6xYmaM-uJ3Ofv7e8,42085
13
13
  tinybird/ch_utils/constants.py,sha256=yTNizMzgYNBzUc2EV3moBfdrDIggOe9hiuAgWF7sv2c,4333
14
14
  tinybird/ch_utils/engine.py,sha256=NzYUnmXsrJQimwXfCqdtIMyuS_Ad0OSdEnqNXzzStvY,37489
15
- tinybird/datafile/common.py,sha256=AmkRSI1JV7ugYjxltYYrC-XLkKGnyBM3zx4wDTd9r7s,109713
15
+ tinybird/datafile/common.py,sha256=-kis_iAE4FKWqLCiHnAE0v_qvCv5TFFavmoGLZyywE0,109714
16
16
  tinybird/datafile/exceptions.py,sha256=8rw2umdZjtby85QbuRKFO5ETz_eRHwUY5l7eHsy1wnI,556
17
17
  tinybird/datafile/parse_connection.py,sha256=GxmGp_XnWbDZPDbh_PBxitlIMqZRYfDwxMBw-JQBp1g,1890
18
18
  tinybird/datafile/parse_datasource.py,sha256=yd58HrUF4yNJXLn6OsvKGpZJpvrcjLGAeJG1lgBe_zk,1891
19
19
  tinybird/datafile/parse_pipe.py,sha256=-9bbgVuiWRyDYydrLVflDBt8GstZotMy6dklsrc6MUY,3859
20
- tinybird/tb/__cli__.py,sha256=ZVt-rjv7rwtU3bT17xNTAGs2VQDh_K3dBcuPcajobVE,245
20
+ tinybird/tb/__cli__.py,sha256=7WU6bivcBQ_tYlueRvNPz-IFZshSMj5WJx3OmMpSBLU,245
21
21
  tinybird/tb/check_pypi.py,sha256=Gp0HkHHDFMSDL6nxKlOY51z7z1Uv-2LRexNTZSHHGmM,552
22
22
  tinybird/tb/cli.py,sha256=IjiGfNIpxSxi1odK1kMj9s8lEhx3sAUgGA263XdmyR0,1119
23
23
  tinybird/tb/client.py,sha256=RM8VQwPZFonfvejuTf3oT09XbJmq7pD5VLzFt4zoBGM,53910
@@ -56,7 +56,7 @@ tinybird/tb/modules/login_common.py,sha256=ZfV3bYe312jTB71M0WzLTLwU76tHwJTvzIkQO
56
56
  tinybird/tb/modules/logout.py,sha256=sniI4JNxpTrVeRCp0oGJuQ3yRerG4hH5uz6oBmjv724,1009
57
57
  tinybird/tb/modules/logs.py,sha256=uSQi_A6QIFOjAoj1h8XOI_51AQ3uk5UEg2TjYbZxDJA,21462
58
58
  tinybird/tb/modules/materialization.py,sha256=SaomNeaAzLWtcnsZdetYBxEq0ihY1cRzh23n3Z1P_c4,5643
59
- tinybird/tb/modules/open.py,sha256=wnA3L99Ybyj9JoJZ_Dd4dohVIYvg2AExvj4Dk6P7_yQ,1446
59
+ tinybird/tb/modules/open.py,sha256=ddABA4guIrBhrCKXYpkH4cfiAcFOG2B1eVePk5BEXto,1799
60
60
  tinybird/tb/modules/pipe.py,sha256=xPKtezhnWZ6k_g82r4XpgKslofhuIxb_PvynH4gdUzI,2393
61
61
  tinybird/tb/modules/preview.py,sha256=8GVTHTmxWPqYjTs3-6mQ1ie8XCLrAQQ8aogDhCpnWMI,4549
62
62
  tinybird/tb/modules/project.py,sha256=Js8f_VjzEI3cITaw5a_X2wgZ6kiO-VQq8LSx688ScDA,8697
@@ -97,8 +97,8 @@ tinybird/tb_cli_modules/config.py,sha256=0kFDmsDcjKon32rgFGMHHKSbv4j5dOrXtVOlyuA
97
97
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
98
98
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
99
99
  tinybird/tb_cli_modules/telemetry.py,sha256=W098H6jmS4kpE7hN3tadaREBTf7oMocel-lkKWN0pU8,10466
100
- tinybird-4.5.1.dev0.dist-info/METADATA,sha256=Ai9BziT8y22SI310EYYZjNsZ13hllwm-z67tccTYs2k,9775
101
- tinybird-4.5.1.dev0.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
102
- tinybird-4.5.1.dev0.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
103
- tinybird-4.5.1.dev0.dist-info/top_level.txt,sha256=ZIQJTPCzMqnfDzM_hEGZrJqDSEcKnIK_49T86DGWpyQ,78
104
- tinybird-4.5.1.dev0.dist-info/RECORD,,
100
+ tinybird-4.5.2.dev0.dist-info/METADATA,sha256=ObQb41Q6V0SnnAeZYrCoRvJSITyJ1yhT_yLF_mSwqlI,9880
101
+ tinybird-4.5.2.dev0.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
102
+ tinybird-4.5.2.dev0.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
103
+ tinybird-4.5.2.dev0.dist-info/top_level.txt,sha256=ZIQJTPCzMqnfDzM_hEGZrJqDSEcKnIK_49T86DGWpyQ,78
104
+ tinybird-4.5.2.dev0.dist-info/RECORD,,