How to use the prettytable.PrettyTable.__init__ function in prettytable

To help you get started, we’ve selected a few prettytable 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 rabbitstack / fibratus / fibratus / common.py View on Github external
def __init__(self, columns, align_col=None, align_type='l', sort_by=None):
        PrettyTable.__init__(self, columns)
        if align_col:
            self.align[align_col] = align_type
        if sort_by:
            self.sortby = sort_by
github rabbitstack / fibratus / fibratus / asciiart / tabular.py View on Github external
def __init__(self, columns, align_col=None, align_type='l', sort_by=None):
        PrettyTable.__init__(self, columns)
        if align_col:
            self.align[align_col] = align_type
        if sort_by:
            self.sortby = sort_by
github boto / requestbuilder / requestbuilder / mixins / formatting.py View on Github external
def __init__(self, show_empty=False, **kwargs):
            if show_empty:
                self.__empty = '(nil)'
            else:
                self.__empty = ''
            prettytable.PrettyTable.__init__(self, **kwargs)