tinybird 0.0.1.dev172__tar.gz → 0.0.1.dev173__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.dev172 → tinybird-0.0.1.dev173}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/cli.py +3 -1
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/project.py +12 -5
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/setup.cfg +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/client.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/common.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/dev_server.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/info.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/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.dev173'
|
|
8
|
+
__revision__ = '8bd5be6'
|
|
@@ -74,6 +74,7 @@ VERSION = f"{__cli__.__version__} (rev {__cli__.__revision__})"
|
|
|
74
74
|
@click.option(
|
|
75
75
|
"--output", type=click.Choice(["json", "human"], case_sensitive=False), default="human", help="Output format"
|
|
76
76
|
)
|
|
77
|
+
@click.option("--max-depth", type=int, default=2, help="Maximum depth of the project files.")
|
|
77
78
|
@click.version_option(version=VERSION)
|
|
78
79
|
@click.pass_context
|
|
79
80
|
@coro
|
|
@@ -88,6 +89,7 @@ async def cli(
|
|
|
88
89
|
cloud: bool,
|
|
89
90
|
staging: bool,
|
|
90
91
|
output: str,
|
|
92
|
+
max_depth: int,
|
|
91
93
|
) -> None:
|
|
92
94
|
"""
|
|
93
95
|
Use `OBFUSCATE_REGEX_PATTERN` and `OBFUSCATE_PATTERN_SEPARATOR` environment variables to define a regex pattern and a separator (in case of a single string with multiple regex) to obfuscate secrets in the CLI output.
|
|
@@ -148,7 +150,7 @@ async def cli(
|
|
|
148
150
|
config = await get_config(host, token, user_token=user_token, config_file=config_temp._path)
|
|
149
151
|
client = _get_tb_client(config.get("token", None), config["host"])
|
|
150
152
|
folder = os.path.join(config_temp._path.replace(".tinyb", ""), config.get("cwd", os.getcwd()))
|
|
151
|
-
project = Project(folder=folder, workspace_name=config.get("name", ""))
|
|
153
|
+
project = Project(folder=folder, workspace_name=config.get("name", ""), max_depth=max_depth)
|
|
152
154
|
config["path"] = str(project.path)
|
|
153
155
|
# If they have passed a token or host as parameter and it's different that record in .tinyb, refresh the workspace id
|
|
154
156
|
if token or host:
|
|
@@ -11,9 +11,10 @@ from tinybird.tb.modules.datafile.parse_pipe import parse_pipe
|
|
|
11
11
|
class Project:
|
|
12
12
|
extensions = ("datasource", "pipe", "connection")
|
|
13
13
|
|
|
14
|
-
def __init__(self, folder: str, workspace_name: str):
|
|
14
|
+
def __init__(self, folder: str, workspace_name: str, max_depth: int = 2):
|
|
15
15
|
self.folder = folder
|
|
16
16
|
self.workspace_name = workspace_name
|
|
17
|
+
self.max_depth = max_depth
|
|
17
18
|
|
|
18
19
|
@property
|
|
19
20
|
def path(self) -> Path:
|
|
@@ -23,10 +24,16 @@ class Project:
|
|
|
23
24
|
def vendor_path(self) -> str:
|
|
24
25
|
return f"{self.path}/vendor"
|
|
25
26
|
|
|
27
|
+
def get_files(self, extension: str) -> List[str]:
|
|
28
|
+
project_files: List[str] = []
|
|
29
|
+
for level in range(self.max_depth):
|
|
30
|
+
project_files.extend(glob.glob(f"{self.path}{'/*' * level}/*.{extension}", recursive=True))
|
|
31
|
+
return project_files
|
|
32
|
+
|
|
26
33
|
def get_project_files(self) -> List[str]:
|
|
27
34
|
project_files: List[str] = []
|
|
28
35
|
for extension in self.extensions:
|
|
29
|
-
for project_file in
|
|
36
|
+
for project_file in self.get_files(extension):
|
|
30
37
|
if self.vendor_path in project_file:
|
|
31
38
|
continue
|
|
32
39
|
project_files.append(project_file)
|
|
@@ -51,13 +58,13 @@ class Project:
|
|
|
51
58
|
return sorted([Path(f).stem for f in self.get_connection_files()])
|
|
52
59
|
|
|
53
60
|
def get_datasource_files(self) -> List[str]:
|
|
54
|
-
return
|
|
61
|
+
return self.get_files("datasource")
|
|
55
62
|
|
|
56
63
|
def get_pipe_files(self) -> List[str]:
|
|
57
|
-
return
|
|
64
|
+
return self.get_files("pipe")
|
|
58
65
|
|
|
59
66
|
def get_connection_files(self) -> List[str]:
|
|
60
|
-
return
|
|
67
|
+
return self.get_files("connection")
|
|
61
68
|
|
|
62
69
|
def get_pipe_datafile(self, filename: str) -> Optional[Datafile]:
|
|
63
70
|
try:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/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.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb/modules/datafile/parse_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/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
|
|
File without changes
|
{tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/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.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev172 → tinybird-0.0.1.dev173}/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
|