docria.printout

Presentation module, utilities for formatting document objects.

Functions

get_representation(value)

set_large_screen()

Sets options to higher than default widths

truncate(text)

urn_link_wikidata(partial)

urn_link_wikipedia(partial)

Classes

PrintOptions()

Presentation settings

Table([caption, style, hide_index, hide_headers])

Table representation for text and HTML

TableCell([text, html])

TableRow(*elems[, index])

TableStyle([padding])

Presentation module, utilities for formatting document objects.

class docria.printout.PrintOptions[source]

Presentation settings

Note

Setting any setting to None will disable truncation for that aspect.

__init__()[source]

The maximum number of nodes to output, -1 for infinite

property max_column_width

Max column width, the maximum number of characters to show inside a column, will truncate if larger.

property max_columns

Max number of columns to display

property max_display_width

Max display width, the maximum number of characters in width for a full table, columns will be wrapped if longer.

property max_rows

Max number of rows, will truncate table if larger.

class docria.printout.Table(caption=None, style=<docria.printout.TableStyle object>, hide_index=False, hide_headers=False)[source]

Table representation for text and HTML

__init__(caption=None, style=<docria.printout.TableStyle object>, hide_index=False, hide_headers=False)[source]
docria.printout.set_large_screen()[source]

Sets options to higher than default widths