tinybird 0.0.1.dev98__py3-none-any.whl → 0.0.1.dev99__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/client.py CHANGED
@@ -852,9 +852,9 @@ class TinyB:
852
852
  url = f"/v0/environments/{branch_id}/regression"
853
853
  return await self._req(url, method="POST", data=data, headers={"Content-Type": "application/json"})
854
854
 
855
- async def delete_workspace(self, id: str, hard_delete_confirmation: Optional[str]):
855
+ async def delete_workspace(self, id: str, hard_delete_confirmation: Optional[str], version: str = "v0"):
856
856
  data = {"confirmation": hard_delete_confirmation}
857
- return await self._req(f"/v0/workspaces/{id}", data, method="DELETE")
857
+ return await self._req(f"/{version}/workspaces/{id}", data, method="DELETE")
858
858
 
859
859
  async def delete_branch(self, id: str):
860
860
  return await self._req(f"/v0/environments/{id}", method="DELETE")
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.dev98'
8
- __revision__ = 'f7b04b3'
7
+ __version__ = '0.0.1.dev99'
8
+ __revision__ = '1e30c94'
@@ -147,6 +147,7 @@ async def login(host: str, auth_host: str, workspace: str):
147
147
  response = requests.get( # noqa: ASYNC210
148
148
  f"{auth_host}/api/cli-login?{urlencode(params)}",
149
149
  )
150
+
150
151
  data = response.json()
151
152
  cli_config = CLIConfig.get_project_config()
152
153
  cli_config.set_token(data.get("workspace_token", ""))
@@ -203,7 +203,7 @@ async def delete_workspace(
203
203
  client.token = user_token
204
204
 
205
205
  try:
206
- await client.delete_workspace(workspace_to_delete["id"], confirm_hard_delete)
206
+ await client.delete_workspace(workspace_to_delete["id"], confirm_hard_delete, version="v1")
207
207
  click.echo(FeedbackManager.success_workspace_deleted(workspace_name=workspace_to_delete["name"]))
208
208
  except Exception as e:
209
209
  raise CLIWorkspaceException(FeedbackManager.error_exception(error=str(e)))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev98
3
+ Version: 0.0.1.dev99
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -1,5 +1,5 @@
1
1
  tinybird/__cli__.py,sha256=esPl5QDTzuQgHe5FuxWLm-fURFigGGwjnYLh9GuWUw4,232
2
- tinybird/client.py,sha256=GeWkyx6kLSVIBxmSg4k4pCzz_jYZMW0SdbSvhjvHvs0,55059
2
+ tinybird/client.py,sha256=aDDifEWkVxJcm4WYaw6uUgXhav-e7JUW1N-mgtEjV4A,55087
3
3
  tinybird/config.py,sha256=5UP_UZ2Qtlm5aOH5W7SbtN8r7X-8u3-r853joKqU5zs,6072
4
4
  tinybird/connectors.py,sha256=7Gjms7b5MAaBFGi3xytsJurCylprONpFcYrzp4Fw2Rc,15241
5
5
  tinybird/context.py,sha256=FfqYfrGX_I7PKGTQo93utaKPDNVYWelg4Hsp3evX5wM,1291
@@ -15,7 +15,7 @@ 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=KrzvGHoHoPrkwZ1uV5MMRrnjT-DSbzgO2X8_c_LNVJI,251
18
+ tinybird/tb/__cli__.py,sha256=x_8CEyPeFA4ID-fNJaTMBbVu0OhEt_vS8s7qeQ6Q7rA,251
19
19
  tinybird/tb/cli.py,sha256=H_HaZhkimKgkryYXpBjHfY9Qtg-ZORiONU3psDNpzDk,1135
20
20
  tinybird/tb/modules/auth.py,sha256=L1IatO2arRSzys3t8px8xVt8uPWUL5EVD0sFzAV_uVU,9022
21
21
  tinybird/tb/modules/build.py,sha256=h5drdmDFX8NHts9dA2Zepao7KSgMAl3DZGyFufVZP78,11085
@@ -38,7 +38,7 @@ tinybird/tb/modules/llm.py,sha256=AC0VSphTOM2t-v1_3NLvNN_FIbgMo4dTyMqIv5nniPo,83
38
38
  tinybird/tb/modules/llm_utils.py,sha256=nS9r4FAElJw8yXtmdYrx-rtI2zXR8qXfi1QqUDCfxvg,3469
39
39
  tinybird/tb/modules/local.py,sha256=revEEYP-Oq5nqURgmZmc0kt1_tEjM31dyUtcH5YbOuc,5842
40
40
  tinybird/tb/modules/local_common.py,sha256=RN5OEncHdq7ua4AZ--WgKtaFuEsLvIhq_ROHJadRXXA,3188
41
- tinybird/tb/modules/login.py,sha256=CF6OjTuXvnD5WMpouEvSyEaMf0XTe0VE0s_y3QtyImg,6252
41
+ tinybird/tb/modules/login.py,sha256=dAaBBn_ZIQRm9BFl6Uw_HgZa2qoLuAO6mBOxob_17ms,6253
42
42
  tinybird/tb/modules/logout.py,sha256=ULooy1cDBD02-r7voZmhV7udA0ML5tVuflJyShrh56Y,1022
43
43
  tinybird/tb/modules/materialization.py,sha256=r8Q9HXcYEmfrEzP4WpiasCKDJdSkTPaAKJtZMoJKhi8,5749
44
44
  tinybird/tb/modules/mock.py,sha256=9VKlp2bO2NsRgqF03SrFv_8OvAoHeRcOU89TiBRFfqY,3891
@@ -55,7 +55,7 @@ tinybird/tb/modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09
55
55
  tinybird/tb/modules/test.py,sha256=FUU-drY8mdjNoKsw16O5ZqvYvZqzycrZBEpSwbhGDUE,11456
56
56
  tinybird/tb/modules/token.py,sha256=OhqLFpCHVfYeBCxJ0n7n2qoho9E9eGcUfHgL7R1MUVQ,13485
57
57
  tinybird/tb/modules/watch.py,sha256=poNJOUNDESDNn80H2dHvE6X6pIu-t9MZFi59_TxVN2U,8822
58
- tinybird/tb/modules/workspace.py,sha256=QAUihOnzao-Nyk2QM2Rhopp4oTwNh7vlKt0a52avg_E,7777
58
+ tinybird/tb/modules/workspace.py,sha256=GUXSROaPn2LpR2ZTYLIlj-wZnAbiFkib9m3Cag-Kbeg,7791
59
59
  tinybird/tb/modules/workspace_members.py,sha256=Vb5XEaKmkfONyfg2MS5EcpwolMvv7GLwFS5m2EuobT8,8726
60
60
  tinybird/tb/modules/datafile/build.py,sha256=jhfIJ2xt0N13XsLPe3iMQIyCPApHS13_Df2LfISYtT8,50952
61
61
  tinybird/tb/modules/datafile/build_common.py,sha256=rT7VJ5mnQ68R_8US91DAtkusfvjWuG_NObOzNgtN_ko,4562
@@ -81,8 +81,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
81
81
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
82
82
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
83
83
  tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
84
- tinybird-0.0.1.dev98.dist-info/METADATA,sha256=FgjtduxdgJ497kEb9unG91uWspOt1H0qdXCnnjExEms,2585
85
- tinybird-0.0.1.dev98.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
86
- tinybird-0.0.1.dev98.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
87
- tinybird-0.0.1.dev98.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
88
- tinybird-0.0.1.dev98.dist-info/RECORD,,
84
+ tinybird-0.0.1.dev99.dist-info/METADATA,sha256=19bjkN1GWZCSNjE45Gk7lm_slBrHlbHxihZZT0PVeYQ,2585
85
+ tinybird-0.0.1.dev99.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
86
+ tinybird-0.0.1.dev99.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
87
+ tinybird-0.0.1.dev99.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
88
+ tinybird-0.0.1.dev99.dist-info/RECORD,,