tinybird 0.0.1.dev238__py3-none-any.whl → 0.0.1.dev239__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 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.dev238'
8
- __revision__ = 'e7b8c5b'
7
+ __version__ = '0.0.1.dev239'
8
+ __revision__ = '960f37b'
tinybird/tb/client.py CHANGED
@@ -1396,5 +1396,5 @@ class TinyB:
1396
1396
  self._req(f"/v0/tags/{name}", method="DELETE")
1397
1397
 
1398
1398
  def explore_data(self, prompt: str) -> str:
1399
- params = urlencode({"prompt": prompt, "host": self.host})
1399
+ params = urlencode({"prompt": prompt, "host": self.host, "origin": "cli"})
1400
1400
  return self._req(f"/v1/agents/explore?{params}")
@@ -1,4 +1,5 @@
1
1
  import subprocess
2
+ from pathlib import Path
2
3
 
3
4
  import click
4
5
  import requests
@@ -148,6 +149,11 @@ def remove() -> None:
148
149
  )
149
150
  def start(use_aws_creds: bool, volumes_path: str) -> None:
150
151
  """Start Tinybird Local"""
152
+ if volumes_path is not None:
153
+ absolute_path = Path(volumes_path).absolute()
154
+ absolute_path.mkdir(parents=True, exist_ok=True)
155
+ volumes_path = str(absolute_path)
156
+
151
157
  click.echo(FeedbackManager.highlight(message="» Starting Tinybird Local..."))
152
158
  docker_client = get_docker_client()
153
159
  start_tinybird_local(docker_client, use_aws_creds, volumes_path)
@@ -168,6 +174,11 @@ def start(use_aws_creds: bool, volumes_path: str) -> None:
168
174
  )
169
175
  def restart(use_aws_creds: bool, volumes_path: str) -> None:
170
176
  """Restart Tinybird Local"""
177
+ if volumes_path is not None:
178
+ absolute_path = Path(volumes_path).absolute()
179
+ absolute_path.mkdir(parents=True, exist_ok=True)
180
+ volumes_path = str(absolute_path)
181
+
171
182
  click.echo(FeedbackManager.highlight(message="» Restarting Tinybird Local..."))
172
183
  docker_client = get_docker_client()
173
184
  remove_tinybird_local(docker_client, volumes_path is not None)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev238
3
+ Version: 0.0.1.dev239
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -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=5Idbq2jxT7vdWTl7jfPYf2dt09IXEqHf7N0np87IKH4,247
20
+ tinybird/tb/__cli__.py,sha256=8mfKuN5jmJ9hrzhAZqnZA9ASZ0QXkYRjiGxO_zKzPhM,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=gdfZjLkobXZgqhnXAESj0AEGTSSMTnYK3fmCMJ4gjI4,54129
23
+ tinybird/tb/client.py,sha256=pJbdkWMXGAqKseNAvdsRRnl_c7I-DCMB0dWCQnG82nU,54146
24
24
  tinybird/tb/config.py,sha256=mhMTGnMB5KcxGoh3dewIr2Jjsa6pHE183gCPAQWyp6o,3973
25
25
  tinybird/tb/modules/agent.py,sha256=RE_QlGSq6MByEaOBUbr1dSr3X2bi09-QvzoxpxQtyPs,3900
26
26
  tinybird/tb/modules/build.py,sha256=MxGQY-KII4lYut-yOWGBIHFpg-m_cfHgpE7lwOzZCeQ,19871
@@ -43,7 +43,7 @@ tinybird/tb/modules/infra.py,sha256=JE9oLIyF4bi_JBoe-BgZ5HhKp_lQgSihuSV1KIS02Qs,
43
43
  tinybird/tb/modules/job.py,sha256=wBsnu8UPTOha2rkLvucgmw4xYv73ubmui3eeSIF68ZM,3107
44
44
  tinybird/tb/modules/llm.py,sha256=QbHRcMLgFmLKEh4zVb2ctR_5tIGUGdFJrAiRCDtMxDw,1572
45
45
  tinybird/tb/modules/llm_utils.py,sha256=nS9r4FAElJw8yXtmdYrx-rtI2zXR8qXfi1QqUDCfxvg,3469
46
- tinybird/tb/modules/local.py,sha256=HTLUFb8xqR8_PEFkvZV1UB-uk2L66_DAh6eflce6_FE,6446
46
+ tinybird/tb/modules/local.py,sha256=tpiw_F_qOIp42h3kTBwTm5GQDyuVLF0QNF1jmB0zR94,6845
47
47
  tinybird/tb/modules/local_common.py,sha256=_WODjW3oPshgsZ1jDFFx2nr0zrLi3Gxz5dlahWPobM8,17464
48
48
  tinybird/tb/modules/login.py,sha256=glqj5RWH26AseEoBl8XfrSDEjQTdko17i_pVWOIMoGc,12497
49
49
  tinybird/tb/modules/logout.py,sha256=sniI4JNxpTrVeRCp0oGJuQ3yRerG4hH5uz6oBmjv724,1009
@@ -83,8 +83,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
83
83
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
84
84
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
85
85
  tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
86
- tinybird-0.0.1.dev238.dist-info/METADATA,sha256=eA-peAy4Kbl3DbnrNQMTDLHb-bSi5duvZKMTiRwSPkc,1682
87
- tinybird-0.0.1.dev238.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
88
- tinybird-0.0.1.dev238.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
89
- tinybird-0.0.1.dev238.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
90
- tinybird-0.0.1.dev238.dist-info/RECORD,,
86
+ tinybird-0.0.1.dev239.dist-info/METADATA,sha256=NtL4GLVWnmL5-eQn2I6DCzgQqGODeBofbbGVyPXOt90,1682
87
+ tinybird-0.0.1.dev239.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
88
+ tinybird-0.0.1.dev239.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
89
+ tinybird-0.0.1.dev239.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
90
+ tinybird-0.0.1.dev239.dist-info/RECORD,,