tinybird 0.0.1.dev83__tar.gz → 0.0.1.dev85__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.dev83 → tinybird-0.0.1.dev85}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/cli.py +2 -1
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/local.py +10 -6
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/watch.py +7 -5
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/setup.cfg +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/auth.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/common.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/fmt.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/playground.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/tag.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/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.dev85'
|
|
8
|
+
__revision__ = 'd751c6c'
|
|
@@ -108,7 +108,8 @@ async def cli(
|
|
|
108
108
|
|
|
109
109
|
config = await get_config(host, token, config_file=config_temp._path)
|
|
110
110
|
client = _get_tb_client(config.get("token", None), config["host"])
|
|
111
|
-
|
|
111
|
+
folder = os.path.join(config_temp._path.replace(".tinyb", ""), config.get("cwd", os.getcwd()))
|
|
112
|
+
project = Project(folder=folder)
|
|
112
113
|
config["path"] = str(project.path)
|
|
113
114
|
# If they have passed a token or host as paramter and it's different that record in .tinyb, refresh the workspace id
|
|
114
115
|
if token or host:
|
|
@@ -107,9 +107,7 @@ def remove_tinybird_local(docker_client):
|
|
|
107
107
|
pass
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
|
|
111
|
-
def update():
|
|
112
|
-
"""Update Tinybird CLI to the latest version."""
|
|
110
|
+
def update_cli():
|
|
113
111
|
click.echo(FeedbackManager.highlight(message="» Updating Tinybird CLI..."))
|
|
114
112
|
process = subprocess.Popen(
|
|
115
113
|
[f"{os.getenv('HOME')}/.local/bin/uv", "tool", "upgrade", "tinybird"],
|
|
@@ -118,16 +116,22 @@ def update():
|
|
|
118
116
|
text=True,
|
|
119
117
|
)
|
|
120
118
|
stdout, stderr = process.communicate()
|
|
121
|
-
if "Nothing to
|
|
119
|
+
if "Nothing to upgrade" not in stdout + stderr:
|
|
122
120
|
click.echo(FeedbackManager.success(message="✓ Tinybird CLI updated"))
|
|
123
121
|
else:
|
|
124
122
|
click.echo(FeedbackManager.info(message="✓ Tinybird CLI is already up-to-date"))
|
|
125
123
|
|
|
126
124
|
|
|
125
|
+
@cli.command()
|
|
126
|
+
def update():
|
|
127
|
+
"""Update Tinybird CLI to the latest version."""
|
|
128
|
+
update_cli()
|
|
129
|
+
|
|
130
|
+
|
|
127
131
|
@cli.command(name="upgrade", hidden=True)
|
|
128
132
|
def upgrade():
|
|
129
|
-
"""
|
|
130
|
-
|
|
133
|
+
"""Update Tinybird CLI to the latest version."""
|
|
134
|
+
update_cli()
|
|
131
135
|
|
|
132
136
|
|
|
133
137
|
@cli.group()
|
|
@@ -11,6 +11,7 @@ from watchdog.events import (
|
|
|
11
11
|
FileDeletedEvent,
|
|
12
12
|
FileMovedEvent,
|
|
13
13
|
FileSystemEventHandler,
|
|
14
|
+
PatternMatchingEventHandler,
|
|
14
15
|
)
|
|
15
16
|
from watchdog.observers import Observer
|
|
16
17
|
|
|
@@ -20,21 +21,22 @@ from tinybird.tb.modules.project import Project
|
|
|
20
21
|
from tinybird.tb.modules.shell import Shell
|
|
21
22
|
|
|
22
23
|
|
|
23
|
-
class WatchProjectHandler(
|
|
24
|
+
class WatchProjectHandler(PatternMatchingEventHandler):
|
|
25
|
+
valid_extensions = [".datasource", ".pipe", ".ndjson", ".sql"]
|
|
26
|
+
|
|
24
27
|
def __init__(self, shell: Shell, project: Project, process: Callable):
|
|
25
28
|
self.shell = shell
|
|
26
29
|
self.project = project
|
|
27
30
|
self.process = process
|
|
28
31
|
self.datafiles = project.get_project_datafiles()
|
|
29
|
-
|
|
32
|
+
patterns = [f"{project.path}/**/*{ext}" for ext in self.valid_extensions]
|
|
33
|
+
super().__init__(patterns=patterns)
|
|
30
34
|
|
|
31
35
|
def should_process(self, event: Any) -> Optional[str]:
|
|
32
36
|
if event.is_directory:
|
|
33
37
|
return None
|
|
34
38
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if not any(event.src_path.endswith(ext) for ext in valid_extensions):
|
|
39
|
+
if not any(event.src_path.endswith(ext) for ext in self.valid_extensions):
|
|
38
40
|
return None
|
|
39
41
|
|
|
40
42
|
if os.path.exists(event.src_path):
|
|
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.dev83 → tinybird-0.0.1.dev85}/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.dev83 → tinybird-0.0.1.dev85}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/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
|
|
File without changes
|
{tinybird-0.0.1.dev83 → tinybird-0.0.1.dev85}/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
|