tinybird 0.0.1.dev128__py3-none-any.whl → 0.0.1.dev130__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.

Potentially problematic release.


This version of tinybird might be problematic. Click here for more details.

tinybird/tb/__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__ = '0.0.1.dev128'
8
- __revision__ = '1631c37'
7
+ __version__ = '0.0.1.dev130'
8
+ __revision__ = '6134043'
@@ -86,7 +86,7 @@ SENSITIVE_CONNECTOR_SETTINGS = {
86
86
  "gcscheduler_region",
87
87
  ],
88
88
  DataConnectorType.GCLOUD_STORAGE_HMAC: ["gcs_hmac_secret"],
89
- DataConnectorType.AMAZON_S3: ["s3_secret_access_key"],
89
+ DataConnectorType.AMAZON_S3: ["s3_secret_access_key", "s3_secret"],
90
90
  DataConnectorType.AMAZON_S3_IAMROLE: ["s3_iamrole_arn"],
91
91
  DataConnectorType.AMAZON_DYNAMODB: ["dynamodb_iamrole_arn"],
92
92
  }
@@ -1544,6 +1544,8 @@ def parse(
1544
1544
  "import_service": assign_var("import_service"),
1545
1545
  "s3_region": assign_var("s3_region"),
1546
1546
  "s3_arn": assign_var("s3_arn"),
1547
+ "s3_access_key": assign_var("s3_access_key"),
1548
+ "s3_secret": assign_var("s3_secret"),
1547
1549
  "import_connection_name": assign_var("import_connection_name"),
1548
1550
  "import_schedule": assign_var("import_schedule"),
1549
1551
  "import_strategy": assign_var("import_strategy"),
@@ -3,6 +3,7 @@
3
3
  # - If it makes sense and only when strictly necessary, you can create utility functions in this file.
4
4
  # - But please, **do not** interleave utility functions and command definitions.
5
5
 
6
+ import asyncio
6
7
  import difflib
7
8
  import glob
8
9
  import os
@@ -211,8 +212,7 @@ async def test_update(ctx: click.Context, pipe: str) -> None:
211
212
  )
212
213
  @click.argument("name", nargs=-1)
213
214
  @click.pass_context
214
- @coro
215
- async def run_tests(ctx: click.Context, name: Tuple[str, ...]) -> None:
215
+ def run_tests(ctx: click.Context, name: Tuple[str, ...]) -> None:
216
216
  client: TinyB = ctx.ensure_object(dict)["client"]
217
217
  project: Project = ctx.ensure_object(dict)["project"]
218
218
  click.echo(FeedbackManager.highlight(message="\n» Building project"))
@@ -226,7 +226,7 @@ async def run_tests(ctx: click.Context, name: Tuple[str, ...]) -> None:
226
226
  endpoints if len(endpoints) > 0 else glob.glob(f"{project.path}/tests/**/*.y*ml", recursive=True)
227
227
  )
228
228
 
229
- async def run_test(test_file):
229
+ def run_test(test_file):
230
230
  test_file_path = Path(test_file)
231
231
  click.echo(FeedbackManager.info(message=f"* {test_file_path.stem}{test_file_path.suffix}"))
232
232
  test_file_content = yaml.safe_load(test_file_path.read_text())
@@ -236,7 +236,9 @@ async def run_tests(ctx: click.Context, name: Tuple[str, ...]) -> None:
236
236
  test_params = test["parameters"].split("?")[1] if "?" in test["parameters"] else test["parameters"]
237
237
  response = None
238
238
  try:
239
- response = await get_pipe_data(client, pipe_name=test_file_path.stem, test_params=test_params)
239
+ response = asyncio.run(
240
+ get_pipe_data(client, pipe_name=test_file_path.stem, test_params=test_params)
241
+ )
240
242
  except Exception:
241
243
  continue
242
244
 
@@ -267,7 +269,7 @@ async def run_tests(ctx: click.Context, name: Tuple[str, ...]) -> None:
267
269
  test_count = len(test_files)
268
270
 
269
271
  for test_file in test_files:
270
- if not await run_test(test_file):
272
+ if not run_test(test_file):
271
273
  failed_tests_count += 1
272
274
 
273
275
  if failed_tests_count:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev128
3
+ Version: 0.0.1.dev130
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -12,7 +12,7 @@ tinybird/syncasync.py,sha256=IPnOx6lMbf9SNddN1eBtssg8vCLHMt76SuZ6YNYm-Yk,27761
12
12
  tinybird/tornado_template.py,sha256=jjNVDMnkYFWXflmT8KU_Ssbo5vR8KQq3EJMk5vYgXRw,41959
13
13
  tinybird/ch_utils/constants.py,sha256=aYvg2C_WxYWsnqPdZB1ZFoIr8ZY-XjUXYyHKE9Ansj0,3890
14
14
  tinybird/ch_utils/engine.py,sha256=BZuPM7MFS7vaEKK5tOMR2bwSAgJudPrJt27uVEwZmTY,40512
15
- tinybird/tb/__cli__.py,sha256=AD638EDKr26bDWUR_Lb4JdbCkcF0rHLln23P0QeUWCo,252
15
+ tinybird/tb/__cli__.py,sha256=-AtcXiCw4SKisvTlgGN0aOq4Rv2DwqyD7CnyzPOBK5w,252
16
16
  tinybird/tb/cli.py,sha256=Xw5EhwCQu6Xx55DzoJsZJODdi7tkA391mii-xgGnpEU,1066
17
17
  tinybird/tb/client.py,sha256=oa0pR46WvzDoqpyaDU-lRu33I0cZhtZVDqDQz2RHMWQ,56085
18
18
  tinybird/tb/config.py,sha256=iIia7F67UI9p51Ja4jALonyttIi4eH7PwOn3HvcvOb8,4008
@@ -22,7 +22,7 @@ tinybird/tb/modules/cicd.py,sha256=A7zJZF9HkJ6NPokplgNjmefMrpUlRbFxBbjMZhq5OTI,7
22
22
  tinybird/tb/modules/cli.py,sha256=Y_5hu9xwyTIZw4bQoe0MYLnRIzmR7hUjql_oZBxd4Qg,13407
23
23
  tinybird/tb/modules/common.py,sha256=bdKNjHtQKcsZFyZIsLY8vEoTD0Xf-1UNBnh1pAyWPZU,83456
24
24
  tinybird/tb/modules/config.py,sha256=ziqW_t_mRVvWOd85VoB4vKyvgMkEfpXDf9H4v38p2xc,11422
25
- tinybird/tb/modules/connection.py,sha256=ctrcZCksfBKJHv3pMoDzsmgmx-rlkfeyn2GkxM0Zlw0,6892
25
+ tinybird/tb/modules/connection.py,sha256=7qJGhTG0U__ZhY2HBWP8F1Z6tXrxwgAU-eOup6pXhhU,6905
26
26
  tinybird/tb/modules/copy.py,sha256=2Mm4FWKehOG7CoOhiF1m9UZJgJn0W1_cMolqju8ONYg,5805
27
27
  tinybird/tb/modules/create.py,sha256=PDAuzeBiqN9q7GY2p4zcMWDojdNjz6_aJgI5dxR-FVM,16701
28
28
  tinybird/tb/modules/datasource.py,sha256=XvY7iTRefG9iEBLQkqBSF47bK-CrLu2AzDnigGI2mSc,16925
@@ -49,7 +49,7 @@ tinybird/tb/modules/shell.py,sha256=cvT0EKpnSRHfuo3avykBRMsCwLBqmzSR7sNUdbQ6lXA,
49
49
  tinybird/tb/modules/table.py,sha256=4XrtjM-N0zfNtxVkbvLDQQazno1EPXnxTyo7llivfXk,11035
50
50
  tinybird/tb/modules/tag.py,sha256=anPmMUBc-TbFovlpFi8GPkKA18y7Y0GczMsMms5TZsU,3502
51
51
  tinybird/tb/modules/telemetry.py,sha256=FcFw_70-0SyC_2BdToF_sjVpXpMD7i00fCm2SO4cHx8,11397
52
- tinybird/tb/modules/test.py,sha256=qO0_sMaAwqtYBqFRVG5X3XkRTroIa-a_FEzh36nDn1E,11711
52
+ tinybird/tb/modules/test.py,sha256=yJcRtlhQPRXNbifj36v7Lpr1gElL2x7Ke4O5vFazX5o,11755
53
53
  tinybird/tb/modules/token.py,sha256=2fmKwu10_M0pqs6YmJVeILR9ZQB0ejRAET86agASbKM,13488
54
54
  tinybird/tb/modules/watch.py,sha256=_92co0BjTikQuy7MbHr4TDu9A75QdHsrAO8v7DlYLg4,8898
55
55
  tinybird/tb/modules/workspace.py,sha256=SlK08psp0tu5t_URHyIczm696buW6KD6FPs9Lg1aNRE,6614
@@ -58,7 +58,7 @@ tinybird/tb/modules/datafile/build.py,sha256=d_h3pRFDPFrDKGhpFx2iejY25GuB2k8yfNo
58
58
  tinybird/tb/modules/datafile/build_common.py,sha256=LU24kAQmxDJIyoIapDaYG-SU3P4FrMG9UBf8m9PgVSI,4565
59
59
  tinybird/tb/modules/datafile/build_datasource.py,sha256=nXEQ0qHdq2ai7jJTv8H2d7eeDPBYzLn8VY7zMtOYb8M,17382
60
60
  tinybird/tb/modules/datafile/build_pipe.py,sha256=6Cwjf3BKEF3-oQ9PipsQfK-Z43nSwtA4qJAUoysI7Uc,11385
61
- tinybird/tb/modules/datafile/common.py,sha256=FXwHfCknNgZnMGaiju4u7ODYnXticP5cVagxor5F7Dw,85442
61
+ tinybird/tb/modules/datafile/common.py,sha256=R22oaipDTFOHlkvzy26RFsOVFlSVMQ7RR63C0bs6VeU,85542
62
62
  tinybird/tb/modules/datafile/diff.py,sha256=MTmj53RYjER4neLgWVjabn-FKVFgh8h8uYiBo55lFQg,6757
63
63
  tinybird/tb/modules/datafile/exceptions.py,sha256=8rw2umdZjtby85QbuRKFO5ETz_eRHwUY5l7eHsy1wnI,556
64
64
  tinybird/tb/modules/datafile/fixture.py,sha256=DrRWivcvo_1rn7LlVUnHcXccdgx9yVj63mzBkUwCzk8,1420
@@ -78,8 +78,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
78
78
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
79
79
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
80
80
  tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
81
- tinybird-0.0.1.dev128.dist-info/METADATA,sha256=1rm0QBnLwJtL4e--PnGpcwbM-MJejj23ZjD0jFinX_Y,1612
82
- tinybird-0.0.1.dev128.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
83
- tinybird-0.0.1.dev128.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
84
- tinybird-0.0.1.dev128.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
85
- tinybird-0.0.1.dev128.dist-info/RECORD,,
81
+ tinybird-0.0.1.dev130.dist-info/METADATA,sha256=LS-tfAXGt_ltN6df38UOgl_52cY-n-utbyOzLvMbLSM,1612
82
+ tinybird-0.0.1.dev130.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
83
+ tinybird-0.0.1.dev130.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
84
+ tinybird-0.0.1.dev130.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
85
+ tinybird-0.0.1.dev130.dist-info/RECORD,,