tinybird 0.0.1.dev274__py3-none-any.whl → 0.0.1.dev275__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.

@@ -598,6 +598,12 @@ Ready? """
598
598
  warning_confirm_delete_branch = prompt_message("Do you want to remove '{branch}' Branch?")
599
599
  warning_confirm_delete_release = prompt_message("Do you want to remove Release {semver}?")
600
600
  warning_confirm_rollback_release = prompt_message("Do you want to rollback current Release {semver} to {rollback}?")
601
+ warning_confirm_on_demand_compute = warning_message(
602
+ "On-demand compute will incur additional costs beyond your regular usage.\n"
603
+ "This feature uses dedicated compute resources that are billed separately.\n"
604
+ "You can read more about the pricing at https://www.tinybird.co/docs/classic/work-with-data/process-and-copy/materialized-views#compute-compute-separation-for-populates\n\n"
605
+ "Do you want to proceed with on-demand compute?"
606
+ )
601
607
 
602
608
  warning_confirm_delete_token = prompt_message("Do you want to delete Token {token}?")
603
609
  warning_confirm_refresh_token = prompt_message("Do you want to refresh Token {token}?")
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.dev274'
8
- __revision__ = 'c3d62b9'
7
+ __version__ = '0.0.1.dev275'
8
+ __revision__ = '0c15fc3'
@@ -149,7 +149,7 @@ def cli(
149
149
  if user_token:
150
150
  config_temp.set_user_token(user_token)
151
151
  if token or host or user_token:
152
- try_update_config_with_remote(config_temp, auto_persist=False, raise_on_errors=False)
152
+ try_update_config_with_remote(config_temp, auto_persist=True, raise_on_errors=False)
153
153
 
154
154
  # Overwrite token and host with env vars manually, without resorting to click.
155
155
  #
@@ -19,11 +19,24 @@ from tinybird.tb.modules.project import Project
19
19
 
20
20
 
21
21
  # TODO(eclbg): This should eventually end up in client.py, but we're not using it here yet.
22
- def api_fetch(url: str, headers: dict) -> dict:
23
- r = requests.get(url, headers=headers)
24
- if r.status_code == 200:
25
- logging.debug(json.dumps(r.json(), indent=2))
26
- return r.json()
22
+ def api_fetch(url: str, headers: dict, max_retries: int = 3, backoff_factor: float = 0.5) -> dict:
23
+ retries = 0
24
+ while retries <= max_retries:
25
+ try:
26
+ r = requests.get(url, headers=headers)
27
+ if r.status_code == 200:
28
+ logging.debug(json.dumps(r.json(), indent=2))
29
+ return r.json()
30
+ else:
31
+ raise Exception(f"Request failed with status code {r.status_code}")
32
+ except Exception:
33
+ retries += 1
34
+ if retries > max_retries:
35
+ break
36
+
37
+ wait_time = backoff_factor * (2 ** (retries - 1))
38
+ time.sleep(wait_time)
39
+
27
40
  # Try to parse and print the error from the response
28
41
  try:
29
42
  result = r.json()
@@ -35,6 +48,7 @@ def api_fetch(url: str, headers: dict) -> dict:
35
48
  message = "Error parsing response from API"
36
49
  click.echo(FeedbackManager.error(message=message))
37
50
  sys_exit("deployment_error", message)
51
+
38
52
  return {}
39
53
 
40
54
 
@@ -48,6 +62,7 @@ def api_post(
48
62
  if r.status_code < 300:
49
63
  logging.debug(json.dumps(r.json(), indent=2))
50
64
  return r.json()
65
+
51
66
  # Try to parse and print the error from the response
52
67
  try:
53
68
  result = r.json()
@@ -61,6 +76,7 @@ def api_post(
61
76
  message = "Error parsing response from API"
62
77
  click.echo(FeedbackManager.error(message=message))
63
78
  sys_exit("deployment_error", message)
79
+
64
80
  return {}
65
81
 
66
82
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev274
3
+ Version: 0.0.1.dev275
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -1,7 +1,7 @@
1
1
  tinybird/connectors.py,sha256=7Gjms7b5MAaBFGi3xytsJurCylprONpFcYrzp4Fw2Rc,15241
2
2
  tinybird/context.py,sha256=FfqYfrGX_I7PKGTQo93utaKPDNVYWelg4Hsp3evX5wM,1291
3
3
  tinybird/datatypes.py,sha256=r4WCvspmrXTJHiPjjyOTiZyZl31FO3Ynkwq4LQsYm6E,11059
4
- tinybird/feedback_manager.py,sha256=1INQFfRfuMCb9lfB8KNf4r6qC2khW568hoHjtk-wshI,69305
4
+ tinybird/feedback_manager.py,sha256=XY8d83pRlq-LH7xHMApkaEebfXEWLjDzrGe1prpcTHE,69778
5
5
  tinybird/git_settings.py,sha256=Sw_8rGmribEFJ4Z_6idrVytxpFYk7ez8ei0qHULzs3E,3934
6
6
  tinybird/prompts.py,sha256=HoDv9TxPiP8v2XoGTWYxP133dK9CEbXVv4XE5IT339c,45483
7
7
  tinybird/sql.py,sha256=BufnOgclQokDyihtuXesOwHBsebN6wRXIxO5wKRkOwE,48299
@@ -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=Ua6pj01kXp3GMMZoliQZuqwIh1eCDW2n3F6DKULSfMk,247
20
+ tinybird/tb/__cli__.py,sha256=F6DuvogeaLQfXF18e87QuhWLJgcSX2Sq60BJKK8XzF8,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=IQRaInDjOwr9Fzaz3_xXc3aUGqh94tM2lew7IZbB9eM,53733
@@ -25,7 +25,7 @@ tinybird/tb/config.py,sha256=mhMTGnMB5KcxGoh3dewIr2Jjsa6pHE183gCPAQWyp6o,3973
25
25
  tinybird/tb/modules/build.py,sha256=efD-vamK1NPaDo9R86Hn8be2DYoW0Hh5bZiH7knK5dk,7790
26
26
  tinybird/tb/modules/build_common.py,sha256=dthlaDn_CuwZnedQcUi7iIdDoHWfSbbbGQwiDgNcmC0,13062
27
27
  tinybird/tb/modules/cicd.py,sha256=0KLKccha9IP749QvlXBmzdWv1On3mFwMY4DUcJlBxiE,7326
28
- tinybird/tb/modules/cli.py,sha256=OC4jqGciUAgPQLgmo4ztjiQTOiGzqX3yILfxjbZ-CIs,16686
28
+ tinybird/tb/modules/cli.py,sha256=4jNxb2EMimguzyGdKlJc0qyNhDaJ05ph0bTBwyj_mVs,16685
29
29
  tinybird/tb/modules/common.py,sha256=tj6DR2yOqMMQ0PILwFGXmMogxdrbQCgj36HdSM611rs,82657
30
30
  tinybird/tb/modules/config.py,sha256=gK7rgaWTDd4ZKCrNEg_Uemr26EQjqWt6TjyQKujxOws,11462
31
31
  tinybird/tb/modules/connection.py,sha256=axp8Fny1_4PSLJGN4UF6WygyRbQtM3Lbt6thxHKTxzw,17790
@@ -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=v0layOmG0IMnuXc3RT39mpGfa5M8yPlrL9F089fJFCo,15964
36
- tinybird/tb/modules/deployment_common.py,sha256=gP2jYdRw8aehfKIHVQaS3DoS7sA43I-sQkLykcL83jE,19193
36
+ tinybird/tb/modules/deployment_common.py,sha256=2NJgoONEfhFpGIPeE_wULDuUkomxPsIu2gbHgL1qcw8,19653
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
@@ -117,8 +117,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
117
117
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
118
118
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
119
119
  tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
120
- tinybird-0.0.1.dev274.dist-info/METADATA,sha256=AQKOg2W-tA_h-i8h1vfz2fzxThxcaz-LKFJmBB-KJXU,1763
121
- tinybird-0.0.1.dev274.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
122
- tinybird-0.0.1.dev274.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
123
- tinybird-0.0.1.dev274.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
124
- tinybird-0.0.1.dev274.dist-info/RECORD,,
120
+ tinybird-0.0.1.dev275.dist-info/METADATA,sha256=94PPiZAh3Vx9P9w5zSsse5_Dr9KV22caI0t7iM0hNsE,1763
121
+ tinybird-0.0.1.dev275.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
122
+ tinybird-0.0.1.dev275.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
123
+ tinybird-0.0.1.dev275.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
124
+ tinybird-0.0.1.dev275.dist-info/RECORD,,