text_advanced package#

Submodules#

text_advanced.format module#

class text_advanced.format.FormatStr#

Bases: TypedDict

color: Color | None = None#
style: Style | None = None#
value: str#
class text_advanced.format.TerminalDictFormat(dicts: list[FormatStr])#

Bases: object

get_formatted()#
get_values()#
print_formatted()#
print_values()#
class text_advanced.format.TerminalStrFormat(string: str)#

Bases: object

get_formatted()#
get_values()#
print_formatted()#
print_values()#

text_advanced.inputs module#

text_advanced.inputs.selector(prompt: object = '', selected_prompt: object = 'Selected Option')#

text_advanced.printing module#

printing module of text-advanced, used for printing and streaming

class text_advanced.printing.Stream(*vals: str)#

Bases: object

print_newlines(timer: float = 0.3, sep: str = ' ', end: str = '\n')#
print_spaces(timer: float = 0.4, sep: str = ' ', end: str = '\n')#
print_stream(timer: float = 0.2, sep: str = ' ', end: str = '\n') None#
text_advanced.printing.prints(*vals: str, color: Color | None = None, style: Style | None = None, sep: str = ' ', end: str = '\n', flush: bool = False)#

Prints the text as a special color: prints(“Hello”, color=Color.Red()) Outputs Hello in Red

Module contents#