tinybird-cli 3.4.1.dev8__py3-none-any.whl → 3.4.1.dev10__py3-none-any.whl

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.
tinybird/__cli__.py CHANGED
@@ -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__ = '3.4.1.dev8'
8
- __revision__ = '861be8e'
7
+ __version__ = '3.4.1.dev10'
8
+ __revision__ = 'a67ec2d'
tinybird/datafile.py CHANGED
@@ -1,6 +1,7 @@
1
1
  """
2
2
  Datafile is like a Dockerfile but to describe ETL processes
3
3
  """
4
+
4
5
  from asyncio import Semaphore, gather
5
6
 
6
7
  from requests import Response
@@ -2591,9 +2592,11 @@ async def new_pipe(
2591
2592
  failfast=tests_failfast,
2592
2593
  validate_processed_bytes=tests_validate_processed_bytes,
2593
2594
  ignore_order=tests_ignore_order,
2594
- token_for_requests_to_check=await get_token_from_main_branch(tb_client)
2595
- if not tests_check_requests_from_branch
2596
- else None,
2595
+ token_for_requests_to_check=(
2596
+ await get_token_from_main_branch(tb_client)
2597
+ if not tests_check_requests_from_branch
2598
+ else None
2599
+ ),
2597
2600
  current_pipe=current_pipe,
2598
2601
  )
2599
2602
  else:
@@ -2747,7 +2750,7 @@ async def new_pipe(
2747
2750
  FeedbackManager.error_setting_copy_node(node=copy_node.get("name"), pipe=p["name"], error=str(e))
2748
2751
  )
2749
2752
 
2750
- if p["tokens"] and not skip_tokens and not as_standard and data.get("type") == "endpoint":
2753
+ if p["tokens"] and not skip_tokens and not as_standard and data.get("type") in ["endpoint", "copy"]:
2751
2754
  # search for token with specified name and adds it if not found or adds permissions to it
2752
2755
  t = None
2753
2756
  for tk in p["tokens"]:
@@ -2774,7 +2777,9 @@ async def new_pipe(
2774
2777
  token = r["token"] # type: ignore
2775
2778
  except Exception as e:
2776
2779
  raise click.ClickException(FeedbackManager.error_creating_pipe(error=e))
2777
- click.echo(FeedbackManager.success_test_endpoint(host=host, pipe=p["name"], token=token))
2780
+
2781
+ if data.get("type") == "endpoint":
2782
+ click.echo(FeedbackManager.success_test_endpoint(host=host, pipe=p["name"], token=token))
2778
2783
 
2779
2784
 
2780
2785
  async def share_and_unshare_datasource(
@@ -3993,9 +3998,11 @@ async def folder_push(
3993
3998
  if not run_tests:
3994
3999
  click.echo(
3995
4000
  FeedbackManager.success_create(
3996
- name=name
3997
- if to_run[name]["version"] is None
3998
- else f'{name}__v{to_run[name]["version"]}'
4001
+ name=(
4002
+ name
4003
+ if to_run[name]["version"] is None
4004
+ else f'{name}__v{to_run[name]["version"]}'
4005
+ )
3999
4006
  )
4000
4007
  )
4001
4008
  except Exception as e:
@@ -625,9 +625,7 @@ async def connection_create_gcs(
625
625
  click.echo(FeedbackManager.success_connection_file_created(name=conn_file_name))
626
626
 
627
627
 
628
- @connection_create.command(
629
- name="s3_iamrole", short_help="Creates a AWS S3 connection using IAM role authentication", hidden=True
630
- )
628
+ @connection_create.command(name="s3_iamrole", short_help="Creates a AWS S3 connection using IAM role authentication")
631
629
  @click.option("--connection-name", default=None, help="The name of the connection to identify it in Tinybird")
632
630
  @click.option("--role-arn", default=None, help="The ARN of the IAM role to use for the connection")
633
631
  @click.option("--region", default=None, help="The Amazon S3 region where the bucket is located")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinybird-cli
3
- Version: 3.4.1.dev8
3
+ Version: 3.4.1.dev10
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -52,7 +52,17 @@ Changelog
52
52
 
53
53
  ---------
54
54
 
55
- 3.4.1.dev7
55
+ 3.4.1dev10
56
+ ************
57
+
58
+ - `Added` Token management in Copy pipes datafiles
59
+
60
+ 3.4.1.dev9
61
+ ************
62
+
63
+ - `Changed` `tb connection create` now supports `s3_iamrole` as service type
64
+
65
+ 3.4.1.dev8
56
66
  ************
57
67
 
58
68
  - `Changed` error message when trying to modify a datasource without bumping the major semver version to add a link to the documentation.
@@ -1,11 +1,11 @@
1
- tinybird/__cli__.py,sha256=tWBeIk-aNsgwL5MAmDNIzalThOn5HssyyjpZia16uHM,254
1
+ tinybird/__cli__.py,sha256=wF3ttg_o8WkGgTBtpvLex_3q-9ZBJ662vlHsll3IkxY,255
2
2
  tinybird/check_pypi.py,sha256=_4NkharLyR_ELrAdit-ftqIWvOf7jZNPt3i76frlo9g,975
3
3
  tinybird/client.py,sha256=HbTicwXGErvAMCFj7o9X7aGKxI0WuuTKOr6tf-0jYOA,46575
4
4
  tinybird/config.py,sha256=E0jDwbFD1zhdijNhtF8fg6mqIyKbZ8xpNPP_3n2PFpE,2003
5
5
  tinybird/connector_settings.py,sha256=js2LvL8bAv5PegDICWB6EQ-LhqhAQU9VPApU1dW0vyA,6258
6
6
  tinybird/connectors.py,sha256=lkpVSUmSuViEZBa4QjTK7YmPHUop0a5UFoTrSmlVq6k,15244
7
7
  tinybird/context.py,sha256=BlMsbeg5jTjTtJmcyJBCpjQE74sYk_CLBeHorSUer1M,913
8
- tinybird/datafile.py,sha256=N_cdVvtvMEbUPL09_lGQhi1v_FwYSxTvK3YpKXGUjHU,209075
8
+ tinybird/datafile.py,sha256=TqE0Jb4ARlWr9Wp6eTr4ikyP168va12jhPn798oI2es,209286
9
9
  tinybird/datatypes.py,sha256=adYOQBTyfeBGVINIlaRex_81gTQQuqF2M9VTQpzq1H0,7060
10
10
  tinybird/feedback_manager.py,sha256=ltb75e1zPo-HrDS3sdLZ7447Pv_NkAf3WNFs7vuq7Wc,58017
11
11
  tinybird/git_settings.py,sha256=vu8sWb3TAXeM8Tqy27aR0el8MnPm7kqQzTRV76xB0ro,4707
@@ -25,7 +25,7 @@ tinybird/tb_cli_modules/cicd.py,sha256=m_l1kOk5n-9fd_AeWcWYW3tNUQbgM6eZV7LR2hbJ4
25
25
  tinybird/tb_cli_modules/cli.py,sha256=p5yRroZWWkkJj3UQEYnXCvC4tlWdimpVMR_FroMlbzk,64518
26
26
  tinybird/tb_cli_modules/common.py,sha256=SpwRhjrMhAWUdHDVgI3ZUbY64gf1nZWCY9H8lZPegaM,78344
27
27
  tinybird/tb_cli_modules/config.py,sha256=6NTgIdwf0X132A1j6G_YrdPep87ymZ9b5pABabKLzh4,11484
28
- tinybird/tb_cli_modules/connection.py,sha256=lFi2FDslMRUQTy4N-rWIEx8HJ42QGlAMHsrdXM2w0Cc,28126
28
+ tinybird/tb_cli_modules/connection.py,sha256=CLnAacmugiChcQsj6Hh-nk1BHi_GUDHdJ0mGZ3gSlYY,28107
29
29
  tinybird/tb_cli_modules/datasource.py,sha256=JyoiqPbfLnx37Ti2UdVJivr3rCtCVZ4lBMN_w8YelAE,31944
30
30
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
31
31
  tinybird/tb_cli_modules/job.py,sha256=AG69LPb9MbobA1awwJFZJvxqarDKfRlsBjw2V1zvYqc,2964
@@ -38,8 +38,8 @@ tinybird/tb_cli_modules/workspace.py,sha256=NDHINzW3SBo8FcWH8Bx-DCeUXQ8YUJX6FW8c
38
38
  tinybird/tb_cli_modules/workspace_members.py,sha256=3HzY43218fb35ZM81mtkwDQe7gAAf1zEFY6kIEhGvgE,8268
39
39
  tinybird/tb_cli_modules/tinyunit/tinyunit.py,sha256=0dYYmZMMJVubxSPls2e_a-fqtUYvgLfu2B0xwLfkbHw,11667
40
40
  tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py,sha256=j92za8QbXrv4eIPjKBZPn9ghR-nYQ2wZZ88MeXyMWXE,1868
41
- tinybird_cli-3.4.1.dev8.dist-info/METADATA,sha256=i7IiVee69TYMMOYRsMU8miBaX3xZ4RnD61_8Yi7rveg,68504
42
- tinybird_cli-3.4.1.dev8.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
43
- tinybird_cli-3.4.1.dev8.dist-info/entry_points.txt,sha256=PKPKuPmA4IfJYnCFHHUiw-aAWZuBomFvwCklv1OyCjE,43
44
- tinybird_cli-3.4.1.dev8.dist-info/top_level.txt,sha256=pgw6AzERHBcW3YTi2PW4arjxLkulk2msOz_SomfOEuc,45
45
- tinybird_cli-3.4.1.dev8.dist-info/RECORD,,
41
+ tinybird_cli-3.4.1.dev10.dist-info/METADATA,sha256=RtBZ00XqZ1eFyVqRBB-pf_SQLn7lXIuKIwVnRn785YE,68685
42
+ tinybird_cli-3.4.1.dev10.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
43
+ tinybird_cli-3.4.1.dev10.dist-info/entry_points.txt,sha256=PKPKuPmA4IfJYnCFHHUiw-aAWZuBomFvwCklv1OyCjE,43
44
+ tinybird_cli-3.4.1.dev10.dist-info/top_level.txt,sha256=pgw6AzERHBcW3YTi2PW4arjxLkulk2msOz_SomfOEuc,45
45
+ tinybird_cli-3.4.1.dev10.dist-info/RECORD,,