@classmethod
def lines(cls, column_headers, lines, padding, alignment):
    """
        Yield lines to be printed.

        :param column_headers: column headers
        :type column_headers: list of str
        :param lines: line infos
        :type lines: list of dict
        :param int padding: number of spaces to pad on right
        :param alignment: alignment for column headers
        :type alignment: dict of str * str {'<', '>', '^'}
        """
    column_widths = cls.calculate_widths(column_headers, lines, padding)
    yield cls.header_str(column_widths, column_headers, alignment)
    fmt_str = cls.format_str(column_widths, column_headers, alignment)
    for line in lines:
        yield fmt_str.format(**line)
