ANSITable
Status & Project Health
Ecosystem & Dependencies
Quick example
from ansitable import ANSITable
table = ANSITable("Name", "Score", border="thin")
table.row("Alice", 95)
table.row("Bob", 87)
table.row("Carol", 92)
table.print()
Output:
┌───────┬───────┐
│ Name │ Score │
├───────┼───────┤
│ Alice │ 95 │
│ Bob │ 87 │
│ Carol │ 92 │
└───────┴───────┘
Features
- Unicode and ANSI colors — Beautiful output in any ANSI-capable terminal
- 7 export formats — Markdown, HTML, LaTeX, reStructuredText, Wikitable, CSV, Pandas
- Rich styling — Colors, backgrounds, text styles (bold, underlined, etc.), alignment, width control
- Sorting — Sort tables by any column, with optional key function
- Pandas integration — Convert DataFrames to/from ANSITable
- Matrix formatting — Pretty-print NumPy arrays with brackets and styles
- Flexible API — Simple string-based or detailed Column-based column specification
Installation
pip install ansitable
Optional dependency for colors:
pip install colored
Documentation
See the comprehensive documentation for tutorials, examples, and API reference.
Metadata
Release files for ansitable 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ansitable-1.1.0.tar.gz | 98.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ansitable-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 117.4 kB
Release files / ansitable-1.1.0.tar.gz
| Download URL | ansitable-1.1.0.tar.gz |
|---|---|
| Size | 98.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a92e2c66db28eaee910382c6f637d709bfc913ea9ae302c8ac600bfe809f6ccd
|
|
BLAKE2b-256 checksum How to use checksums |
589f0eb7498cfaebc1121f903fbba84221d08beb145fb8323407b3b689ef3850
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency logRelease files / ansitable-1.1.0-py3-none-any.whl
| Download URL | ansitable-1.1.0-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb619af14f5664064395f37f4a1f631212983842e1d702d0c0e4469443e6f01e
|
|
BLAKE2b-256 checksum How to use checksums |
e652ba97d6d6337b65e518b3b1455394640b366807efb30dc59d0a28f099319e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.
Transparency log