tinybird 0.0.1.dev193__tar.gz → 0.0.1.dev195__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.dev193 → tinybird-0.0.1.dev195}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/cli.py +5 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/deployment.py +3 -3
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/project.py +13 -10
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/setup.cfg +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/client.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/common.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/dev_server.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/info.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/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/forward/commands'
|
|
5
5
|
__author__ = 'Tinybird'
|
|
6
6
|
__author_email__ = 'support@tinybird.co'
|
|
7
|
-
__version__ = '0.0.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev195'
|
|
8
|
+
__revision__ = '6b32ca9'
|
|
@@ -220,7 +220,12 @@ async def sql(
|
|
|
220
220
|
req_format = "CSVWithNames" if output == "csv" else "JSON"
|
|
221
221
|
res = None
|
|
222
222
|
try:
|
|
223
|
+
if not query and not sys.stdin.isatty(): # Check if there's piped input
|
|
224
|
+
query = sys.stdin.read().strip()
|
|
225
|
+
|
|
223
226
|
if query:
|
|
227
|
+
if query.endswith(";"):
|
|
228
|
+
query = query[:-1].strip()
|
|
224
229
|
q = query.lower().strip()
|
|
225
230
|
if q.startswith("insert"):
|
|
226
231
|
click.echo(FeedbackManager.info_append_data())
|
|
@@ -671,7 +671,7 @@ def print_changes(result: dict, project: Project) -> None:
|
|
|
671
671
|
resources.append(["new", ds, "datasource", project.get_resource_path(ds, "datasource")])
|
|
672
672
|
|
|
673
673
|
for p in deployment.get("new_pipe_names", []):
|
|
674
|
-
path =
|
|
674
|
+
path = project.get_resource_path(p, "pipe")
|
|
675
675
|
pipe_type = project.get_pipe_type(path)
|
|
676
676
|
resources.append(["new", p, pipe_type, path])
|
|
677
677
|
|
|
@@ -682,7 +682,7 @@ def print_changes(result: dict, project: Project) -> None:
|
|
|
682
682
|
resources.append(["modified", ds, "datasource", project.get_resource_path(ds, "datasource")])
|
|
683
683
|
|
|
684
684
|
for p in deployment.get("changed_pipe_names", []):
|
|
685
|
-
path =
|
|
685
|
+
path = project.get_resource_path(p, "pipe")
|
|
686
686
|
pipe_type = project.get_pipe_type(path)
|
|
687
687
|
resources.append(["modified", p, pipe_type, path])
|
|
688
688
|
|
|
@@ -696,7 +696,7 @@ def print_changes(result: dict, project: Project) -> None:
|
|
|
696
696
|
resources.append(["deleted", ds, "datasource", project.get_resource_path(ds, "datasource")])
|
|
697
697
|
|
|
698
698
|
for p in deployment.get("deleted_pipe_names", []):
|
|
699
|
-
path =
|
|
699
|
+
path = project.get_resource_path(p, "pipe")
|
|
700
700
|
pipe_type = project.get_pipe_type(path)
|
|
701
701
|
resources.append(["deleted", p, pipe_type, path])
|
|
702
702
|
|
|
@@ -50,12 +50,12 @@ class Project:
|
|
|
50
50
|
project_files.append(project_file)
|
|
51
51
|
return project_files
|
|
52
52
|
|
|
53
|
-
def get_resource_path(self, resource_name: str, resource_type: str) ->
|
|
53
|
+
def get_resource_path(self, resource_name: str, resource_type: str) -> str:
|
|
54
54
|
full_path = next(
|
|
55
55
|
(p for p in self.get_project_files() if p.endswith("/" + resource_name + f".{resource_type}")), ""
|
|
56
56
|
)
|
|
57
57
|
if not full_path:
|
|
58
|
-
return
|
|
58
|
+
return ""
|
|
59
59
|
return Path(full_path).relative_to(self.path).as_posix()
|
|
60
60
|
|
|
61
61
|
@property
|
|
@@ -117,14 +117,17 @@ class Project:
|
|
|
117
117
|
|
|
118
118
|
@staticmethod
|
|
119
119
|
def get_pipe_type(path: str) -> str:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
120
|
+
try:
|
|
121
|
+
content = Path(path).read_text()
|
|
122
|
+
if re.search(r"TYPE endpoint", content, re.IGNORECASE):
|
|
123
|
+
return "endpoint"
|
|
124
|
+
elif re.search(r"TYPE materialized", content, re.IGNORECASE):
|
|
125
|
+
return "materialization"
|
|
126
|
+
elif re.search(r"TYPE copy", content, re.IGNORECASE):
|
|
127
|
+
return "copy"
|
|
128
|
+
return "pipe"
|
|
129
|
+
except Exception:
|
|
130
|
+
return "pipe"
|
|
128
131
|
|
|
129
132
|
@staticmethod
|
|
130
133
|
def is_kafka_connection(content: str) -> bool:
|
|
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.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/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
|
{tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/parse_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/modules/datafile/pipe_checker.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
|
{tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb/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
|
|
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.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev193 → tinybird-0.0.1.dev195}/tinybird/tb_cli_modules/workspace_members.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|