Module modules.misc.messages
Functions
def load_art() ‑> str
-
Expand source code
def load_art() -> str: """Returns the launch screen ASCII art as a string.""" with open(ART_FILE, "r") as file: art = file.read() return art
Returns the launch screen ASCII art as a string.
def populate_fields(art: str, rocket_name: str, version: str) ‑> str
-
Expand source code
def populate_fields(art: str, rocket_name: str, version: str) -> str: """Returns the launch screen ASCII art with its fields populated as a string.""" art = art.replace(FIELDS["rocket name"], rocket_name) art = art.replace(FIELDS["version"], version) art = art.replace(FIELDS["date"], dt.date.today().strftime("%d %B, %Y")) return art
Returns the launch screen ASCII art with its fields populated as a string.
def print_cu_rocket(rocket_name: str, version: str) ‑> None
-
Expand source code
def print_cu_rocket(rocket_name: str, version: str) -> None: """Prints the CUInSpace rocket ASCII art with information about the rocket and software version.""" art = load_art() art = populate_fields(art, rocket_name, version) print(art) sleep(0.1)
Prints the CUInSpace rocket ASCII art with information about the rocket and software version.