tinybird 0.0.1.dev251__py3-none-any.whl → 0.0.1.dev252__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.dev251'
8
- __revision__ = 'c11760c'
7
+ __version__ = '0.0.1.dev252'
8
+ __revision__ = 'd70cad6'
@@ -22,16 +22,17 @@ def append(ctx: RunContext[TinybirdAgentContext], datasource_name: str, fixture_
22
22
  skip_confirmation=ctx.deps.dangerously_skip_permissions,
23
23
  )
24
24
 
25
- ctx.deps.thinking_animation.start()
26
-
27
25
  if confirmation == "review":
28
26
  click.echo()
29
27
  feedback = show_input(ctx.deps.workspace_name)
30
28
  ctx.deps.thinking_animation.start()
31
- return f"User did not confirm the proposed plan and gave the following feedback: {feedback}"
29
+ return (
30
+ f"User did not confirm appending {fixture_pathname} fixture and gave the following feedback: {feedback}"
31
+ )
32
32
 
33
33
  if confirmation == "cancel":
34
- return "User rejected appending existing fixture. Skipping..."
34
+ ctx.deps.thinking_animation.start()
35
+ return f"User rejected appending {fixture_pathname} fixture. Skip this step"
35
36
 
36
37
  ctx.deps.thinking_animation.stop()
37
38
  click.echo(FeedbackManager.highlight(message=f"\n» Appending {fixture_pathname} to {datasource_name}..."))
@@ -13,7 +13,6 @@ from prompt_toolkit.layout import Layout
13
13
  from prompt_toolkit.layout.containers import ConditionalContainer, HSplit, Window
14
14
  from prompt_toolkit.layout.controls import FormattedTextControl
15
15
  from prompt_toolkit.layout.dimension import LayoutDimension as D
16
- from prompt_toolkit.mouse_events import MouseEventType
17
16
  from prompt_toolkit.patch_stdout import patch_stdout as pt_patch_stdout
18
17
  from prompt_toolkit.shortcuts import PromptSession
19
18
  from prompt_toolkit.styles import Style as PromptStyle
@@ -63,16 +62,6 @@ default_style = PromptStyle.from_dict(
63
62
  )
64
63
 
65
64
 
66
- def if_mousedown(handler):
67
- def handle_if_mouse_down(mouse_event):
68
- if mouse_event.event_type == MouseEventType.MOUSE_DOWN:
69
- return handler(mouse_event)
70
- else:
71
- return NotImplemented
72
-
73
- return handle_if_mouse_down
74
-
75
-
76
65
  class Separator:
77
66
  line = "-" * 15
78
67
 
@@ -133,9 +122,7 @@ class InquirerControl(FormattedTextControl):
133
122
  def append(index, choice):
134
123
  selected = index == self.selected_option_index
135
124
 
136
- @if_mousedown
137
- def select_item(mouse_event):
138
- # bind option with this index to mouse event
125
+ def select_item():
139
126
  self.selected_option_index = index
140
127
  self.answered = True
141
128
  get_app().exit(result=self.get_selection()[0])
@@ -248,7 +235,7 @@ def prompt_question(message, **kwargs):
248
235
  ic.answered = True
249
236
  event.app.exit(result=ic.get_selection()[1])
250
237
 
251
- return Application(layout=Layout(layout), key_bindings=kb, mouse_support=True, style=style)
238
+ return Application(layout=Layout(layout), key_bindings=kb, mouse_support=False, style=style)
252
239
 
253
240
 
254
241
  def prompt(questions, answers=None, **kwargs):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev251
3
+ Version: 0.0.1.dev252
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -17,7 +17,7 @@ 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=ldJiOCMSMd-ptHqIVlOItLL_kL3ehE--VamyNzl-O8E,247
20
+ tinybird/tb/__cli__.py,sha256=tux3rAKuHbXOtIaG9CZQxDsezngoOjC_cZmI7OXF1UY,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
@@ -74,9 +74,9 @@ tinybird/tb/modules/agent/banner.py,sha256=KX_e467uiy1gWOZ4ofTZt0GCFGQqHQ_8Ob27X
74
74
  tinybird/tb/modules/agent/memory.py,sha256=H6SJK--2L5C87B7AJd_jMqsq3sCvFvZwZXmajuT0GBE,1171
75
75
  tinybird/tb/modules/agent/models.py,sha256=LW1D27gjcd_jwFmghEzteCgToDfodX2B6B5S8BYbysw,735
76
76
  tinybird/tb/modules/agent/prompts.py,sha256=wbe6vUnm-fskceWgP13R5VW1v_YF7_wLDe-wBN6rlWw,6998
77
- tinybird/tb/modules/agent/utils.py,sha256=dWdjtptsBRKUAtg6wz2SNf5fmmGKMG-WKNk9miNWZ-s,26520
77
+ tinybird/tb/modules/agent/utils.py,sha256=fOliFWZ1A6_SBjwreJDid53cMFjH1Ah4pe5DumPSolE,26111
78
78
  tinybird/tb/modules/agent/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
79
- tinybird/tb/modules/agent/tools/append.py,sha256=Db576-ziulykJyaWl03zUp-KI-NVURh0WcFIAPNbNPw,1974
79
+ tinybird/tb/modules/agent/tools/append.py,sha256=cBdKBhUW0kooIbywtZNd_bhxbbMyf5NUKHwanAl5BmA,2042
80
80
  tinybird/tb/modules/agent/tools/build.py,sha256=LhzJMx6tbxC7gogIrxhfKJc-SDgoSR-FC6IunfaCdn8,758
81
81
  tinybird/tb/modules/agent/tools/create_datafile.py,sha256=wcPcChACTIFKw0lKFTlhm0sWJKhQkMLPLnGNpKyeETA,2962
82
82
  tinybird/tb/modules/agent/tools/deploy.py,sha256=WrsSlaufKGOBx0S13uoMQQH2DnKue5LQ231Rx4RXh2I,1443
@@ -108,8 +108,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
108
108
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
109
109
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
110
110
  tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
111
- tinybird-0.0.1.dev251.dist-info/METADATA,sha256=7hx0f5-Lb5i3niyVL2AsZ9LcJzp3cTAoX0QHuATZv5A,1733
112
- tinybird-0.0.1.dev251.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
113
- tinybird-0.0.1.dev251.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
114
- tinybird-0.0.1.dev251.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
115
- tinybird-0.0.1.dev251.dist-info/RECORD,,
111
+ tinybird-0.0.1.dev252.dist-info/METADATA,sha256=5RXjrDqF3SKasGIPyA3n9a5ZbKyFwrNxwxP-SwnVprk,1733
112
+ tinybird-0.0.1.dev252.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
113
+ tinybird-0.0.1.dev252.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
114
+ tinybird-0.0.1.dev252.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
115
+ tinybird-0.0.1.dev252.dist-info/RECORD,,