tinybird 0.0.1.dev39__tar.gz → 0.0.1.dev40__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.dev39 → tinybird-0.0.1.dev40}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/build.py +18 -14
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/mock.py +1 -1
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/setup.cfg +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/auth.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/build_client.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/common.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/fmt.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/tag.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/update.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -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.dev40'
|
|
8
|
+
__revision__ = '4f6c174'
|
|
@@ -36,7 +36,7 @@ def build(ctx: click.Context, watch: bool) -> None:
|
|
|
36
36
|
|
|
37
37
|
def process(file_changed: Optional[str] = None) -> None:
|
|
38
38
|
if file_changed and file_changed.endswith(".ndjson"):
|
|
39
|
-
rebuild_fixture(project,
|
|
39
|
+
rebuild_fixture(project, file_changed)
|
|
40
40
|
else:
|
|
41
41
|
build_project(project, tb_client)
|
|
42
42
|
new_tb_client = asyncio.run(get_tinybird_local_client(str(project.path)))
|
|
@@ -154,7 +154,6 @@ def append_fixture(
|
|
|
154
154
|
datasource_name: str,
|
|
155
155
|
url: str,
|
|
156
156
|
):
|
|
157
|
-
asyncio.run(tb_client.datasource_truncate(datasource_name))
|
|
158
157
|
asyncio.run(
|
|
159
158
|
push_data(
|
|
160
159
|
tb_client,
|
|
@@ -167,21 +166,26 @@ def append_fixture(
|
|
|
167
166
|
)
|
|
168
167
|
|
|
169
168
|
|
|
170
|
-
def rebuild_fixture(project: Project,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
169
|
+
def rebuild_fixture(project: Project, fixture: str) -> None:
|
|
170
|
+
try:
|
|
171
|
+
tb_client = asyncio.run(get_tinybird_local_client(str(project.path)))
|
|
172
|
+
fixture_path = Path(fixture)
|
|
173
|
+
datasources_path = Path(project.folder) / "datasources"
|
|
174
|
+
ds_name = fixture_path.stem
|
|
174
175
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
if ds_name not in project.datasources:
|
|
177
|
+
try:
|
|
178
|
+
ds_name = "_".join(fixture_path.stem.split("_")[:-1])
|
|
179
|
+
except Exception:
|
|
180
|
+
pass
|
|
180
181
|
|
|
181
|
-
|
|
182
|
+
ds_path = datasources_path / f"{ds_name}.datasource"
|
|
182
183
|
|
|
183
|
-
|
|
184
|
-
|
|
184
|
+
if ds_path.exists():
|
|
185
|
+
asyncio.run(tb_client.datasource_truncate(ds_name))
|
|
186
|
+
append_fixture(tb_client, ds_name, str(fixture_path))
|
|
187
|
+
except Exception as e:
|
|
188
|
+
click.echo(FeedbackManager.error_exception(error=e))
|
|
185
189
|
|
|
186
190
|
|
|
187
191
|
def build_and_print_resource(tb_client: TinyB, filename: str):
|
|
@@ -47,7 +47,7 @@ async def mock(datasource: str, rows: int, prompt: str, folder: str) -> None:
|
|
|
47
47
|
datasource_path = Path(folder) / datasource_path
|
|
48
48
|
|
|
49
49
|
prompt_path = Path(folder) / "fixtures" / f"{datasource_name}.prompt"
|
|
50
|
-
if not prompt:
|
|
50
|
+
if not prompt or prompt == "Use the datasource schema to generate sample data":
|
|
51
51
|
# load the prompt from the fixture.prompt file if it exists
|
|
52
52
|
if prompt_path.exists():
|
|
53
53
|
prompt = prompt_path.read_text()
|
|
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.dev39 → tinybird-0.0.1.dev40}/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.dev39 → tinybird-0.0.1.dev40}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev39 → tinybird-0.0.1.dev40}/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.dev39 → tinybird-0.0.1.dev40}/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
|