tinybird 0.0.1.dev267__py3-none-any.whl → 0.0.1.dev269__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 +2 -2
- tinybird/tb/modules/agent/agent.py +46 -32
- tinybird/tb/modules/agent/command_agent.py +8 -1
- tinybird/tb/modules/agent/compactor.py +311 -0
- tinybird/tb/modules/agent/explore_agent.py +86 -0
- tinybird/tb/modules/agent/memory.py +11 -1
- tinybird/tb/modules/agent/prompts.py +51 -36
- tinybird/tb/modules/agent/testing_agent.py +8 -1
- tinybird/tb/modules/agent/tools/append.py +16 -6
- tinybird/tb/modules/agent/tools/create_datafile.py +17 -4
- tinybird/tb/modules/agent/tools/execute_query.py +138 -11
- tinybird/tb/modules/agent/tools/mock.py +30 -22
- tinybird/tb/modules/agent/tools/request_endpoint.py +16 -3
- tinybird/tb/modules/agent/tools/run_command.py +3 -1
- tinybird/tb/modules/agent/utils.py +42 -0
- tinybird/tb/modules/cli.py +3 -5
- {tinybird-0.0.1.dev267.dist-info → tinybird-0.0.1.dev269.dist-info}/METADATA +2 -1
- {tinybird-0.0.1.dev267.dist-info → tinybird-0.0.1.dev269.dist-info}/RECORD +21 -21
- tinybird/tb/modules/agent/tools/explore.py +0 -15
- tinybird/tb/modules/agent/tools/preview_datafile.py +0 -24
- {tinybird-0.0.1.dev267.dist-info → tinybird-0.0.1.dev269.dist-info}/WHEEL +0 -0
- {tinybird-0.0.1.dev267.dist-info → tinybird-0.0.1.dev269.dist-info}/entry_points.txt +0 -0
- {tinybird-0.0.1.dev267.dist-info → tinybird-0.0.1.dev269.dist-info}/top_level.txt +0 -0
tinybird/tb/modules/cli.py
CHANGED
|
@@ -81,14 +81,12 @@ VERSION = f"{__cli__.__version__} (rev {__cli__.__revision__})"
|
|
|
81
81
|
"--dangerously-skip-permissions",
|
|
82
82
|
is_flag=True,
|
|
83
83
|
default=False,
|
|
84
|
-
help="Skip permissions check in
|
|
85
|
-
hidden=True,
|
|
84
|
+
help="Skip permissions check in Tinybird Code.",
|
|
86
85
|
)
|
|
87
86
|
@click.option(
|
|
88
87
|
"--prompt",
|
|
89
88
|
"-p",
|
|
90
|
-
help="Run
|
|
91
|
-
hidden=True,
|
|
89
|
+
help="Run Tinybird Code in prompt mode with the provided input and exit.",
|
|
92
90
|
)
|
|
93
91
|
@click.version_option(version=VERSION)
|
|
94
92
|
@click.pass_context
|
|
@@ -108,7 +106,7 @@ def cli(
|
|
|
108
106
|
prompt: Optional[str] = None,
|
|
109
107
|
) -> None:
|
|
110
108
|
"""
|
|
111
|
-
Use
|
|
109
|
+
Use Tinybird Code to interact with your project.
|
|
112
110
|
"""
|
|
113
111
|
|
|
114
112
|
# We need to unpatch for our tests not to break
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: tinybird
|
|
3
|
-
Version: 0.0.1.
|
|
3
|
+
Version: 0.0.1.dev269
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/forward/commands
|
|
6
6
|
Author: Tinybird
|
|
@@ -19,6 +19,7 @@ Requires-Dist: croniter==1.3.15
|
|
|
19
19
|
Requires-Dist: docker==7.1.0
|
|
20
20
|
Requires-Dist: GitPython~=3.1.32
|
|
21
21
|
Requires-Dist: humanfriendly~=8.2
|
|
22
|
+
Requires-Dist: plotext==5.3.2
|
|
22
23
|
Requires-Dist: prompt_toolkit==3.0.48
|
|
23
24
|
Requires-Dist: pydantic~=2.11.7
|
|
24
25
|
Requires-Dist: pydantic-ai-slim[anthropic]~=0.4.2
|
|
@@ -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=
|
|
20
|
+
tinybird/tb/__cli__.py,sha256=sJgCfKxRt7Z69LU_KSSYXcTj_4paofkz3tNoU5GP1Bw,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=OVNlCXI16kpD-Ph8BDhkyKbR68TdZcR_j4ng91Iiybg,54706
|
|
@@ -25,7 +25,7 @@ tinybird/tb/config.py,sha256=mhMTGnMB5KcxGoh3dewIr2Jjsa6pHE183gCPAQWyp6o,3973
|
|
|
25
25
|
tinybird/tb/modules/build.py,sha256=efD-vamK1NPaDo9R86Hn8be2DYoW0Hh5bZiH7knK5dk,7790
|
|
26
26
|
tinybird/tb/modules/build_common.py,sha256=dthlaDn_CuwZnedQcUi7iIdDoHWfSbbbGQwiDgNcmC0,13062
|
|
27
27
|
tinybird/tb/modules/cicd.py,sha256=0KLKccha9IP749QvlXBmzdWv1On3mFwMY4DUcJlBxiE,7326
|
|
28
|
-
tinybird/tb/modules/cli.py,sha256=
|
|
28
|
+
tinybird/tb/modules/cli.py,sha256=OC4jqGciUAgPQLgmo4ztjiQTOiGzqX3yILfxjbZ-CIs,16686
|
|
29
29
|
tinybird/tb/modules/common.py,sha256=tj6DR2yOqMMQ0PILwFGXmMogxdrbQCgj36HdSM611rs,82657
|
|
30
30
|
tinybird/tb/modules/config.py,sha256=gK7rgaWTDd4ZKCrNEg_Uemr26EQjqWt6TjyQKujxOws,11462
|
|
31
31
|
tinybird/tb/modules/connection.py,sha256=-MY56NUAai6EMC4-wpi7bT0_nz_SA8QzTmHkV7HB1IQ,17810
|
|
@@ -69,32 +69,32 @@ tinybird/tb/modules/watch.py,sha256=No0bK1M1_3CYuMaIgylxf7vYFJ72lTJe3brz6xQ-mJo,
|
|
|
69
69
|
tinybird/tb/modules/workspace.py,sha256=Q_8HcxMsNg8QG9aBlwcWS2umrDP5IkTIHqqz3sfmGuc,11341
|
|
70
70
|
tinybird/tb/modules/workspace_members.py,sha256=5JdkJgfuEwbq-t6vxkBhYwgsiTDxF790wsa6Xfif9nk,8608
|
|
71
71
|
tinybird/tb/modules/agent/__init__.py,sha256=i3oe3vDIWWPaicdCM0zs7D7BJ1W0k7th93ooskHAV00,54
|
|
72
|
-
tinybird/tb/modules/agent/agent.py,sha256=
|
|
72
|
+
tinybird/tb/modules/agent/agent.py,sha256=hxxO8-JN655W252lgUaY4nJ8yv_SOAoAFRmD8F4fV24,29291
|
|
73
73
|
tinybird/tb/modules/agent/animations.py,sha256=4WOC5_2BracttmMCrV0H91tXfWcUzQHBUaIJc5FA7tE,3490
|
|
74
74
|
tinybird/tb/modules/agent/banner.py,sha256=l6cO5Fi7lbVKp-GsBP8jf3IkjOWxg2jpAt9NBCy0WR8,4085
|
|
75
|
-
tinybird/tb/modules/agent/command_agent.py,sha256=
|
|
76
|
-
tinybird/tb/modules/agent/
|
|
75
|
+
tinybird/tb/modules/agent/command_agent.py,sha256=NTzgb9qnuG-gDpk87VijKs1UUMukJPaJI5UiZtRWUoQ,2864
|
|
76
|
+
tinybird/tb/modules/agent/compactor.py,sha256=BK5AxZFhrp3xWnsRnYaleiYoIWtVNc-_m650Hsopt8g,13841
|
|
77
|
+
tinybird/tb/modules/agent/explore_agent.py,sha256=HkzKmggfSMz7S3RSeKnZXufq-z_U0tTQJpF7JfNIaGQ,3504
|
|
78
|
+
tinybird/tb/modules/agent/memory.py,sha256=vBewB_64L_wHoT4tLT6UX2uxcHwSY880QZ26F9rPqXs,3793
|
|
77
79
|
tinybird/tb/modules/agent/models.py,sha256=IAxqlnHy8c2OeSnDrrSp2Mg38W9_r0GsDM87Wv-YNfM,925
|
|
78
|
-
tinybird/tb/modules/agent/prompts.py,sha256=
|
|
79
|
-
tinybird/tb/modules/agent/testing_agent.py,sha256=
|
|
80
|
-
tinybird/tb/modules/agent/utils.py,sha256=
|
|
80
|
+
tinybird/tb/modules/agent/prompts.py,sha256=oSc_lbwyHh7xJDTBaaykf9YdXpXCidyN3dmDGUJYP9M,31834
|
|
81
|
+
tinybird/tb/modules/agent/testing_agent.py,sha256=mjR9OJ_KzGnjCnjRxp5-sf01LSDkO4-QqknTbkZ-R-Q,2752
|
|
82
|
+
tinybird/tb/modules/agent/utils.py,sha256=IEAZ2HJHAw2Yzna_IZcJp5ljCqwug0zZHoc0vi8vJzE,31001
|
|
81
83
|
tinybird/tb/modules/agent/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
82
84
|
tinybird/tb/modules/agent/tools/analyze.py,sha256=CR5LXg4fou-zYEksqnjpJ0icvxJVoKnTctoI1NRvqCM,3873
|
|
83
|
-
tinybird/tb/modules/agent/tools/append.py,sha256=
|
|
85
|
+
tinybird/tb/modules/agent/tools/append.py,sha256=xZVNkES0-qGjUrOfMLTn3kZ8JBm2OSMfLk_IZwUTRUo,6558
|
|
84
86
|
tinybird/tb/modules/agent/tools/build.py,sha256=Hm-xDAP9ckMiKquT-DmDg5H0yxZefLOaWKANyoVSaEQ,846
|
|
85
|
-
tinybird/tb/modules/agent/tools/create_datafile.py,sha256=
|
|
87
|
+
tinybird/tb/modules/agent/tools/create_datafile.py,sha256=ne5KezxhvreXuXTB569omjnE5soQyZaFlv9L17DWqXU,7725
|
|
86
88
|
tinybird/tb/modules/agent/tools/deploy.py,sha256=2hKj6LMYiDea6ventsBjE6ArECGIryTdo3X-LYo5oZI,1248
|
|
87
89
|
tinybird/tb/modules/agent/tools/deploy_check.py,sha256=2Wr9hQfKPlhqhumOv5TNl_xFctvdq_DHZ2dI2h_LggY,1048
|
|
88
90
|
tinybird/tb/modules/agent/tools/diff_resource.py,sha256=_9xHcDzCTKk_E1wKQbuktVqV6U9sA0kqYaBxWvtliX0,2613
|
|
89
|
-
tinybird/tb/modules/agent/tools/execute_query.py,sha256=
|
|
90
|
-
tinybird/tb/modules/agent/tools/explore.py,sha256=ihALc_kBcsjrKT3hZyicqyIowB0g_K3AtNNi-5uz9-8,412
|
|
91
|
+
tinybird/tb/modules/agent/tools/execute_query.py,sha256=PUMSfnpTHxdbrlry4qH2c2fOdkRHhLmpZInslSOKFNU,8169
|
|
91
92
|
tinybird/tb/modules/agent/tools/get_endpoint_stats.py,sha256=LiEK6ToyPDW2aI8ijclzuwdYAcFmwH-TyjqdFEzQWAc,1689
|
|
92
93
|
tinybird/tb/modules/agent/tools/get_openapi_definition.py,sha256=mjIVVXtgvTs5LzOR8Bp4jB1XhLVMysHrHXawkErFdt8,2282
|
|
93
|
-
tinybird/tb/modules/agent/tools/mock.py,sha256=
|
|
94
|
+
tinybird/tb/modules/agent/tools/mock.py,sha256=RvdsKIr0vKEs91GuK5vKg0fDj8SI-cdcX4XqgvnSwuQ,4508
|
|
94
95
|
tinybird/tb/modules/agent/tools/plan.py,sha256=2KHLNkr2f1RfkbAR4mCVsv94LGosXd8-ky7v6BB1OtQ,985
|
|
95
|
-
tinybird/tb/modules/agent/tools/
|
|
96
|
-
tinybird/tb/modules/agent/tools/
|
|
97
|
-
tinybird/tb/modules/agent/tools/run_command.py,sha256=321w5dYOnapMf-TFIkgizErllwB5Poc0RYOjBAQeMPc,1576
|
|
96
|
+
tinybird/tb/modules/agent/tools/request_endpoint.py,sha256=fK8qeCVWQvSbqVyuE71Yvm5-EFTvsDYADpKHmwblbUI,3356
|
|
97
|
+
tinybird/tb/modules/agent/tools/run_command.py,sha256=XjPDTTzkba9GOQBDiSTwddluyXkguVhxvXnRaC8m-Zc,1657
|
|
98
98
|
tinybird/tb/modules/agent/tools/test.py,sha256=CbGak_coopCTtqHoPWy-BwgLMIyEyeO34NTNkv18au4,6041
|
|
99
99
|
tinybird/tb/modules/datafile/build.py,sha256=NFKBrusFLU0WJNCXePAFWiEDuTaXpwc0lHlOQWEJ43s,51117
|
|
100
100
|
tinybird/tb/modules/datafile/build_common.py,sha256=2yNdxe49IMA9wNvl25NemY2Iaz8L66snjOdT64dm1is,4511
|
|
@@ -116,8 +116,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
|
|
|
116
116
|
tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
|
|
117
117
|
tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
|
|
118
118
|
tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
|
|
119
|
-
tinybird-0.0.1.
|
|
120
|
-
tinybird-0.0.1.
|
|
121
|
-
tinybird-0.0.1.
|
|
122
|
-
tinybird-0.0.1.
|
|
123
|
-
tinybird-0.0.1.
|
|
119
|
+
tinybird-0.0.1.dev269.dist-info/METADATA,sha256=3C8611pFJugHuiyfw6OpU3rEqdBicl8IgWsH2EjVr5o,1763
|
|
120
|
+
tinybird-0.0.1.dev269.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
121
|
+
tinybird-0.0.1.dev269.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
|
|
122
|
+
tinybird-0.0.1.dev269.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
|
|
123
|
+
tinybird-0.0.1.dev269.dist-info/RECORD,,
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
from pydantic_ai import RunContext
|
|
2
|
-
|
|
3
|
-
from tinybird.tb.modules.agent.utils import TinybirdAgentContext
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
def explore_data(ctx: RunContext[TinybirdAgentContext], prompt: str):
|
|
7
|
-
"""Explore production data in the current workspace
|
|
8
|
-
|
|
9
|
-
Args:
|
|
10
|
-
prompt (str): The prompt to explore data with. Required.
|
|
11
|
-
|
|
12
|
-
Returns:
|
|
13
|
-
str: The result of the exploration.
|
|
14
|
-
"""
|
|
15
|
-
return ctx.deps.explore_data(prompt)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
from tinybird.tb.modules.agent.utils import Datafile
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
def preview_datafile(name: str, type: str, description: str, content: str, pathname: str) -> Datafile:
|
|
5
|
-
"""Preview the content of a datafile before creating it
|
|
6
|
-
|
|
7
|
-
Args:
|
|
8
|
-
name (str): The name of the datafile. Required.
|
|
9
|
-
type (str): The type of the datafile. Options: datasource, endpoint, materialized, sink, copy, connection. Required.
|
|
10
|
-
description (str): The description of the datafile. Required.
|
|
11
|
-
content (str): The content of the datafile. Required.
|
|
12
|
-
pathname (str): The pathname of the datafile where the file will be created. Required.
|
|
13
|
-
|
|
14
|
-
Returns:
|
|
15
|
-
Datafile: The datafile preview.
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
return Datafile(
|
|
19
|
-
type=type.lower(),
|
|
20
|
-
name=name,
|
|
21
|
-
content=content,
|
|
22
|
-
description=description,
|
|
23
|
-
pathname=pathname,
|
|
24
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|