tinybird 0.0.1.dev229__tar.gz → 0.0.1.dev231__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.dev229 → tinybird-0.0.1.dev231}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/cli.py +12 -1
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datasource.py +25 -4
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/info.py +9 -4
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/setup.cfg +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/datafile/common.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/datafile/parse_connection.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/client.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/dev_server.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/sink.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/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.dev231'
|
|
8
|
+
__revision__ = '6e2d225'
|
|
@@ -152,7 +152,18 @@ async def cli(
|
|
|
152
152
|
|
|
153
153
|
config = await get_config(host, token, user_token=user_token, config_file=config_temp._path)
|
|
154
154
|
client = _get_tb_client(config.get("token", None), config["host"])
|
|
155
|
-
|
|
155
|
+
|
|
156
|
+
# Calculate project folder path properly
|
|
157
|
+
tinyb_dir = os.path.dirname(config_temp._path) # Directory containing .tinyb file
|
|
158
|
+
cwd_config = config.get("cwd", ".")
|
|
159
|
+
|
|
160
|
+
if os.path.isabs(cwd_config):
|
|
161
|
+
# If cwd is absolute, use it directly
|
|
162
|
+
folder = cwd_config
|
|
163
|
+
else:
|
|
164
|
+
# If cwd is relative, resolve it relative to .tinyb directory
|
|
165
|
+
folder = os.path.normpath(os.path.join(tinyb_dir, cwd_config))
|
|
166
|
+
|
|
156
167
|
project = Project(folder=folder, workspace_name=config.get("name", ""), max_depth=max_depth)
|
|
157
168
|
config["path"] = str(project.path)
|
|
158
169
|
# If they have passed a token or host as parameter and it's different that record in .tinyb, refresh the workspace id
|
|
@@ -788,7 +788,6 @@ async def datasource_create(
|
|
|
788
788
|
connection_required = datasource_type in ("kafka", "s3", "gcs")
|
|
789
789
|
|
|
790
790
|
if connection_required:
|
|
791
|
-
click.echo(FeedbackManager.gray(message="\n» Creating .connection file..."))
|
|
792
791
|
|
|
793
792
|
def get_connection_files():
|
|
794
793
|
connection_files = []
|
|
@@ -801,6 +800,8 @@ async def datasource_create(
|
|
|
801
800
|
return connection_files
|
|
802
801
|
|
|
803
802
|
connection_files = get_connection_files()
|
|
803
|
+
|
|
804
|
+
click.echo(FeedbackManager.gray(message="\n» Selecting connection..."))
|
|
804
805
|
connection_name = ""
|
|
805
806
|
topics: List[str] = []
|
|
806
807
|
if len(connection_files) == 0:
|
|
@@ -857,9 +858,29 @@ async def datasource_create(
|
|
|
857
858
|
return
|
|
858
859
|
|
|
859
860
|
if not connection_file:
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
861
|
+
if len(connection_files) > 1:
|
|
862
|
+
click.echo(
|
|
863
|
+
FeedbackManager.highlight(
|
|
864
|
+
message=f"? Multiple {datasource_types[datasource_type][0]} connections found. Please select one:"
|
|
865
|
+
)
|
|
866
|
+
)
|
|
867
|
+
connection_index = -1
|
|
868
|
+
while connection_index == -1:
|
|
869
|
+
for index, conn_file in enumerate(connection_files):
|
|
870
|
+
conn_path = Path(conn_file)
|
|
871
|
+
click.echo(f" [{index + 1}] {conn_path.stem}")
|
|
872
|
+
connection_index = click.prompt("\nSelect option", default=1)
|
|
873
|
+
try:
|
|
874
|
+
connection_file = connection_files[int(connection_index) - 1]
|
|
875
|
+
connection_path = Path(connection_file)
|
|
876
|
+
connection = connection_path.stem
|
|
877
|
+
except Exception:
|
|
878
|
+
connection_index = -1
|
|
879
|
+
else:
|
|
880
|
+
connection_file = connection_files[0]
|
|
881
|
+
connection_path = Path(connection_file)
|
|
882
|
+
connection = connection_path.stem
|
|
883
|
+
click.echo(FeedbackManager.info(message=f"Using connection: {connection}"))
|
|
863
884
|
|
|
864
885
|
click.echo(FeedbackManager.gray(message="\n» Creating .datasource file..."))
|
|
865
886
|
|
|
@@ -140,11 +140,16 @@ async def get_project_info(project_path: Optional[str] = None) -> Tuple[Iterable
|
|
|
140
140
|
config = CLIConfig.get_project_config()
|
|
141
141
|
tinyb_path = config.get_tinyb_file()
|
|
142
142
|
current_path = os.getcwd()
|
|
143
|
-
|
|
144
|
-
if
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
|
|
144
|
+
if project_path:
|
|
145
|
+
# Use the provided project path
|
|
146
|
+
pass
|
|
147
|
+
elif tinyb_path:
|
|
148
|
+
# Use the directory containing the .tinyb file as the project path
|
|
149
|
+
project_path = os.path.dirname(tinyb_path)
|
|
147
150
|
else:
|
|
151
|
+
# No .tinyb file found, use current directory
|
|
152
|
+
project_path = current_path
|
|
148
153
|
tinyb_path = "Not found"
|
|
149
154
|
|
|
150
155
|
columns = ["current", ".tinyb", "project"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/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.dev229 → tinybird-0.0.1.dev231}/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.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev229 → tinybird-0.0.1.dev231}/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
|