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.

Metadata

Release files for ansitable 1.1.1

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.1.1
File Size Uploaded
ansitable-1.1.1.tar.gz 99.2 kB Details

Built distribution (wheel)

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

Total release size: 117.8 kB

Release files / ansitable-1.1.1.tar.gz

Download URL ansitable-1.1.1.tar.gz
Size 99.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f2fe4bf03fdab0b68ef14b5eba57381d8303734e29a618fee5052e3034b562b7
BLAKE2b-256 checksum
How to use checksums
105b6fb9d31b6f72e8103e57186b8b9a5d1516188f25bf5b21578a3a69d18502
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 27, 2026.

Transparency log

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

Download URL ansitable-1.1.1-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a805353f5c71fe3a374fc83c9c9d7e01579ce710c4c8fbda45fb9e57b54af7f
BLAKE2b-256 checksum
How to use checksums
4d0c4b7c9e611171b74dca8504a944a18482df41d76f28400d5732a5904fd9bc
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 27, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.1 This release

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