Skip to main content

ANSITable


Pretty tables and matrices for Python

PyPI version Documentation

GitHub • Conda • Quick example


Status & Project Health

Build Status Downloads Python Version Codacy Badge License: MIT

Ecosystem & Dependencies

A Python Robotics Package QUT Centre for Robotics Open Source

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. AI assistants can read llms.txt or the complete llms-full.txt.

Metadata

Release files for ansitable 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ansitable 1.2.0
File Size Uploaded
ansitable-1.2.0.tar.gz 107.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ansitable 1.2.0
File Interpreter ABI Platform
ansitable-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 128.0 kB

Release files / ansitable-1.2.0.tar.gz

Download URL ansitable-1.2.0.tar.gz
Size 107.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6da7ff19e986ca02cb64addfd8dbfba8b61054fff8e0efe458b78fd0a2d9ca1b
BLAKE2b-256 checksum
How to use checksums
e975735516b7577d63c103081962c4ac6714b9f4583d094d5c661fb7175694c9
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 Oct 12, 2026.

Transparency log

Release files / ansitable-1.2.0-py3-none-any.whl

Download URL ansitable-1.2.0-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79e08e9d6bc9976a8f4a5c8deb9648adbcd8a3ce168f4fcc964aa026ca2f2692
BLAKE2b-256 checksum
How to use checksums
bb4d818a0e43a3d674c5191f0d98ad408e87694553e612d2c6e9770ff3b573bc
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 Oct 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.11.7

2 release files

0.11.5

2 release files

0.11.3

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.10

2 release files

0.9.9

2 release files

0.9.7

2 release files

0.9.6

1 release file

0.9.5

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8

1 release file

0.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page