5.3. Table Format

class pytablewriter.FormatAttr[source]

Bases: object

Bitmaps to represent table attributes.

API = 64

Can call API for external service.

BIN = 16

Table format that can represent as a binary file.

FILE = 4

Can create a file with the format.

SOURCECODE = 32

Can create a source code (variables definition) one of the programming language.

TEXT = 8

Table format that can represent as a text.

class pytablewriter.TableFormat(names, writer_class, format_attribute, file_extensions)[source]

Bases: enum.Enum

Enum to represent table format attributes.

file_extensions

File extensions associated with the table format. :rtype: list

Type:return
format_attribute

Table attributes bitmap. :rtype: pytablewriter.FormatAttr

Type:return
names

Names associated with the table format. :rtype: list

Type:return
writer_class

Table writer class associated with the table format. :rtype:

Type:return