tinybird 0.0.1.dev244__py3-none-any.whl → 0.0.1.dev245__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.

@@ -1698,11 +1698,36 @@ def parse(
1698
1698
  def version(*args: str, **kwargs: Any) -> None:
1699
1699
  pass # whatever, it's deprecated
1700
1700
 
1701
- @not_supported_yet()
1702
1701
  def shared_with(*args: str, **kwargs: Any) -> None:
1702
+ # Count total workspaces collected
1703
+ total_workspaces = 0
1704
+
1703
1705
  for entries in args:
1704
- # In case they specify multiple workspaces
1705
- doc.shared_with += [workspace.strip() for workspace in entries.splitlines()]
1706
+ # In case they specify multiple workspaces, handle both line-separated and comma-separated values
1707
+ lines = entries.splitlines()
1708
+ for line in lines:
1709
+ # Split by comma and strip whitespace from each workspace name
1710
+ workspaces = [workspace.strip().rstrip(",") for workspace in line.split(",") if workspace.strip()]
1711
+ doc.shared_with += workspaces
1712
+ total_workspaces += len(workspaces)
1713
+
1714
+ # Add warning once if any workspaces were found
1715
+ if total_workspaces > 0:
1716
+ warnings.append(
1717
+ DatafileParseWarning(
1718
+ message=(
1719
+ f"{kwargs['cmd'].upper()} is not fully implemented in Forward and will be ignored while this warning is present."
1720
+ )
1721
+ )
1722
+ )
1723
+
1724
+ # Validate that at least one workspace was provided
1725
+ if total_workspaces == 0:
1726
+ raise DatafileSyntaxError(
1727
+ "SHARED_WITH requires at least one workspace name",
1728
+ lineno=kwargs["lineno"],
1729
+ pos=1,
1730
+ )
1706
1731
 
1707
1732
  def __init_engine(v: str):
1708
1733
  if not parser_state.current_node:
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.dev244'
8
- __revision__ = '434c7ff'
7
+ __version__ = '0.0.1.dev245'
8
+ __revision__ = 'f0c439a'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev244
3
+ Version: 0.0.1.dev245
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -12,12 +12,12 @@ tinybird/syncasync.py,sha256=IPnOx6lMbf9SNddN1eBtssg8vCLHMt76SuZ6YNYm-Yk,27761
12
12
  tinybird/tornado_template.py,sha256=jjNVDMnkYFWXflmT8KU_Ssbo5vR8KQq3EJMk5vYgXRw,41959
13
13
  tinybird/ch_utils/constants.py,sha256=yEKR11gLCL-irEXXF9QwShaR0JLXiBTlaxfolcCIoqY,4097
14
14
  tinybird/ch_utils/engine.py,sha256=X4tE9OrfaUy6kO9cqVEzyI9cDcmOF3IAssRRzsTsfEQ,40781
15
- tinybird/datafile/common.py,sha256=q-enN3RGK6W-8Yqab7Al_BSjRwF8dXiEyk_zHykBM6s,97391
15
+ tinybird/datafile/common.py,sha256=J0Oydru3Nh3oCx66EEEHGxm2-r5_NfxvZxiFhBjgAH0,98428
16
16
  tinybird/datafile/exceptions.py,sha256=8rw2umdZjtby85QbuRKFO5ETz_eRHwUY5l7eHsy1wnI,556
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=Ah7n0_bJGUxS5K4MX9UxDaK7Bk7ObK2JPR1kL-xkos0,247
20
+ tinybird/tb/__cli__.py,sha256=lO7Woz0azArhNCFKAWijw8uJo4jrQDbI-rUCxK_YeO0,247
21
21
  tinybird/tb/check_pypi.py,sha256=Gp0HkHHDFMSDL6nxKlOY51z7z1Uv-2LRexNTZSHHGmM,552
22
22
  tinybird/tb/cli.py,sha256=FdDFEIayjmsZEVsVSSvRiVYn_FHOVg_zWQzchnzfWho,1008
23
23
  tinybird/tb/client.py,sha256=pJbdkWMXGAqKseNAvdsRRnl_c7I-DCMB0dWCQnG82nU,54146
@@ -97,8 +97,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
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=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
100
- tinybird-0.0.1.dev244.dist-info/METADATA,sha256=6it3lKYPvmXa3ivNyaVevIU9DDt3vmAaDcHHwHNv6FI,1733
101
- tinybird-0.0.1.dev244.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
102
- tinybird-0.0.1.dev244.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
103
- tinybird-0.0.1.dev244.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
104
- tinybird-0.0.1.dev244.dist-info/RECORD,,
100
+ tinybird-0.0.1.dev245.dist-info/METADATA,sha256=1Qqly3uB1KyENHgniVShFyw6tTeJRz7UZWntvH9AR24,1733
101
+ tinybird-0.0.1.dev245.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
102
+ tinybird-0.0.1.dev245.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
103
+ tinybird-0.0.1.dev245.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
104
+ tinybird-0.0.1.dev245.dist-info/RECORD,,