Registry / serialization / terminaltables3

terminaltables3

JSON →
library4.0.0pypypi✓ verified 81d ago

A Python library for generating simple ASCII and Unicode tables in terminals from a nested list of strings. Fork of terminaltables with Python 3.8+ support and modernised APIs. Version 4.0.0 released 2023.

pip install terminaltables3
INSTALL
IMPORT
SIG · TERMINALTABLES3
T
terminaltables3
serializationpythonv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AsciiTable
from terminaltables3 import AsciiTable
from terminaltables import AsciiTable

Create a simple ASCII table from a list of lists.

from terminaltables import AsciiTable table_data = [ ['Name', 'Age', 'City'], ['Alice', '30', 'New York'], ['Bob', '25', 'Los Angeles'], ] table = AsciiTable(table_data) print(table.table)
Debug
Known issues
gotchaImport from 'terminaltables' not 'terminaltables3'. The module name is unchanged.
fix
Use 'from terminaltables import ...'
affects: all
breakingRemoved support for Python < 3.8. If upgrading from original terminaltables, check Python version.
fix
Ensure Python 3.8+ or use older terminaltables for 2.7/3.5.
affects: >=4.0.0
deprecatedThe 'title' parameter in AsciiTable and other table classes is deprecated and may be removed in future versions.
fix
Do not rely on the title parameter; use separate print statements.
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on PyPI · released Jul 21, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
OpenAI (training)
1
Resources
terminaltables3 — pip install terminaltables3 · libregistry