utils
Utilities for displaying and managing runtime information.
def display_runtimes(runtimes: list[dict[str, typing.Any]]) -> None
Display a list of Runtimes in the console.
Parameters
-
runtimes : list[dict[str, Any]]
List of runtime dictionaries to display.
def get_default_credits_limit(reservations: list[dict[str, typing.Any]], credits: dict[str, typing.Any]) -> float
Get the default credits limit based on the available credits and reservations.
Parameters
-
reservations : list[dict[str, Any]]
List of current reservations.
-
credits : dict[str, Any]
Current credits information.
Returns
-
float
The calculated default credits limit.