tinybird 0.0.1.dev263__py3-none-any.whl → 0.0.1.dev264__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/forward/commands'
5
5
  __author__ = 'Tinybird'
6
6
  __author_email__ = 'support@tinybird.co'
7
- __version__ = '0.0.1.dev263'
8
- __revision__ = '1d13423'
7
+ __version__ = '0.0.1.dev264'
8
+ __revision__ = '5cf9a41'
@@ -349,12 +349,31 @@ def create_deployment(
349
349
  promote_deployment(client.host, HEADERS, wait=wait)
350
350
 
351
351
 
352
+ def _build_data_movement_message(kind: str, source_mv_name: Optional[str]) -> str:
353
+ if kind == "backfill_with_mv_queries":
354
+ return f"Using Materialized Pipe {source_mv_name or ''}"
355
+ elif kind == "backfill_with_forward_query":
356
+ return "From live deployment using Forward Query"
357
+ else:
358
+ return ""
359
+
360
+
352
361
  def print_changes(result: dict, project: Project) -> None:
353
362
  deployment = result.get("deployment", {})
354
363
  resources_columns = ["status", "name", "type", "path"]
355
364
  resources: list[list[Union[str, None]]] = []
356
365
  tokens_columns = ["Change", "Token name", "Added permissions", "Removed permissions"]
357
366
  tokens: list[Tuple[str, str, str, str]] = []
367
+ data_movements_columns = ["Datasource", "Backfill type"]
368
+ data_movements = deployment.get("data_movements")
369
+ if data_movements is not None:
370
+ data_movements = [
371
+ (
372
+ dm.get("datasource_name"),
373
+ _build_data_movement_message(dm.get("kind"), dm.get("source_mv_name")),
374
+ )
375
+ for dm in data_movements
376
+ ]
358
377
 
359
378
  for ds in deployment.get("new_datasource_names", []):
360
379
  resources.append(["new", ds, "datasource", project.get_resource_path(ds, "datasource")])
@@ -415,3 +434,9 @@ def print_changes(result: dict, project: Project) -> None:
415
434
  echo_safe_humanfriendly_tables_format_smart_table(tokens, column_names=tokens_columns)
416
435
  else:
417
436
  click.echo(FeedbackManager.gray(message="* No changes in tokens to be deployed"))
437
+ if data_movements is not None:
438
+ if data_movements:
439
+ click.echo(FeedbackManager.info(message="\n Data that will be copied with this deployment:"))
440
+ echo_safe_humanfriendly_tables_format_smart_table(data_movements, column_names=data_movements_columns)
441
+ else:
442
+ click.echo(FeedbackManager.gray(message="* No data will be copied with this deployment"))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev263
3
+ Version: 0.0.1.dev264
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -17,7 +17,7 @@ tinybird/datafile/exceptions.py,sha256=8rw2umdZjtby85QbuRKFO5ETz_eRHwUY5l7eHsy1w
17
17
  tinybird/datafile/parse_connection.py,sha256=tRyn2Rpr1TeWet5BXmMoQgaotbGdYep1qiTak_OqC5E,1825
18
18
  tinybird/datafile/parse_datasource.py,sha256=ssW8QeFSgglVFi3sDZj_HgkJiTJ2069v2JgqnH3CkDE,1825
19
19
  tinybird/datafile/parse_pipe.py,sha256=xf4m0Tw44QWJzHzAm7Z7FwUoUUtr7noMYjU1NiWnX0k,3880
20
- tinybird/tb/__cli__.py,sha256=TzjK12wvsWtuLOWcJjdir-py6u6IeFKVGg35GyNA3z4,247
20
+ tinybird/tb/__cli__.py,sha256=1Q1Mk8PoldzfuJEf_f-VHn7VSe0wfdgeKCPK_RcPvag,247
21
21
  tinybird/tb/check_pypi.py,sha256=Gp0HkHHDFMSDL6nxKlOY51z7z1Uv-2LRexNTZSHHGmM,552
22
22
  tinybird/tb/cli.py,sha256=FdDFEIayjmsZEVsVSSvRiVYn_FHOVg_zWQzchnzfWho,1008
23
23
  tinybird/tb/client.py,sha256=pJbdkWMXGAqKseNAvdsRRnl_c7I-DCMB0dWCQnG82nU,54146
@@ -33,7 +33,7 @@ tinybird/tb/modules/copy.py,sha256=dPZkcIDvxjJrlQUIvToO0vsEEEs4EYumbNV77-BzNoU,4
33
33
  tinybird/tb/modules/create.py,sha256=pJxHXG69c9Z_21s-7VuJ3RZOF_nJU51LEwiAkvI3dZY,23251
34
34
  tinybird/tb/modules/datasource.py,sha256=pae-ENeHYIF1HHYRSOziFC-2FPLUFa0KS60YpdlKCS8,41725
35
35
  tinybird/tb/modules/deployment.py,sha256=EDEVOqFk5fp0fvvs2jV0mT5POFd-i_8uZIUREwzAbEk,13199
36
- tinybird/tb/modules/deployment_common.py,sha256=CswUMfp5dW0NgiuP_ZGORqvqooHFYU2ZJaxOcpRFDT0,17866
36
+ tinybird/tb/modules/deployment_common.py,sha256=g-2wnR63tlxmTObs6xRjZRgOOaX0fFn3Jq4x21qI6aw,18975
37
37
  tinybird/tb/modules/deprecations.py,sha256=rrszC1f_JJeJ8mUxGoCxckQTJFBCR8wREf4XXXN-PRc,4507
38
38
  tinybird/tb/modules/dev_server.py,sha256=57FCKuWpErwYUYgHspYDkLWEm9F4pbvVOtMrFXX1fVU,10129
39
39
  tinybird/tb/modules/endpoint.py,sha256=ksRj6mfDb9Xv63PhTkV_uKSosgysHElqagg3RTt21Do,11958
@@ -116,8 +116,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
116
116
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
117
117
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
118
118
  tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
119
- tinybird-0.0.1.dev263.dist-info/METADATA,sha256=CPGH7Rh1ytBwX3FCTvtbnd4WFYcslMn-MVrbdOqAEF8,1733
120
- tinybird-0.0.1.dev263.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
121
- tinybird-0.0.1.dev263.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
122
- tinybird-0.0.1.dev263.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
123
- tinybird-0.0.1.dev263.dist-info/RECORD,,
119
+ tinybird-0.0.1.dev264.dist-info/METADATA,sha256=PCl2AWV403ysmvj35_eYngYE_1wfUNqlUlBN5mxep5M,1733
120
+ tinybird-0.0.1.dev264.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
121
+ tinybird-0.0.1.dev264.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
122
+ tinybird-0.0.1.dev264.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
123
+ tinybird-0.0.1.dev264.dist-info/RECORD,,