Skip to main content

PyPI version fury.io Anaconda version pyversions Build Status Maintenance GitHub license PyPI - Downloads Codacy Badge

ANSITable logo

ANSITable

Pretty tables and matrices for Python

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansitable-1.0.0.tar.gz (87.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansitable-1.0.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file ansitable-1.0.0.tar.gz.

File metadata

  • Download URL: ansitable-1.0.0.tar.gz
  • Upload date:
  • Size: 87.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ansitable-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9cfe9d510db75ba908c29eb4c28c384c759fe6142d24cae9b1acd73af55dddfa
MD5 ec63fa80048bbee4a697629711959214
BLAKE2b-256 e5f069bdad551e73a5e8496df789bbc65b4af95afdef84c5a040de615a12ec2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansitable-1.0.0.tar.gz:

Publisher: release.yml on petercorke/ansitable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ansitable-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ansitable-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ansitable-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b45b0eceac49e99718e0346e389359898f52bd92dcf2a1d6e66c489edda18751
MD5 7fa4fe5074c64884ddd5b235250054ee
BLAKE2b-256 9d1d6dd1737bdebc7f16328f137cdbbd5581bc960a7f2c8b9930387245ab142f

See more details on using hashes here.

Provenance

The following attestation bundles were made for ansitable-1.0.0-py3-none-any.whl:

Publisher: release.yml on petercorke/ansitable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.0.1

2 files

This release

1.0.0 This release

2 files

0.11.7

2 files

0.11.5

2 files

0.11.4

2 files

0.11.3

2 files

0.11.2

2 files

0.11.1

2 files

0.11.0

2 files

0.10.0

2 files

0.9.10

2 files

0.9.9

2 files

0.9.7

2 files

0.9.6

1 file

0.9.5

1 file

0.9.4

1 file

0.9.3

1 file

0.9.2

1 file

0.9.1

1 file

0.9

1 file

0.8.2

1 file

0.8.1

1 file

0.8

1 file

0.5

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page