tinybird 0.0.1.dev10__tar.gz → 0.0.1.dev11__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.dev10 → tinybird-0.0.1.dev11}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/build.py +6 -5
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/local.py +8 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/mock.py +11 -1
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/setup.cfg +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/auth.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/branch.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/common.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/fmt.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/prompts.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/tag.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -81,11 +81,12 @@ class FileChangeHandler(FileSystemEventHandler):
|
|
|
81
81
|
click.echo(FeedbackManager.error_exception(error=e))
|
|
82
82
|
|
|
83
83
|
def on_created(self, event: Any) -> None:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
if not event.is_directory and any(event.src_path.endswith(ext) for ext in [".datasource", ".pipe", ".ndjson"]):
|
|
85
|
+
click.echo(FeedbackManager.highlight(message=f"\n\n⟲ Changes detected in {event.src_path}\n"))
|
|
86
|
+
try:
|
|
87
|
+
self.process([event.src_path])
|
|
88
|
+
except Exception as e:
|
|
89
|
+
click.echo(FeedbackManager.error_exception(error=e))
|
|
89
90
|
|
|
90
91
|
|
|
91
92
|
def watch_files(
|
|
@@ -147,6 +147,14 @@ async def get_tinybird_local_client(path: Optional[str] = None):
|
|
|
147
147
|
return config.get_client(host=TB_LOCAL_HOST, token=token)
|
|
148
148
|
|
|
149
149
|
|
|
150
|
+
@cli.command()
|
|
151
|
+
def upgrade():
|
|
152
|
+
"""Upgrade Tinybird CLI to the latest version"""
|
|
153
|
+
click.echo(FeedbackManager.info(message="Upgrading Tinybird CLI..."))
|
|
154
|
+
os.system(f"{os.getenv('HOME')}/.local/bin/uv tool upgrade tinybird")
|
|
155
|
+
click.echo(FeedbackManager.success(message="Tinybird CLI upgraded"))
|
|
156
|
+
|
|
157
|
+
|
|
150
158
|
@cli.group()
|
|
151
159
|
@click.pass_context
|
|
152
160
|
def local(ctx):
|
|
@@ -33,9 +33,19 @@ async def mock(datasource: str, rows: int, context: str, folder: str) -> None:
|
|
|
33
33
|
datasource_name = datasource_path.stem
|
|
34
34
|
else:
|
|
35
35
|
datasource_path = Path("datasources", f"{datasource}.datasource")
|
|
36
|
-
|
|
37
36
|
datasource_path = Path(folder) / datasource_path
|
|
38
37
|
|
|
38
|
+
context_path = Path(folder) / "fixtures" / f"{datasource_name}.prompt"
|
|
39
|
+
if not context:
|
|
40
|
+
# load the context from the fixture.prompt file if it exists
|
|
41
|
+
if context_path.exists():
|
|
42
|
+
click.echo(FeedbackManager.gray(message=f"Using context for {context_path}..."))
|
|
43
|
+
context = context_path.read_text()
|
|
44
|
+
else:
|
|
45
|
+
click.echo(FeedbackManager.gray(message=f"Overriding context for {datasource_name}..."))
|
|
46
|
+
context_path.write_text(context)
|
|
47
|
+
|
|
48
|
+
|
|
39
49
|
click.echo(FeedbackManager.gray(message=f"Creating fixture for {datasource_name}..."))
|
|
40
50
|
datasource_content = datasource_path.read_text()
|
|
41
51
|
llm_config = CLIConfig.get_llm_config()
|
|
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.dev10 → tinybird-0.0.1.dev11}/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.dev10 → tinybird-0.0.1.dev11}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/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
|
{tinybird-0.0.1.dev10 → tinybird-0.0.1.dev11}/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
|
|
File without changes
|