tinybird 0.0.1.dev65__tar.gz → 0.0.1.dev67__tar.gz
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-0.0.1.dev67/PKG-INFO +64 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/cli.py +1 -1
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/common.py +72 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/shell.py +9 -10
- tinybird-0.0.1.dev67/tinybird.egg-info/PKG-INFO +64 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird.egg-info/requires.txt +1 -0
- tinybird-0.0.1.dev65/PKG-INFO +0 -24
- tinybird-0.0.1.dev65/tinybird.egg-info/PKG-INFO +0 -24
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/setup.cfg +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/auth.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/common.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/fmt.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/tag.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tinybird
|
|
3
|
+
Version: 0.0.1.dev67
|
|
4
|
+
Summary: Tinybird Command Line Tool
|
|
5
|
+
Home-page: https://www.tinybird.co/docs/cli/introduction.html
|
|
6
|
+
Author: Tinybird
|
|
7
|
+
Author-email: support@tinybird.co
|
|
8
|
+
Requires-Python: >=3.9, <3.13
|
|
9
|
+
Description-Content-Type: text/x-rst
|
|
10
|
+
Requires-Dist: aiofiles==24.1.0
|
|
11
|
+
Requires-Dist: anthropic==0.42.0
|
|
12
|
+
Requires-Dist: click<8.2,>=8.1.6
|
|
13
|
+
Requires-Dist: clickhouse-toolset==0.33.dev0
|
|
14
|
+
Requires-Dist: colorama==0.4.6
|
|
15
|
+
Requires-Dist: cryptography~=41.0.0
|
|
16
|
+
Requires-Dist: croniter==1.3.8
|
|
17
|
+
Requires-Dist: docker==7.1.0
|
|
18
|
+
Requires-Dist: GitPython~=3.1.32
|
|
19
|
+
Requires-Dist: humanfriendly~=8.2
|
|
20
|
+
Requires-Dist: prompt_toolkit==3.0.48
|
|
21
|
+
Requires-Dist: pydantic~=2.8.0
|
|
22
|
+
Requires-Dist: pyperclip==1.8.2
|
|
23
|
+
Requires-Dist: pyyaml<6.1,>=6.0
|
|
24
|
+
Requires-Dist: requests<3,>=2.28.1
|
|
25
|
+
Requires-Dist: shandy-sqlfmt==0.11.1
|
|
26
|
+
Requires-Dist: shandy-sqlfmt[jinjafmt]==0.11.1
|
|
27
|
+
Requires-Dist: toposort==1.10
|
|
28
|
+
Requires-Dist: tornado~=6.0.0
|
|
29
|
+
Requires-Dist: urllib3<2,>=1.26.14
|
|
30
|
+
Requires-Dist: watchdog==6.0.0
|
|
31
|
+
Requires-Dist: wheel
|
|
32
|
+
Requires-Dist: packaging<24,>=23.1
|
|
33
|
+
Requires-Dist: llm>=0.19
|
|
34
|
+
Requires-Dist: thefuzz==0.22.1
|
|
35
|
+
Provides-Extra: bigquery
|
|
36
|
+
Requires-Dist: gsutil==4.58; extra == "bigquery"
|
|
37
|
+
Requires-Dist: google-api-python-client==2.0.2; extra == "bigquery"
|
|
38
|
+
Requires-Dist: google-auth==1.27.1; extra == "bigquery"
|
|
39
|
+
Requires-Dist: google-auth-httplib2==0.1.0; extra == "bigquery"
|
|
40
|
+
Requires-Dist: google-cloud-storage==2.4.0; extra == "bigquery"
|
|
41
|
+
Requires-Dist: google-cloud-bigquery==2.11.0; extra == "bigquery"
|
|
42
|
+
Provides-Extra: snowflake
|
|
43
|
+
Requires-Dist: snowflake-connector-python~=3.12.3; extra == "snowflake"
|
|
44
|
+
Requires-Dist: gsutil==4.58; extra == "snowflake"
|
|
45
|
+
Requires-Dist: google-api-python-client==2.0.2; extra == "snowflake"
|
|
46
|
+
Requires-Dist: google-auth==1.27.1; extra == "snowflake"
|
|
47
|
+
Requires-Dist: google-auth-httplib2==0.1.0; extra == "snowflake"
|
|
48
|
+
Requires-Dist: google-cloud-storage==2.4.0; extra == "snowflake"
|
|
49
|
+
Requires-Dist: oauth2client==3.0.0; extra == "snowflake"
|
|
50
|
+
Requires-Dist: chardet<4,>=3.0.2; extra == "snowflake"
|
|
51
|
+
Requires-Dist: pyOpenSSL<20.0.0,>=16.2.0; extra == "snowflake"
|
|
52
|
+
|
|
53
|
+
Tinybird CLI
|
|
54
|
+
=============
|
|
55
|
+
|
|
56
|
+
The Tinybird command-line tool allows you to use all the Tinybird functionality directly from the command line. Additionally, it includes several functions to create and manage data projects easily.
|
|
57
|
+
|
|
58
|
+
Changelog
|
|
59
|
+
----------
|
|
60
|
+
|
|
61
|
+
0.0.1dev1
|
|
62
|
+
***********
|
|
63
|
+
|
|
64
|
+
* Initial release of the Tinybird CLI
|
|
@@ -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.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev67'
|
|
8
|
+
__revision__ = '76a69c0'
|
|
@@ -392,7 +392,7 @@ async def create_ctx_client(ctx: Context, config: Dict[str, Any], cloud: bool, b
|
|
|
392
392
|
return None
|
|
393
393
|
|
|
394
394
|
commands_always_cloud = ["pull"]
|
|
395
|
-
commands_always_build = ["build", "test"]
|
|
395
|
+
commands_always_build = ["build", "test", "dev"]
|
|
396
396
|
commands_always_local = ["create", "mock"]
|
|
397
397
|
if (
|
|
398
398
|
(cloud or command in commands_always_cloud)
|
|
@@ -33,6 +33,7 @@ from click import Context
|
|
|
33
33
|
from click._termui_impl import ProgressBar
|
|
34
34
|
from humanfriendly.tables import format_pretty_table
|
|
35
35
|
from packaging.version import Version
|
|
36
|
+
from thefuzz import process
|
|
36
37
|
|
|
37
38
|
from tinybird.client import (
|
|
38
39
|
AuthException,
|
|
@@ -277,6 +278,77 @@ variable to '1' or 'true'."""
|
|
|
277
278
|
|
|
278
279
|
sys.exit(exit_code)
|
|
279
280
|
|
|
281
|
+
def get_command(self, ctx: click.Context, cmd_name: str) -> Optional[click.Command]:
|
|
282
|
+
"""
|
|
283
|
+
Override get_command to add suggestion functionality.
|
|
284
|
+
|
|
285
|
+
Args:
|
|
286
|
+
ctx: Click context
|
|
287
|
+
cmd_name: Command name entered by user
|
|
288
|
+
|
|
289
|
+
Returns:
|
|
290
|
+
Click command if found, None otherwise
|
|
291
|
+
"""
|
|
292
|
+
# First, try to get the command normally
|
|
293
|
+
rv = click.Group.get_command(self, ctx, cmd_name)
|
|
294
|
+
if rv is not None:
|
|
295
|
+
return rv
|
|
296
|
+
|
|
297
|
+
# Get all available commands
|
|
298
|
+
commands: List[str] = self.list_commands(ctx)
|
|
299
|
+
|
|
300
|
+
# Find closest matching command using thefuzz
|
|
301
|
+
matches = process.extract(cmd_name, commands, limit=1)
|
|
302
|
+
if not matches:
|
|
303
|
+
return None
|
|
304
|
+
|
|
305
|
+
suggestion, score = matches[0]
|
|
306
|
+
|
|
307
|
+
# Only suggest if the similarity score is high enough (adjust threshold as needed)
|
|
308
|
+
if score >= 65:
|
|
309
|
+
# Initialize lists for arguments before and after command
|
|
310
|
+
args_before_cmd: List[str] = []
|
|
311
|
+
args_after_cmd: List[str] = []
|
|
312
|
+
|
|
313
|
+
# Reconstruct the full command with all arguments
|
|
314
|
+
full_command = ctx.command_path # Gets the base command (e.g., 'tb')
|
|
315
|
+
|
|
316
|
+
# Add any options/arguments that came before the command
|
|
317
|
+
if ctx.args:
|
|
318
|
+
found_cmd = False
|
|
319
|
+
for arg in ctx.args:
|
|
320
|
+
if arg == cmd_name:
|
|
321
|
+
found_cmd = True
|
|
322
|
+
elif found_cmd:
|
|
323
|
+
args_after_cmd.append(arg)
|
|
324
|
+
else:
|
|
325
|
+
args_before_cmd.append(arg)
|
|
326
|
+
|
|
327
|
+
if args_before_cmd:
|
|
328
|
+
full_command += " " + " ".join(args_before_cmd)
|
|
329
|
+
|
|
330
|
+
# Add any options from params
|
|
331
|
+
if ctx.params:
|
|
332
|
+
for param, value in ctx.params.items():
|
|
333
|
+
if value is True:
|
|
334
|
+
full_command += f" --{param}"
|
|
335
|
+
elif value is not False and value is not None:
|
|
336
|
+
full_command += f" --{param} {value}"
|
|
337
|
+
|
|
338
|
+
# Add the suggested command
|
|
339
|
+
full_command += f" {suggestion}"
|
|
340
|
+
|
|
341
|
+
# Add any arguments that came after the command
|
|
342
|
+
if args_after_cmd:
|
|
343
|
+
full_command += " " + " ".join(args_after_cmd)
|
|
344
|
+
|
|
345
|
+
click.echo(f"\nWARNING: '{cmd_name}' is not a valid command. ", nl=False)
|
|
346
|
+
# Ask for confirmation
|
|
347
|
+
if click.confirm(f"Execute '{full_command}' instead?"):
|
|
348
|
+
return click.Group.get_command(self, ctx, suggestion)
|
|
349
|
+
|
|
350
|
+
return None
|
|
351
|
+
|
|
280
352
|
|
|
281
353
|
def load_connector_config(ctx: Context, connector_name: str, debug: bool, check_uninstalled: bool = False):
|
|
282
354
|
config_file = Path(getcwd()) / f".tinyb_{connector_name}"
|
|
@@ -272,14 +272,13 @@ class Shell:
|
|
|
272
272
|
click.echo(FeedbackManager.error(message="'tb workspace' command is not available in watch mode"))
|
|
273
273
|
|
|
274
274
|
def handle_mock(self, arg):
|
|
275
|
-
|
|
276
|
-
if "mock" in arg:
|
|
275
|
+
if "mock" in arg.strip().lower():
|
|
277
276
|
arg = arg.replace("mock", "")
|
|
278
277
|
subprocess.run(f"tb --build mock {arg} --skip", shell=True, text=True)
|
|
279
278
|
|
|
280
|
-
def handle_tb(self,
|
|
279
|
+
def handle_tb(self, argline):
|
|
281
280
|
click.echo("")
|
|
282
|
-
arg =
|
|
281
|
+
arg = argline.strip().lower()
|
|
283
282
|
if arg.startswith("build"):
|
|
284
283
|
self.handle_build()
|
|
285
284
|
elif arg.startswith("auth"):
|
|
@@ -287,12 +286,12 @@ class Shell:
|
|
|
287
286
|
elif arg.startswith("workspace"):
|
|
288
287
|
self.handle_workspace()
|
|
289
288
|
elif arg.startswith("mock"):
|
|
290
|
-
self.handle_mock(
|
|
289
|
+
self.handle_mock(argline)
|
|
291
290
|
else:
|
|
292
291
|
need_skip = ("mock", "test create", "create")
|
|
293
292
|
if any(arg.startswith(cmd) for cmd in need_skip):
|
|
294
|
-
|
|
295
|
-
subprocess.run(f"tb --build {
|
|
293
|
+
argline = f"{argline} --skip"
|
|
294
|
+
subprocess.run(f"tb --build {argline}", shell=True, text=True)
|
|
296
295
|
|
|
297
296
|
def default(self, argline):
|
|
298
297
|
click.echo("")
|
|
@@ -302,12 +301,12 @@ class Shell:
|
|
|
302
301
|
if arg.startswith("with") or arg.startswith("select"):
|
|
303
302
|
self.run_sql(argline)
|
|
304
303
|
elif len(arg.split()) == 1 and arg in self.project.pipes + self.project.datasources:
|
|
305
|
-
self.run_sql(f"select * from {
|
|
304
|
+
self.run_sql(f"select * from {argline}")
|
|
306
305
|
else:
|
|
307
306
|
need_skip = ("mock", "test create", "create")
|
|
308
307
|
if any(arg.startswith(cmd) for cmd in need_skip):
|
|
309
|
-
|
|
310
|
-
subprocess.run(f"tb --build {
|
|
308
|
+
argline = f"{argline} --skip"
|
|
309
|
+
subprocess.run(f"tb --build {argline}", shell=True, text=True)
|
|
311
310
|
|
|
312
311
|
def run_sql(self, query, rows_limit=20):
|
|
313
312
|
try:
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tinybird
|
|
3
|
+
Version: 0.0.1.dev67
|
|
4
|
+
Summary: Tinybird Command Line Tool
|
|
5
|
+
Home-page: https://www.tinybird.co/docs/cli/introduction.html
|
|
6
|
+
Author: Tinybird
|
|
7
|
+
Author-email: support@tinybird.co
|
|
8
|
+
Requires-Python: >=3.9, <3.13
|
|
9
|
+
Description-Content-Type: text/x-rst
|
|
10
|
+
Requires-Dist: aiofiles==24.1.0
|
|
11
|
+
Requires-Dist: anthropic==0.42.0
|
|
12
|
+
Requires-Dist: click<8.2,>=8.1.6
|
|
13
|
+
Requires-Dist: clickhouse-toolset==0.33.dev0
|
|
14
|
+
Requires-Dist: colorama==0.4.6
|
|
15
|
+
Requires-Dist: cryptography~=41.0.0
|
|
16
|
+
Requires-Dist: croniter==1.3.8
|
|
17
|
+
Requires-Dist: docker==7.1.0
|
|
18
|
+
Requires-Dist: GitPython~=3.1.32
|
|
19
|
+
Requires-Dist: humanfriendly~=8.2
|
|
20
|
+
Requires-Dist: prompt_toolkit==3.0.48
|
|
21
|
+
Requires-Dist: pydantic~=2.8.0
|
|
22
|
+
Requires-Dist: pyperclip==1.8.2
|
|
23
|
+
Requires-Dist: pyyaml<6.1,>=6.0
|
|
24
|
+
Requires-Dist: requests<3,>=2.28.1
|
|
25
|
+
Requires-Dist: shandy-sqlfmt==0.11.1
|
|
26
|
+
Requires-Dist: shandy-sqlfmt[jinjafmt]==0.11.1
|
|
27
|
+
Requires-Dist: toposort==1.10
|
|
28
|
+
Requires-Dist: tornado~=6.0.0
|
|
29
|
+
Requires-Dist: urllib3<2,>=1.26.14
|
|
30
|
+
Requires-Dist: watchdog==6.0.0
|
|
31
|
+
Requires-Dist: wheel
|
|
32
|
+
Requires-Dist: packaging<24,>=23.1
|
|
33
|
+
Requires-Dist: llm>=0.19
|
|
34
|
+
Requires-Dist: thefuzz==0.22.1
|
|
35
|
+
Provides-Extra: bigquery
|
|
36
|
+
Requires-Dist: gsutil==4.58; extra == "bigquery"
|
|
37
|
+
Requires-Dist: google-api-python-client==2.0.2; extra == "bigquery"
|
|
38
|
+
Requires-Dist: google-auth==1.27.1; extra == "bigquery"
|
|
39
|
+
Requires-Dist: google-auth-httplib2==0.1.0; extra == "bigquery"
|
|
40
|
+
Requires-Dist: google-cloud-storage==2.4.0; extra == "bigquery"
|
|
41
|
+
Requires-Dist: google-cloud-bigquery==2.11.0; extra == "bigquery"
|
|
42
|
+
Provides-Extra: snowflake
|
|
43
|
+
Requires-Dist: snowflake-connector-python~=3.12.3; extra == "snowflake"
|
|
44
|
+
Requires-Dist: gsutil==4.58; extra == "snowflake"
|
|
45
|
+
Requires-Dist: google-api-python-client==2.0.2; extra == "snowflake"
|
|
46
|
+
Requires-Dist: google-auth==1.27.1; extra == "snowflake"
|
|
47
|
+
Requires-Dist: google-auth-httplib2==0.1.0; extra == "snowflake"
|
|
48
|
+
Requires-Dist: google-cloud-storage==2.4.0; extra == "snowflake"
|
|
49
|
+
Requires-Dist: oauth2client==3.0.0; extra == "snowflake"
|
|
50
|
+
Requires-Dist: chardet<4,>=3.0.2; extra == "snowflake"
|
|
51
|
+
Requires-Dist: pyOpenSSL<20.0.0,>=16.2.0; extra == "snowflake"
|
|
52
|
+
|
|
53
|
+
Tinybird CLI
|
|
54
|
+
=============
|
|
55
|
+
|
|
56
|
+
The Tinybird command-line tool allows you to use all the Tinybird functionality directly from the command line. Additionally, it includes several functions to create and manage data projects easily.
|
|
57
|
+
|
|
58
|
+
Changelog
|
|
59
|
+
----------
|
|
60
|
+
|
|
61
|
+
0.0.1dev1
|
|
62
|
+
***********
|
|
63
|
+
|
|
64
|
+
* Initial release of the Tinybird CLI
|
tinybird-0.0.1.dev65/PKG-INFO
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: tinybird
|
|
3
|
-
Version: 0.0.1.dev65
|
|
4
|
-
Summary: Tinybird Command Line Tool
|
|
5
|
-
Home-page: https://www.tinybird.co/docs/cli/introduction.html
|
|
6
|
-
Author: Tinybird
|
|
7
|
-
Author-email: support@tinybird.co
|
|
8
|
-
Requires-Python: >=3.9, <3.13
|
|
9
|
-
Description-Content-Type: text/x-rst
|
|
10
|
-
Provides-Extra: bigquery
|
|
11
|
-
Provides-Extra: snowflake
|
|
12
|
-
|
|
13
|
-
Tinybird CLI
|
|
14
|
-
=============
|
|
15
|
-
|
|
16
|
-
The Tinybird command-line tool allows you to use all the Tinybird functionality directly from the command line. Additionally, it includes several functions to create and manage data projects easily.
|
|
17
|
-
|
|
18
|
-
Changelog
|
|
19
|
-
----------
|
|
20
|
-
|
|
21
|
-
0.0.1dev1
|
|
22
|
-
***********
|
|
23
|
-
|
|
24
|
-
* Initial release of the Tinybird CLI
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: tinybird
|
|
3
|
-
Version: 0.0.1.dev65
|
|
4
|
-
Summary: Tinybird Command Line Tool
|
|
5
|
-
Home-page: https://www.tinybird.co/docs/cli/introduction.html
|
|
6
|
-
Author: Tinybird
|
|
7
|
-
Author-email: support@tinybird.co
|
|
8
|
-
Requires-Python: >=3.9, <3.13
|
|
9
|
-
Description-Content-Type: text/x-rst
|
|
10
|
-
Provides-Extra: bigquery
|
|
11
|
-
Provides-Extra: snowflake
|
|
12
|
-
|
|
13
|
-
Tinybird CLI
|
|
14
|
-
=============
|
|
15
|
-
|
|
16
|
-
The Tinybird command-line tool allows you to use all the Tinybird functionality directly from the command line. Additionally, it includes several functions to create and manage data projects easily.
|
|
17
|
-
|
|
18
|
-
Changelog
|
|
19
|
-
----------
|
|
20
|
-
|
|
21
|
-
0.0.1dev1
|
|
22
|
-
***********
|
|
23
|
-
|
|
24
|
-
* Initial release of the Tinybird CLI
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb/modules/datafile/parse_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev65 → tinybird-0.0.1.dev67}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|