smartcols API Reference

Note

str represents both the types str and unicode. It is not compatible with the bytes type.

Warning

Don’t try to use copy.copy() or copy.deepcopy(), it’s not implemented and can break things.

Cell

Title

Column

Line

Symbols

Table

Useful Functions

Enumerations used by functions

class smartcols.CellPosition

Cell position. Currently used only in smartcols.Title.

left
Align text to the left.
center
Align text to the center.
right
Align text to the right.
class smartcols.TermForce

Control terminal output usage.

auto
Automatically detect if terminal or non-terminal output.
never
Force to use stdout as non-terminal output.
always
Force to use stdout as terminal output.