itchcraft.format

Formatting support

Functions

format_table(bite_healers)

Returns a formatted table for the given list of bite healers.

format_title(item)

Returns a formatted title for the given bite healer.

max_line_width()

Returns the maximum width (in terminal columns) to be used

Module Contents

itchcraft.format.format_table(bite_healers)

Returns a formatted table for the given list of bite healers.

Parameters:

bite_healers (collections.abc.Iterable[itchcraft.device.BiteHealerMetadata]) –

Return type:

str

itchcraft.format.format_title(item)

Returns a formatted title for the given bite healer.

Parameters:

item (itchcraft.device.BiteHealerMetadata) –

Return type:

str

itchcraft.format.max_line_width()

Returns the maximum width (in terminal columns) to be used when formatting text.

Return type:

int