terminaltables is a Python library designed to easily draw tables in terminal/console applications from a nested list of strings. It supports multi-line rows and various table styles like ASCII, single-line, double-line, and GitHub Flavored Markdown. The current version is 3.1.10, but the project is no longer actively maintained.
pip install terminaltablesVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create a basic ASCII table using `AsciiTable` by providing a list of lists. It also shows how to set a table title. Other table types like `SingleTable` and `DoubleTable` are used similarly.
Migrate to `terminaltables3` by installing it and replacing `from terminaltables import ...` with `from terminaltables3 import ...`.
Use `SingleTable` instead of `UnixTable`. Use `DoubleTable` instead of `WindowsTable` or `WindowsTableDouble`.
Review your code for direct usage of these properties/methods and adapt to the current API, which handles internal data formatting differently. The `table` property should be used to retrieve the rendered table string.
Ensure your project runs on Python 2.7+ or Python 3.3+. Modern usage should target Python 3.
Aggregate all data into a single `table_data` list (or similar structure) first, then create and print a single `AsciiTable` instance outside the loop to produce one continuous table.
pip install terminaltables
from terminaltables import AsciiTable
table_data = [['Header1', 'Header2'], ['Data1', 'Data2']]
print(table.table_data)
No dependency data recorded yet.