tinybird 0.0.1.dev1__tar.gz → 0.0.1.dev2__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.dev1 → tinybird-0.0.1.dev2}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/__cli__.py +2 -2
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/client.py +8 -5
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/config.py +1 -1
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/datafile.py +540 -6
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/feedback_manager.py +6 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli.py +2 -0
- tinybird-0.0.1.dev2/tinybird/tb_cli_modules/build.py +221 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/cli.py +67 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/common.py +2 -3
- tinybird-0.0.1.dev2/tinybird/tb_cli_modules/create.py +226 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/datasource.py +10 -2
- tinybird-0.0.1.dev2/tinybird/tb_cli_modules/prompts.py +133 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird.egg-info/SOURCES.txt +3 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird.egg-info/requires.txt +3 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/setup.cfg +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/token.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev2}/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.dev2'
|
|
8
|
+
__revision__ = 'bdbc260'
|
|
@@ -248,10 +248,10 @@ class TinyB:
|
|
|
248
248
|
url = url + "?" + scopes_url
|
|
249
249
|
return await self._req(url, method="PUT", data="")
|
|
250
250
|
|
|
251
|
-
async def datasources(self, branch: Optional[str] = None, used_by: bool = False):
|
|
252
|
-
params = {
|
|
253
|
-
|
|
254
|
-
|
|
251
|
+
async def datasources(self, branch: Optional[str] = None, used_by: bool = False) -> List[Dict[str, Any]]:
|
|
252
|
+
params = {}
|
|
253
|
+
if used_by:
|
|
254
|
+
params["attrs"] = "used_by"
|
|
255
255
|
response = await self._req(f"/v0/datasources?{urlencode(params)}")
|
|
256
256
|
ds = response["datasources"]
|
|
257
257
|
|
|
@@ -498,6 +498,9 @@ class TinyB:
|
|
|
498
498
|
payload = {"datasource_a": datasource_a, "datasource_b": datasource_b}
|
|
499
499
|
return await self._req("/v0/datasources/exchange", method="POST", data=payload)
|
|
500
500
|
|
|
501
|
+
async def datasource_events(self, datasource_name: str, data: Dict[str, Any]):
|
|
502
|
+
return await self._req(f"/v0/events?name={datasource_name}", method="POST", data=data)
|
|
503
|
+
|
|
501
504
|
async def analyze_pipe_node(
|
|
502
505
|
self, pipe_name: str, node: Dict[str, Any], dry_run: str = "false", datasource_name: Optional[str] = None
|
|
503
506
|
):
|
|
@@ -532,7 +535,7 @@ class TinyB:
|
|
|
532
535
|
)
|
|
533
536
|
return response
|
|
534
537
|
|
|
535
|
-
async def pipes(self, branch=None, dependencies: bool = False, node_attrs=None, attrs=None):
|
|
538
|
+
async def pipes(self, branch=None, dependencies: bool = False, node_attrs=None, attrs=None) -> List[Dict[str, Any]]:
|
|
536
539
|
params = {
|
|
537
540
|
"dependencies": "true" if dependencies else "false",
|
|
538
541
|
"attrs": attrs if attrs else "",
|
|
@@ -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", "
|
|
23
|
+
PROJECT_PATHS = ["datasources", "pipes", "tests"]
|
|
24
24
|
DEPRECATED_PROJECT_PATHS = ["endpoints"]
|
|
25
25
|
MIN_WORKSPACE_ID_LENGTH = 36
|
|
26
26
|
LEGACY_HOSTS = {
|