tinybird 0.0.1.dev108__tar.gz → 0.0.1.dev109__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.dev108 → tinybird-0.0.1.dev109}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/common.py +15 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/login.py +5 -2
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/setup.cfg +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/auth.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/fmt.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/playground.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/tag.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/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.dev109'
|
|
8
|
+
__revision__ = '421d6c4'
|
|
@@ -191,6 +191,14 @@ KAFKA_PARAMS = {
|
|
|
191
191
|
|
|
192
192
|
REQUIRED_KAFKA_PARAMS = KAFKA_PARAMS
|
|
193
193
|
|
|
194
|
+
S3_PARAMS = {
|
|
195
|
+
"import_connection_name",
|
|
196
|
+
"import_schedule",
|
|
197
|
+
"import_bucket_uri",
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
REQUIRED_S3_PARAMS = S3_PARAMS
|
|
201
|
+
|
|
194
202
|
|
|
195
203
|
class Datafile:
|
|
196
204
|
def __init__(self) -> None:
|
|
@@ -261,6 +269,7 @@ class Datafile:
|
|
|
261
269
|
# [x] Engine is present
|
|
262
270
|
# [x] Token permissions are valid
|
|
263
271
|
# [x] If it's a kafka datasource, all required kafka params are present
|
|
272
|
+
# [x] If it's an S3 datasource, all required S3 params are present
|
|
264
273
|
# [ ] ...
|
|
265
274
|
if len(self.nodes) > 1:
|
|
266
275
|
# Our users are not aware of data source data files being a single-node data file, hence this error
|
|
@@ -283,6 +292,12 @@ class Datafile:
|
|
|
283
292
|
raise DatafileValidationError(
|
|
284
293
|
f"Some Kafka params have been provided, but the following required ones are missing: {missing}"
|
|
285
294
|
)
|
|
295
|
+
# Validate S3 params
|
|
296
|
+
if any(param in node for param in S3_PARAMS) and not all(param in node for param in REQUIRED_S3_PARAMS):
|
|
297
|
+
missing = [param for param in S3_PARAMS if param not in node]
|
|
298
|
+
raise DatafileValidationError(
|
|
299
|
+
f"Some S3 params have been provided, but the following required ones are missing: {missing}"
|
|
300
|
+
)
|
|
286
301
|
else:
|
|
287
302
|
# We cannot validate a datafile whose kind is unknown
|
|
288
303
|
pass
|
|
@@ -113,6 +113,9 @@ def start_server(auth_callback, auth_host):
|
|
|
113
113
|
@coro
|
|
114
114
|
async def login(host: str, auth_host: str, workspace: str):
|
|
115
115
|
"""Authenticate using the browser."""
|
|
116
|
+
host = host.rstrip("/")
|
|
117
|
+
auth_host = auth_host.rstrip("/")
|
|
118
|
+
|
|
116
119
|
auth_event = threading.Event()
|
|
117
120
|
auth_code: list[str] = [] # Using a list to store the code, as it's mutable
|
|
118
121
|
|
|
@@ -153,8 +156,8 @@ async def login(host: str, auth_host: str, workspace: str):
|
|
|
153
156
|
cli_config.set_token(data.get("workspace_token", ""))
|
|
154
157
|
cli_config.set_token_for_host(data.get("workspace_token", ""), host)
|
|
155
158
|
cli_config.set_user_token(data.get("user_token", ""))
|
|
156
|
-
|
|
157
|
-
|
|
159
|
+
host = data.get("api_host", host)
|
|
160
|
+
cli_config.set_host(host)
|
|
158
161
|
ws = await cli_config.get_client(token=data.get("workspace_token", ""), host=host).workspace_info(version="v1")
|
|
159
162
|
for k in ("id", "name", "user_email", "user_id", "scope"):
|
|
160
163
|
if k in ws:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
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.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb/modules/datafile/parse_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/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.dev108 → tinybird-0.0.1.dev109}/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.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev108 → tinybird-0.0.1.dev109}/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
|