| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/tabulate-stubs/ |
Upload File : |
from collections.abc import Callable, Container, Iterable, Mapping, Sequence
from typing import Any, NamedTuple
from typing_extensions import Final, Self, TypeAlias
from .version import __version__ as __version__
__all__ = ["tabulate", "tabulate_formats", "simple_separated_format"]
# These constants are meant to be configurable
# https://github.com/astanin/python-tabulate#text-formatting
PRESERVE_WHITESPACE: bool
MIN_PADDING: int
# https://github.com/astanin/python-tabulate#wide-fullwidth-cjk-symbols
WIDE_CHARS_MODE: bool
SEPARATING_LINE: str
class Line(NamedTuple):
begin: str
hline: str
sep: str
end: str
class DataRow(NamedTuple):
begin: str
sep: str
end: str
_TableFormatLine: TypeAlias = None | Line | Callable[[list[int], list[str]], str]
_TableFormatRow: TypeAlias = None | DataRow | Callable[[list[Any], list[int], list[str]], str]
class TableFormat(NamedTuple):
lineabove: _TableFormatLine
linebelowheader: _TableFormatLine
linebetweenrows: _TableFormatLine
linebelow: _TableFormatLine
headerrow: _TableFormatRow
datarow: _TableFormatRow
padding: int
with_header_hide: Container[str] | None
LATEX_ESCAPE_RULES: Final[dict[str, str]]
tabulate_formats: list[str]
multiline_formats: dict[str, str]
def simple_separated_format(separator: str) -> TableFormat: ...
def tabulate(
tabular_data: Mapping[str, Iterable[Any]] | Iterable[Iterable[Any]],
headers: str | dict[str, str] | Sequence[str] = (),
tablefmt: str | TableFormat = "simple",
floatfmt: str | Iterable[str] = "g",
intfmt: str | Iterable[str] = "",
numalign: str | None = "default",
stralign: str | None = "default",
missingval: str | Iterable[str] = "",
showindex: str | bool | Iterable[Any] = "default",
disable_numparse: bool | Iterable[int] = False,
colalign: Iterable[str | None] | None = None,
maxcolwidths: int | Iterable[int | None] | None = None,
rowalign: str | Iterable[str] | None = None,
maxheadercolwidths: int | Iterable[int] | None = None,
) -> str: ...
class JupyterHTMLStr(str):
@property
def str(self) -> Self: ...