easytable.presets

This module contains presets for formatting tables.

The presets are dictionaries which contain keyword arguments. To apply a preset, the dictionary of the user’s choice has to be passed to easytable.Table.make() or one of the shortcut functions easytable.autotable(), easytable.docl() etc. using a double-star notation (**). Example:

>>> data = dict(a=[1, 2, 3], b=[1, 2], c=[1])
>>> print easytable.docl(d, coltitles=1, **easytable.presets.asciielegant)
===========
 a   c   b
-----------
 1   1   1
 2       2
 3
===========

Presets using unicode box-drawing characters

easytable.presets.elegant
easytable.presets.elegant2
easytable.presets.matrix
easytable.presets.box
easytable.presets.fatbox
easytable.presets.doublebox
easytable.presets.cross
easytable.presets.cross2
easytable.presets.dense
easytable.presets.header

Presets using only ASCII characters

easytable.presets.asciielegant
easytable.presets.asciimatrix
easytable.presets.asciibox
easytable.presets.asciicross
easytable.presets.asciicross2
easytable.presets.asciidense
easytable.presets.asciiheader

Indices and tables

Table Of Contents

This Page