tinybird 0.0.1.dev18__tar.gz → 0.0.1.dev20__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.dev18 → tinybird-0.0.1.dev20}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/client.py +24 -4
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/config.py +1 -1
- tinybird-0.0.1.dev20/tinybird/feedback_manager.py +1022 -0
- tinybird-0.0.1.dev20/tinybird/tb/__cli__.py +8 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/auth.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/build.py +26 -80
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/cicd.py +1 -1
- tinybird-0.0.1.dev20/tinybird/tb/modules/cli.py +523 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/common.py +1 -55
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/connection.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/create.py +18 -7
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/build.py +142 -971
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/build_common.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/build_datasource.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/build_pipe.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/common.py +12 -11
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/diff.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/fixture.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/format_common.py +0 -7
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/format_datasource.py +0 -2
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/format_pipe.py +0 -2
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/parse_datasource.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/parse_pipe.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/pull.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datasource.py +4 -75
- {tinybird-0.0.1.dev18/tinybird → tinybird-0.0.1.dev20/tinybird/tb/modules}/feedback_manager.py +8 -4
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/fmt.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/job.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/llm.py +6 -4
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/local.py +26 -21
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/local_common.py +2 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/login.py +18 -11
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/mock.py +18 -7
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/pipe.py +4 -126
- tinybird-0.0.1.dev18/tinybird/tb/modules/build_shell.py → tinybird-0.0.1.dev20/tinybird/tb/modules/shell.py +66 -36
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/table.py +88 -5
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/tag.py +2 -2
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/test.py +45 -29
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/tinyunit/tinyunit.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/token.py +2 -2
- tinybird-0.0.1.dev20/tinybird/tb/modules/watch.py +72 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/workspace.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/workspace_members.py +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird.egg-info/SOURCES.txt +4 -1
- tinybird-0.0.1.dev18/tinybird/tb/modules/cli.py +0 -1349
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/setup.cfg +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev18 → tinybird-0.0.1.dev20}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -103,7 +103,7 @@ class TinyB:
|
|
|
103
103
|
self.send_telemetry = send_telemetry
|
|
104
104
|
self.semver = semver
|
|
105
105
|
|
|
106
|
-
async def
|
|
106
|
+
async def _req_raw(
|
|
107
107
|
self,
|
|
108
108
|
endpoint: str,
|
|
109
109
|
data=None,
|
|
@@ -155,10 +155,15 @@ class TinyB:
|
|
|
155
155
|
response = await sync_to_async(session.get, thread_sensitive=False)(
|
|
156
156
|
url, verify=verify_ssl, **kwargs
|
|
157
157
|
)
|
|
158
|
-
|
|
159
158
|
except Exception as e:
|
|
160
159
|
raise e
|
|
161
160
|
|
|
161
|
+
if self.send_telemetry:
|
|
162
|
+
try:
|
|
163
|
+
add_telemetry_event("api_request", endpoint=url, token=self.token, status_code=response.status_code)
|
|
164
|
+
except Exception as ex:
|
|
165
|
+
logging.exception(f"Can't send telemetry: {ex}")
|
|
166
|
+
|
|
162
167
|
logging.debug("== server response ==")
|
|
163
168
|
logging.debug(response.content)
|
|
164
169
|
logging.debug("== end ==")
|
|
@@ -169,6 +174,21 @@ class TinyB:
|
|
|
169
174
|
except Exception as ex:
|
|
170
175
|
logging.exception(f"Can't send telemetry: {ex}")
|
|
171
176
|
|
|
177
|
+
return response
|
|
178
|
+
|
|
179
|
+
async def _req(
|
|
180
|
+
self,
|
|
181
|
+
endpoint: str,
|
|
182
|
+
data=None,
|
|
183
|
+
files=None,
|
|
184
|
+
method: str = "GET",
|
|
185
|
+
retries: int = LIMIT_RETRIES,
|
|
186
|
+
use_token: Optional[str] = None,
|
|
187
|
+
**kwargs,
|
|
188
|
+
):
|
|
189
|
+
token_to_use = use_token if use_token else self.token
|
|
190
|
+
response = await self._req_raw(endpoint, data, files, method, retries, use_token, **kwargs)
|
|
191
|
+
|
|
172
192
|
if response.status_code == 403:
|
|
173
193
|
error = parse_error_response(response)
|
|
174
194
|
if not token_to_use:
|
|
@@ -500,7 +520,7 @@ class TinyB:
|
|
|
500
520
|
payload = {"datasource_a": datasource_a, "datasource_b": datasource_b}
|
|
501
521
|
return await self._req("/v0/datasources/exchange", method="POST", data=payload)
|
|
502
522
|
|
|
503
|
-
async def datasource_events(self, datasource_name: str, data:
|
|
523
|
+
async def datasource_events(self, datasource_name: str, data: str):
|
|
504
524
|
return await self._req(f"/v0/events?name={datasource_name}", method="POST", data=data)
|
|
505
525
|
|
|
506
526
|
async def analyze_pipe_node(
|
|
@@ -816,7 +836,7 @@ class TinyB:
|
|
|
816
836
|
params = {"with_token": "true" if with_token else "false"}
|
|
817
837
|
return await self._req(f"/v0/workspaces/{workspace_id}?{urlencode(params)}")
|
|
818
838
|
|
|
819
|
-
async def workspace_info(self):
|
|
839
|
+
async def workspace_info(self) -> Dict[str, Any]:
|
|
820
840
|
return await self._req("/v0/workspace")
|
|
821
841
|
|
|
822
842
|
async def wait_for_job(
|
|
@@ -20,7 +20,7 @@ CURRENT_VERSION = f"{__cli__.__version__}"
|
|
|
20
20
|
VERSION = f"{__cli__.__version__} (rev {__revision__})"
|
|
21
21
|
DEFAULT_UI_HOST = "https://app.tinybird.co"
|
|
22
22
|
SUPPORTED_CONNECTORS = ["bigquery", "snowflake"]
|
|
23
|
-
PROJECT_PATHS = ["datasources", "pipes", "tests"]
|
|
23
|
+
PROJECT_PATHS = ["datasources", "datasources/fixtures", "endpoints", "pipes", "tests", "scripts", "deploy"]
|
|
24
24
|
DEPRECATED_PROJECT_PATHS = ["endpoints"]
|
|
25
25
|
MIN_WORKSPACE_ID_LENGTH = 36
|
|
26
26
|
LEGACY_HOSTS = {
|