tinybird 0.0.1.dev158__tar.gz → 0.0.1.dev159__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.dev158 → tinybird-0.0.1.dev159}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/feedback_manager.py +1 -1
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/client.py +0 -7
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/common.py +2 -65
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/feedback_manager.py +0 -8
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/local_common.py +1 -1
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/workspace.py +2 -9
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/setup.cfg +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/auth.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/common.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/dev_server.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -491,7 +491,7 @@ Ready? """
|
|
|
491
491
|
"""\n[2] Go to IAM > Policies. Create a new policy with the following permissions. Please, replace {replacements}:\n\n{access_policy}\n\n(The policy has been copied to your clipboard)\n\n"""
|
|
492
492
|
)
|
|
493
493
|
prompt_s3_iamrole_connection_policy_not_copied = prompt_message(
|
|
494
|
-
"""\n[2] Go to IAM > Policies. Create a new policy with the following permissions. Please, copy this policy and replace <bucket> with your bucket name:\n\n{access_policy}\n\n"""
|
|
494
|
+
"""\n[2] Go to IAM > Policies. Create a new policy with the following permissions. Please, copy this policy and replace <bucket> with your bucket name and <table_name> with your table name:\n\n{access_policy}\n\n"""
|
|
495
495
|
)
|
|
496
496
|
prompt_s3_iamrole_connection_role = prompt_message(
|
|
497
497
|
"""\n[3] Go to IAM > Roles. Create a new IAM Role using the following custom trust policy and attach the access policy you just created in the previous step:\n\n{trust_policy}\n\n(The policy has been copied to your clipboard)\n\n"""
|
|
@@ -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.dev159'
|
|
8
|
+
__revision__ = '33da9f4'
|
|
@@ -235,10 +235,6 @@ class TinyB:
|
|
|
235
235
|
response = await self._req("/v0/tokens")
|
|
236
236
|
return response["tokens"]
|
|
237
237
|
|
|
238
|
-
async def starterkits(self) -> List[Dict[str, Any]]:
|
|
239
|
-
data = await self._req("/v0/templates")
|
|
240
|
-
return data.get("templates", [])
|
|
241
|
-
|
|
242
238
|
async def get_token_by_name(self, name: str):
|
|
243
239
|
tokens = await self.tokens()
|
|
244
240
|
for tk in tokens:
|
|
@@ -741,13 +737,10 @@ class TinyB:
|
|
|
741
737
|
async def create_workspace(
|
|
742
738
|
self,
|
|
743
739
|
name: str,
|
|
744
|
-
template: Optional[str],
|
|
745
740
|
assign_to_organization_id: Optional[str] = None,
|
|
746
741
|
version: str = "v0",
|
|
747
742
|
):
|
|
748
743
|
url = f"/{version}/workspaces?name={name}"
|
|
749
|
-
if template:
|
|
750
|
-
url += f"&starter_kit={template}"
|
|
751
744
|
if assign_to_organization_id:
|
|
752
745
|
url += f"&assign_to_organization_id={assign_to_organization_id}"
|
|
753
746
|
return await self._req(url, method="POST", data=b"")
|
|
@@ -74,7 +74,6 @@ from tinybird.tb.modules.telemetry import (
|
|
|
74
74
|
add_telemetry_sysinfo_event,
|
|
75
75
|
flush_telemetry,
|
|
76
76
|
init_telemetry,
|
|
77
|
-
is_ci_environment,
|
|
78
77
|
)
|
|
79
78
|
|
|
80
79
|
SUPPORTED_FORMATS = ["csv", "ndjson", "json", "parquet"]
|
|
@@ -634,56 +633,6 @@ async def check_user_token_with_client(client: TinyB, token: str):
|
|
|
634
633
|
)
|
|
635
634
|
|
|
636
635
|
|
|
637
|
-
async def get_available_starterkits(ctx: Context) -> List[Dict[str, Any]]:
|
|
638
|
-
ctx_dict = ctx.ensure_object(dict)
|
|
639
|
-
available_starterkits = ctx_dict.get("available_starterkits", None)
|
|
640
|
-
if available_starterkits is not None:
|
|
641
|
-
return available_starterkits
|
|
642
|
-
|
|
643
|
-
try:
|
|
644
|
-
client: TinyB = ctx_dict["client"]
|
|
645
|
-
|
|
646
|
-
available_starterkits = await client.starterkits()
|
|
647
|
-
ctx_dict["available_starterkits"] = available_starterkits
|
|
648
|
-
return available_starterkits
|
|
649
|
-
except Exception as ex:
|
|
650
|
-
raise CLIException(FeedbackManager.error_exception(error=ex))
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
async def get_starterkit(ctx: Context, name: str) -> Optional[Dict[str, Any]]:
|
|
654
|
-
available_starterkits = await get_available_starterkits(ctx)
|
|
655
|
-
if not available_starterkits:
|
|
656
|
-
return None
|
|
657
|
-
return next((sk for sk in available_starterkits if sk.get("friendly_name", None) == name), None)
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
async def is_valid_starterkit(ctx: Context, name: str) -> bool:
|
|
661
|
-
return name == "blank" or (await get_starterkit(ctx, name) is not None)
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
async def ask_for_starterkit_interactively(ctx: Context) -> Optional[str]:
|
|
665
|
-
starterkit = [{"friendly_name": "blank", "description": "Empty workspace"}]
|
|
666
|
-
starterkit.extend(await get_available_starterkits(ctx))
|
|
667
|
-
rows = [(index + 1, sk["friendly_name"], sk["description"]) for index, sk in enumerate(starterkit)]
|
|
668
|
-
|
|
669
|
-
echo_safe_humanfriendly_tables_format_smart_table(rows, column_names=["Idx", "Id", "Description"])
|
|
670
|
-
click.echo("")
|
|
671
|
-
click.echo(" [0] to cancel")
|
|
672
|
-
|
|
673
|
-
sk_index = -1
|
|
674
|
-
while sk_index == -1:
|
|
675
|
-
sk_index = click.prompt("\nUse starter kit", default=1)
|
|
676
|
-
if sk_index < 0 or sk_index > len(starterkit):
|
|
677
|
-
click.echo(FeedbackManager.error_starterkit_index(starterkit_index=sk_index))
|
|
678
|
-
sk_index = -1
|
|
679
|
-
|
|
680
|
-
if sk_index == 0:
|
|
681
|
-
click.echo(FeedbackManager.info_cancelled_by_user())
|
|
682
|
-
return None
|
|
683
|
-
|
|
684
|
-
return starterkit[sk_index - 1]["friendly_name"]
|
|
685
|
-
|
|
686
|
-
|
|
687
636
|
async def fork_workspace(client: TinyB, user_client: TinyB, created_workspace):
|
|
688
637
|
config = CLIConfig.get_project_config()
|
|
689
638
|
|
|
@@ -695,13 +644,12 @@ async def fork_workspace(client: TinyB, user_client: TinyB, created_workspace):
|
|
|
695
644
|
async def create_workspace_non_interactive(
|
|
696
645
|
ctx: Context,
|
|
697
646
|
workspace_name: str,
|
|
698
|
-
starterkit: Optional[str],
|
|
699
647
|
user_token: str,
|
|
700
648
|
fork: bool,
|
|
701
649
|
organization_id: Optional[str],
|
|
702
650
|
organization_name: Optional[str],
|
|
703
651
|
):
|
|
704
|
-
"""Creates a workspace using the provided name
|
|
652
|
+
"""Creates a workspace using the provided name"""
|
|
705
653
|
client: TinyB = ctx.ensure_object(dict)["client"]
|
|
706
654
|
|
|
707
655
|
try:
|
|
@@ -709,7 +657,7 @@ async def create_workspace_non_interactive(
|
|
|
709
657
|
user_client.token = user_token
|
|
710
658
|
|
|
711
659
|
created_workspace = await user_client.create_workspace(
|
|
712
|
-
workspace_name,
|
|
660
|
+
workspace_name, organization_id, version="v1"
|
|
713
661
|
)
|
|
714
662
|
if organization_id and organization_name:
|
|
715
663
|
click.echo(
|
|
@@ -730,21 +678,11 @@ async def create_workspace_non_interactive(
|
|
|
730
678
|
async def create_workspace_interactive(
|
|
731
679
|
ctx: Context,
|
|
732
680
|
workspace_name: Optional[str],
|
|
733
|
-
starterkit: Optional[str],
|
|
734
681
|
user_token: str,
|
|
735
682
|
fork: bool,
|
|
736
683
|
organization_id: Optional[str],
|
|
737
684
|
organization_name: Optional[str],
|
|
738
685
|
):
|
|
739
|
-
if not starterkit and not is_ci_environment():
|
|
740
|
-
click.echo("\n")
|
|
741
|
-
starterkit = await ask_for_starterkit_interactively(ctx)
|
|
742
|
-
if not starterkit: # Cancelled by user
|
|
743
|
-
return
|
|
744
|
-
|
|
745
|
-
if starterkit == "blank": # 'blank' == empty workspace
|
|
746
|
-
starterkit = None
|
|
747
|
-
|
|
748
686
|
if not workspace_name:
|
|
749
687
|
"""Creates a workspace guiding the user"""
|
|
750
688
|
click.echo("\n")
|
|
@@ -758,7 +696,6 @@ async def create_workspace_interactive(
|
|
|
758
696
|
await create_workspace_non_interactive(
|
|
759
697
|
ctx,
|
|
760
698
|
workspace_name,
|
|
761
|
-
starterkit,
|
|
762
699
|
user_token,
|
|
763
700
|
fork,
|
|
764
701
|
organization_id,
|
|
@@ -303,11 +303,6 @@ class FeedbackManager:
|
|
|
303
303
|
error_pipe_ls_type = error_message("Invalid Format provided")
|
|
304
304
|
error_token_not_validate_in_any_region = error_message("Token not validated in any region")
|
|
305
305
|
error_not_authenticated = error_message("You are not authenticated, use 'tb auth -i' to authenticate yourself")
|
|
306
|
-
error_checking_templates = error_message("Unable to retrieve list of available starter kits")
|
|
307
|
-
error_starterkit_index = error_message(
|
|
308
|
-
"Error selecting starter kit '{starterkit_index}'. Select a valid index or 0 to cancel"
|
|
309
|
-
)
|
|
310
|
-
error_starterkit_name = error_message("Unknown starter kit '{starterkit_name}'")
|
|
311
306
|
error_missing_url_or_connector = error_message(
|
|
312
307
|
"Missing url, local path or --connector argument for append to datasource '{datasource}'"
|
|
313
308
|
)
|
|
@@ -943,9 +938,6 @@ STEP 3: ADD KEY TO SERVICE ACCOUNT
|
|
|
943
938
|
info_workspace_create_greeting = info_message(
|
|
944
939
|
"Please enter the name for your new workspace. Remember the name you choose must be unique, you can add a suffix in case of collision.\nYou can bypass this step by supplying it after the command."
|
|
945
940
|
)
|
|
946
|
-
info_create_ws_msg_template = info_message(
|
|
947
|
-
"Now let's pick a starter template! 🐣\nStarter template are pre-built data projects for different use cases, that you can use as a starting point and then build on top of that.\nYou can bypass this step by supplying a value for the --starter-kit option."
|
|
948
|
-
)
|
|
949
941
|
info_workspace_branch_create_greeting = info_message(
|
|
950
942
|
"Please enter the name for your new Branch. Remember the name you choose must be unique, you can add a suffix in case of collision.\nYou can bypass this step by supplying a value for the --name option."
|
|
951
943
|
)
|
|
@@ -91,7 +91,7 @@ async def get_tinybird_local_config(config_obj: Dict[str, Any], test: bool = Fal
|
|
|
91
91
|
|
|
92
92
|
if not ws:
|
|
93
93
|
await user_client.create_workspace(
|
|
94
|
-
ws_name,
|
|
94
|
+
ws_name, assign_to_organization_id=user_org_id, version="v1"
|
|
95
95
|
)
|
|
96
96
|
user_workspaces = requests.get(f"{TB_LOCAL_ADDRESS}/v1/user/workspaces?token={admin_token}").json()
|
|
97
97
|
ws = next((ws for ws in user_workspaces["workspaces"] if ws["name"] == ws_name), None)
|
|
@@ -20,7 +20,6 @@ from tinybird.tb.modules.common import (
|
|
|
20
20
|
get_current_main_workspace,
|
|
21
21
|
get_organizations_by_user,
|
|
22
22
|
get_user_token,
|
|
23
|
-
is_valid_starterkit,
|
|
24
23
|
switch_workspace,
|
|
25
24
|
try_update_config_with_remote,
|
|
26
25
|
)
|
|
@@ -133,8 +132,6 @@ async def workspace_current(ctx: Context):
|
|
|
133
132
|
|
|
134
133
|
@workspace.command(name="create", short_help="Create a new Workspace for your Tinybird user")
|
|
135
134
|
@click.argument("workspace_name", required=False)
|
|
136
|
-
@click.option("--starter_kit", "starter_kit", type=str, required=False, help="Use a Tinybird starter kit as a template")
|
|
137
|
-
@click.option("--starter-kit", "starter_kit", hidden=True)
|
|
138
135
|
@click.option("--user_token", is_flag=False, default=None, help="When passed, tb won't prompt asking for the token")
|
|
139
136
|
@click.option(
|
|
140
137
|
"--fork",
|
|
@@ -154,14 +151,10 @@ async def workspace_current(ctx: Context):
|
|
|
154
151
|
async def create_workspace(
|
|
155
152
|
ctx: Context,
|
|
156
153
|
workspace_name: str,
|
|
157
|
-
starter_kit: str,
|
|
158
154
|
user_token: Optional[str],
|
|
159
155
|
fork: bool,
|
|
160
156
|
organization_id: Optional[str],
|
|
161
157
|
) -> None:
|
|
162
|
-
if starter_kit and not await is_valid_starterkit(ctx, starter_kit):
|
|
163
|
-
raise CLIWorkspaceException(FeedbackManager.error_starterkit_name(starterkit_name=starter_kit))
|
|
164
|
-
|
|
165
158
|
config = CLIConfig.get_project_config()
|
|
166
159
|
|
|
167
160
|
user_token = await get_user_token(config, user_token)
|
|
@@ -177,11 +170,11 @@ async def create_workspace(
|
|
|
177
170
|
# process, creating an empty workspace
|
|
178
171
|
if workspace_name:
|
|
179
172
|
await create_workspace_non_interactive(
|
|
180
|
-
ctx, workspace_name,
|
|
173
|
+
ctx, workspace_name, user_token, fork, organization_id, organization_name
|
|
181
174
|
)
|
|
182
175
|
else:
|
|
183
176
|
await create_workspace_interactive(
|
|
184
|
-
ctx, workspace_name,
|
|
177
|
+
ctx, workspace_name, user_token, fork, organization_id, organization_name
|
|
185
178
|
)
|
|
186
179
|
|
|
187
180
|
|
|
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.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/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.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb/modules/datafile/parse_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/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
|
{tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/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
|
{tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev158 → tinybird-0.0.1.dev159}/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
|