finesse.utilities.text

Text utilities.

Functions

add_linenos(linenos, lines)

Add line numbers to the start of lines.

format_bullet_list(items[, indent, bullet_char])

Format items into a bullet list.

format_section(header, body[, ruler, ruler_char])

Format text in sections.

ngettext(n, fsingle, fplural[, sub])

Get the singular or plural form of the specified messages based on n.

option_list(sequence[, final_sep, quotechar])

Build a list from sequence with commas and a final "or".

scale_si(number[, units])

Convert number to an SI-scaled string representation, with optional unit.

stringify(item)

Recursively stringify item.

stringify_graph_gml(graph)

Convert the specified NetworkX graph to string representation using GML markup.