# Path: solvebio/utils/printing.py
# TTY_COLS = set_from_env('COLUMNS', 80)


from six.moves import map
from six.moves import range
from six.moves import zip
from six import string_types
from collections import namedtuple
from platform import python_version_tuple
from .printing import TTY_COLS
    from itertools import izip_longest
    from itertools import zip_longest as izip_longest
    from functools import reduce
import re


__all__ = ["tabulate"]
__version__ = "0.6"


Line = namedtuple("Line", ["begin", "hline", "sep", "end"])
DataRow = namedtuple("DataRow", ["begin", "sep", "end"])
TableFormat = namedtuple("TableFormat", ["lineabove", "linebelowheader",
                                         "linebetweenrows", "linebelow",
                                         "headerrow", "datarow",
                                         "padding", "usecolons",
                                         "with_header_hide",
                                         "without_header_hide"])
_format_defaults = {"padding": 0,
                    "usecolons": False,
                    "with_header_hide": [],
                    "without_header_hide": []}

_table_formats = {"simple":
                  TableFormat(lineabove=None,
                              linebelowheader=Line("", "-", "  ", ""),
                              linebetweenrows=None,
                              linebelow=Line("", "-", "  ", ""),
                              headerrow=DataRow("", "  ", ""),
                              datarow=DataRow("", "  ", ""),
                              padding=0,
                              usecolons=False,
                              with_header_hide=["linebelow"],
                              without_header_hide=[]),

# Path: solvebio/utils/printing.py
# TTY_COLS = set_from_env('COLUMNS', 80)


# Path: solvebio/utils/tabulate.py
from six.moves import map
from six.moves import range
from six.moves import zip
from six import string_types
from collections import namedtuple
from platform import python_version_tuple
from .printing import TTY_COLS
    from itertools import izip_longest
    from itertools import zip_longest as izip_longest
    from functools import reduce
import re



__all__ = ["tabulate"]
__version__ = "0.6"


Line = namedtuple("Line", ["begin", "hline", "sep", "end"])
DataRow = namedtuple("DataRow", ["begin", "sep", "end"])
TableFormat = namedtuple("TableFormat", ["lineabove", "linebelowheader",
                                         "linebetweenrows", "linebelow",
                                         "headerrow", "datarow",
                                         "padding", "usecolons",
                                         "with_header_hide",
                                         "without_header_hide"])
_format_defaults = {"padding": 0,
                    "usecolons": False,
                    "with_header_hide": [],
                    "without_header_hide": []}

_table_formats = {"simple":
                  TableFormat(lineabove=None,
                              linebelowheader=Line("", "-", "  ", ""),
                              linebetweenrows=None,
                              linebelow=Line("", "-", "  ", ""),
                              headerrow=DataRow("", "  ", ""),
                              datarow=DataRow("", "  ", ""),
                              padding=0,
                              usecolons=False,
                              with_header_hide=["linebelow"],
                              without_header_hide=[]),

                  "plain":