|
AQIT 0.1.0
|
Functions | |
| int | width () |
| str | ascii_safe (str text) |
| str | rule (str char="=", int|None w=None) |
| str | center (str text, int|None w=None) |
| list[str] | center_block (list[str] lines, int|None w=None) |
| str | box_top (int|None w=None) |
| str | box_bottom (int|None w=None) |
| str | box_line (str text, int|None w=None) |
| list[str] | box_lines (str text, int|None w=None) |
| str | kv_line (str label, str value, *, int label_width=10, int|None w=None) |
| None | print_logo () |
| None | print_banner (*, str subtitle, int|None w=None) |
| None | print_section (str title, list[str] body_lines, *, int|None w=None) |
Variables | |
| str | BANNER |
| str ascii_safe | ( | str | text | ) |
Definition at line 31 of file ascii_layout.py.
Referenced by box_line(), and box_lines().
| str box_bottom | ( | int | None | w = None | ) |
| str box_line | ( | str | text, |
| int | None | w = None ) |
Definition at line 69 of file ascii_layout.py.
References ascii_safe(), and width().
Referenced by box_lines(), kv_line(), and print_section().
| list[str] box_lines | ( | str | text, |
| int | None | w = None ) |
Definition at line 78 of file ascii_layout.py.
References ascii_safe(), box_line(), and width().
Referenced by print_section().
| str box_top | ( | int | None | w = None | ) |
Definition at line 60 of file ascii_layout.py.
References width().
Referenced by box_bottom(), and print_section().
| str center | ( | str | text, |
| int | None | w = None ) |
| list[str] center_block | ( | list[str] | lines, |
| int | None | w = None ) |
Pad lines to equal width, then center the block as one unit.
Definition at line 49 of file ascii_layout.py.
References width().
Referenced by print_banner().
| str kv_line | ( | str | label, |
| str | value, | ||
| * | , | ||
| int | label_width = 10, | ||
| int | None | w = None ) |
Boxed key/value row: ' label value'.
Definition at line 102 of file ascii_layout.py.
References box_line(), and width().
| None print_banner | ( | * | , |
| str | subtitle, | ||
| int | None | w = None ) |
Definition at line 115 of file ascii_layout.py.
References center(), center_block(), rule(), and width().
| None print_logo | ( | ) |
Bare Aquin figlet : used for `aquin` with no args.
Definition at line 109 of file ascii_layout.py.
| None print_section | ( | str | title, |
| list[str] | body_lines, | ||
| * | , | ||
| int | None | w = None ) |
Print a titled ASCII box. body_lines are already boxed or plain content rows.
Definition at line 126 of file ascii_layout.py.
References box_bottom(), box_line(), box_lines(), box_top(), and width().
| str rule | ( | str | char = "=", |
| int | None | w = None ) |
| int width | ( | ) |
Definition at line 23 of file ascii_layout.py.
Referenced by box_line(), box_lines(), box_top(), center(), center_block(), kv_line(), print_banner(), print_section(), and rule().
| str aquin.ascii_layout.BANNER |
Definition at line 14 of file ascii_layout.py.