How to use the tabulate._table_formats.keys function in tabulate

To help you get started, we’ve selected a few tabulate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JNRowe / rdial / rdial / View on Github external
    help='Table output style.')
def report(globs: ROAttrDict, task: str, stats: bool, duration: str, sort: str,
           reverse: bool, style: str):
    """Report time tracking data.

        globs: Global options object
        task: Task name to operate on
        stats: Display short overview of data
        duration: Time window to filter on
        sort: Key to sort events on
        reverse: Reverse sort order
        style: Table formatting style
github criteo / biggraphite / biggraphite / cli / View on Github external
# Hack to add some more formats.
# TODO: Add Graphite support.
# TODO: Remove padding.
tabulate._table_formats["csv"] = tabulate.TableFormat(
    headerrow=tabulate.DataRow("", ";", ""),
    datarow=tabulate.DataRow("", ";", ""),

tabulate.tabulate_formats = list(sorted(tabulate._table_formats.keys()))

class Namespaces(object):
    r"""Helper for namespaces.

    The config file would look like:
    pattern = carbon\.relay\.*

    pattern = carbon\.agents\.*

    pattern = carbon\.aggregator\.*