sqlcompyre.report.formatters package
Submodules
Module contents
Formatters for rendering reports.
- class sqlcompyre.report.formatters.Formatter[source]
Bases:
ABCAbstract base class for formatters of reports.
- Attributes:
file_extensionThe file extension to use when this formatter’s output is written to a file.
Methods
format(metadata, sections[, ...])Format the metadata and the sections from a report.
- abstract property file_extension: str
The file extension to use when this formatter’s output is written to a file.
- class sqlcompyre.report.formatters.TerminalFormatter(colored: bool = True)[source]
Bases:
FormatterFormatter for printing reports to the terminal.
- Attributes:
file_extensionThe file extension to use when this formatter’s output is written to a file.
Methods
format(metadata, sections[, ...])Format the metadata and the sections from a report.
- property file_extension: str
The file extension to use when this formatter’s output is written to a file.
- class sqlcompyre.report.formatters.TextFormatter[source]
Bases:
TerminalFormatterFormatter for rendering reports as text (= non-colored terminal formatting).
- Attributes:
file_extensionThe file extension to use when this formatter’s output is written to a file.
Methods
format(metadata, sections[, ...])Format the metadata and the sections from a report.