cement.ext.ext_tabulate
Cement Tabulate extension module.
Note This extension has an external dependency on tabulate. Cement
explicitly does not include external dependencies for optional
extensions.
In Cement
>=3.0.8you must includecement[tabulate]in your applications dependencies.In Cement
<3.0.8you must includetabulatein your applications dependencies.
- class cement.ext.ext_tabulate.TabulateOutputHandler(**kw: Any)[source]
Bases:
OutputHandlerThis class implements the Output Handler interface. It provides tabularized text output using the Tabulate module. Please see the developer documentation on Output Handling.
- class Meta[source]
Bases:
MetaHandler meta-data.
- float_format = 'g'
String format to use for float values.
- format = 'orgtbl'
Default template format. See the
tabulatedocumentation for all supported template formats.
- missing_value = ''
Default replacement for missing value.
- numeric_alignment = 'decimal'
Default alignment for numeric columns. See the
tabulatedocumentation for all supportednumalignoptions.
- overridable: bool = False
Whether or not to include
tabulateas an available to choice to override theoutput_handlervia command line options.
- padding = True
Whether or not to pad the output with an extra pre/post ‘n’
- string_alignment = 'left'
Default alignment for string columns. See the
tabulatedocumentation for all supportedstralignoptions.