Skip to main content

Tabulicious

The Tabulicious library provides functionality to generate simple text-based formatted tables for command line and documentation use in a range of formats including plaintext, Markdown and HTML.

Requirements

The Tabulicious library has been tested to work with Python 3.10, 3.11, 3.12, 3.13 and 3.14, but has not been tested, nor is its use supported with earlier versions of Python.

Installation

The library is available from the PyPI repository, so may be added easily to a project's dependencies via its requirements.txt file or similar by referencing the library's name, tabulicious, or the library may be installed directly onto your local development system using pip install by entering the following command:

$ pip install tabulicious

Introduction

The Tabulicious library can be used to easily create text-based tables in a range of formats from a list of row data, where each row has the same number of columns, and each column contains a printable value or a None value. Printable values include all values that have a string representation, which include all of the built-in and custom types that support the __str__ method.

Instances of the library can be created by creating an instance of the Tabulicious class, or by using the tabulate helper function, both of which can be imported from the top-level tabulicious module.

Examples of Use

from tabulicious import Tabulicious

# All rows must have the same number of columns, even if a column in a given row is
# empty, a value must still be supplied for that column, as an empty string or `None`:
rows = [
    ["Column 1A", "Column 1B", "Column 1C"],
    ["Column 2A", None, "Column 2C"],
]

# Table headers are optional, but if supplied, must have the same number of columns as
# the row data does:
headers = ["Header 1", "Header 2", "Header 3"]

# Create a new instance of the class with the row data and optional headers
table = Tabulicious(rows=rows, headers=headers)

# The Tabulicious class provides a string representation of itself whenever its __str__ 
# method is called, so can be passed to methods like `print` or concatenated with other
# string output:
print(table)

The above code sample generates the following output:

┌───────────┬───────────┬───────────┐
│ Header 1  │ Header 2  │ Header 3  │
├───────────┼───────────┼───────────┤
│ Column 1A │ Column 1B │ Column 1C │
├───────────┼───────────┼───────────┤
│ Column 2A │           │ Column 2C │
└───────────┴───────────┴───────────┘

The library also provides a tabulate helper method that takes the same arguments as the Tabulicious class:

from tabulicious import tabulate

# All rows must have the same number of columns, even if a column in a given row is
# empty, a value must still be supplied for that column, as an empty string or `None`:
rows = [
    ["Column 1A", "Column 1B", "Column 1C"],
    ["Column 2A", None, "Column 2C"],
]

# Table headers are optional, but if supplied, must have the same number of columns as
# the row data does:
headers = ["Header 1", "Header 2", "Header 3"]

# Create a new instance of the class with the row data and optional headers
table = tabulate(rows=rows, headers=headers)

# The Tabulicious class provides a string representation of itself whenever its __str__ 
# method is called, so can be passed to methods like `print` or concatenated with other
# string output:
print(table)

Formatting

Support for the various output formats are provided through the collection of Format subclasses provided by the library. These subclasses are responsible for formatting the tabular row and optional header data and formatting it into the chosen text-based format such as Markdown, HTML or plaintext.

By default the library generates plaintext formatted tables using the Plaintext format subclass. As the Plaintext formatter is the default, it does not need to be specified when creating a plaintext formatted table. To use one of the other formatter subclasses, import the desired formatter from the library and pass it to the class initialiser using the format keyword argument. The list of currently supported formatters are listed in the Formatters section below.

For example, to generate Markdown formatted tables, import the Markdown subclass from the library and pass it to the initialiser using the format keyword argument as shown below:

from tabulicious import tabulate, Markdown

# All rows must have the same number of columns, even if a column in a given row is
# empty, a value must still be supplied for that column, as an empty string or `None`:
rows = [
    ["Column 1A", "Column 1B", "Column 1C"],
    ["Column 2A", None, "Column 2C"],
]

# Table headers are optional, but if supplied, must have the same number of columns as
# the row data does:
headers = ["Header 1", "Header 2", "Header 3"]

# Create a new instance of the class with the row data and optional headers; the same
# arguments can be passed to the Tabulicious class directly:
table = tabulate(rows=rows, headers=headers, format=Markdown)

print(table)

The above code sample generates the following output:

| Header 1 | Header 2 | Header 3 |
| :-- | :-- | :-- |
| Column 1A | Column 1B | Column 1C |
| Column 2A | Column 2B | Column 2C |

Which when rendered as Markdown, will look like the following:

Header 1 Header 2 Header 3
Column 1A Column 1B Column 1C
Column 2A Column 2B Column 2C

To generate HTML formatted tables, import the HTML subclass from the library and pass it to the initialiser using the format keyword argument as shown below:

from tabulicious import Tabulicious, HTML

# All rows must have the same number of columns, even if a column in a given row is
# empty, a value must still be supplied for that column, as an empty string or `None`:
rows = [
    ["Column 1A", "Column 1B", "Column 1C"],
    ["Column 2A", None, "Column 2C"],
]

# Table headers are optional, but if supplied, must have the same number of columns as
# the row data does:
headers = ["Header 1", "Header 2", "Header 3"]

# Create a new instance of the class with the row data and optional headers; the same
# arguments can be passed to the tabulate function:
table = Tabulicious(rows=rows, headers=headers, format=HTML)

print(table)

The above code sample generates the following output:

<table>
  <thead>
    <tr>
      <td>Header 1</td><td>Header 2</td><td>Header 3</td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Column 1A</td><td>Column 1B</td><td>Column 1C</td>
    </tr>
    <tr>
      <td>Column 2A</td><td>Column 2B</td><td>Column 2C</td>
    </tr>
  </tbody>
</table>

Which when rendered as HTML, will look like the following:

Header 1Header 2Header 3
Column 1AColumn 1BColumn 1C
Column 2AColumn 2BColumn 2C

Formatters

The Tabulicious library currently provides the following formatter subclasses which can be used to generate text-based tables of the relevant format:

Formatter Format Notes
Plaintext Plaintext formatted tables The Plaintext formatter is the default
Markdown Markdown formatted tables
HTML HTML formatted tables Simple HTML formatted tables
Atlassian Atlassian formatted tables For Jira tickets, Confluence pages, etc
GitHub GitHub formatted tables For GitHub README, issues, pages, etc
Borderless Borderless text tables For plain text, borderless tables

Plaintext Formatter

The Plaintext formatter offers the following optional configuration options:

  • style (str) – the style argument supports setting the desired border style for the table, specified from one of the available options noted in the border styles section below; if no style argument is specified, the library defaults to the single border style;
  • bolding (bool) – the bolding argument supports setting whether the header row should be rendered with bolded text or not (supported when the table is rendered in most command line shells);
  • min_width (int) – the min_width argument supports setting the minimum column width (number of characters) for all columns;
  • max_width (int) – the max_width argument supports setting the maximum column width (number of characters) for all columns;
  • widths (list[int]) – the widths argument supports setting fixed column widths for each column, as the maximum number of characters that can appear in each column (aside from those needed for padding or border characters);
  • alignments (list[str]) – the alignments argument supports setting column alignments for each column, specified as a list of str values, one for each column, from the following options: left, centre (or center), and right.

The Plaintext formatter offers the following border styles:

Style Description
Simple The simple style uses standard ASCII characters to form the table.
Single The single style uses single box drawing characters to form the table.
Double The double style uses double box drawing characters to form the table.
Curved The curved style uses curved box drawing characters to form the table.
Bolded The bolded style uses bolded box drawing characters to form the table.

Plaintext Formatter: Examples

The simple style will generate tables similar to the following with ASCII borders:

+-----------+-----------+-----------+
| Header 1  | Header 2  | Header 3  |
+-----------+-----------+-----------+
| Column 1A | Column 1B | Column 1C |
+-----------+-----------+-----------+
| Column 2A | Column 2B | Column 2C |
+-----------+-----------+-----------+

The single style will generate tables similar to the following with single borders:

┌───────────┬───────────┬───────────┐
│ Header 1  │ Header 2  │ Header 3  │
├───────────┼───────────┼───────────┤
│ Column 1A │ Column 1B │ Column 1C │
├───────────┼───────────┼───────────┤
│ Column 2A │ Column 2B │ Column 2C │
└───────────┴───────────┴───────────┘

The double style will generate tables similar to the following with double borders:

╔═══════════╦═══════════╦═══════════╗
║ Header 1  ║ Header 2  ║ Header 3  ║
╠═══════════╬═══════════╬═══════════╣
║ Column 1A ║ Column 1B ║ Column 1C ║
╠═══════════╬═══════════╬═══════════╣
║ Column 2A ║ Column 2B ║ Column 2C ║
╚═══════════╩═══════════╩═══════════╝

The bolded style will generate tables similar to the following with bold borders:

┏━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Header 1  ┃ Header 2  ┃ Header 3  ┃
┣━━━━━━━━━━━╋━━━━━━━━━━━╋━━━━━━━━━━━┫
┃ Column 1A ┃ Column 1B ┃ Column 1C ┃
┣━━━━━━━━━━━╋━━━━━━━━━━━╋━━━━━━━━━━━┫
┃ Column 2A ┃ Column 2B ┃ Column 2C ┃
┗━━━━━━━━━━━┻━━━━━━━━━━━┻━━━━━━━━━━━┛

The curved style will generate tables similar to the following with curved borders:

╭───────────┬───────────┬───────────╮
│ Header 1  │ Header 2  │ Header 3  │
├───────────┼───────────┼───────────┤
│ Column 1A │ Column 1B │ Column 1C │
├───────────┼───────────┼───────────┤
│ Column 2A │ Column 2B │ Column 2C │
╰───────────┴───────────┴───────────╯

Markdown Formatter

The Markdown formatter offers the following optional configuration options:

  • alignments (list[str]) – the alignments argument supports setting column alignments for each column, specified as a list of str values, one for each column, from the following options: left, centre (or center), and right.

HTML Formatter

The HTML formatter offers the following optional configuration options:

  • alignments (list[str]) – the alignments argument supports setting column alignments for each column, specified as a list of str values, one for each column, from the following options: left, centre (or center), and right.

Atlassian Formatter

The Atlassian formatter offers the following optional configuration options:

  • alignments (list[str]) – the alignments argument supports setting column alignments for each column, specified as a list of str values, one for each column, from the following options: left, centre (or center), and right.

Atlassian Formatter: Examples

The Atlassian subclass will generate tables similar to the following:

|| Header 1 || Header 2 || Header 3 ||
| Column 1A | Column 1B | Column 1C |
| Column 2A | Column 2B | Column 2C |

GitHub Formatter

The GitHub formatter offers the following optional configuration options:

  • alignments (list[str]) – the alignments argument supports setting column alignments for each column, specified as a list of str values, one for each column, from the following options: left, centre (or center), and right.

GitHub Formatter: Examples

The GitHub subclass will generate tables similar to the following:

| Header 1 | Header 2 | Header 3 |
| --- | --- | --- |
| Column 1A | Column 1B | Column 1C |
| Column 2A | Column 2B | Column 2C |

Borderless Formatter

The Borderless formatter offers the following optional configuration options:

  • alignments (list[str]) – the alignments argument supports setting column alignments for each column, specified as a list of str values, one for each column, from the following options: left, centre (or center), and right.
  • spacing (int | tuple[int]) – the spacing argument supports setting the spacing between columns (number of characters);
  • padding (int | tuple[int]) – the padding argument support setting the padding between columns (number of characters);
  • ellipses (bool) – the ellipses argument supports setting whether ellipses should appear between the first and second columns.

Borderless Formatter: Examples

The Borderless subclass will generate tables similar to the following:

Header 1    Header 2    Header 3
Column 1A   Column 1B   Column 1C
Column 2A   Column 2B   Column 2C

Copyright © 2025-2026 Daniel Sissman; licensed under the MIT License.

Metadata

Release files for tabulicious 0.5.4

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

Source distribution (sdist)

Source distribution for tabulicious 0.5.4
File Size Uploaded Provenance Actions
tabulicious-0.5.4.tar.gz 16.5 kB With provenance Details for tabulicious-0.5.4.tar.gz

Built distribution (wheel)

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

Total release size: 32.8 kB

Release files / tabulicious-0.5.4.tar.gz

Download URL tabulicious-0.5.4.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d9f2880e61ed087f57b3dafc982bd48d39a1cacf9694b795560be5aba7f4456f
BLAKE2b-256 checksum
How to use checksums
3858d71562803a1dfb1d45fc21fb521c5c4ce752204f547a2e3f5ffa7e861fa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 10, 2026.

Transparency log

Release files / tabulicious-0.5.4-py3-none-any.whl

Download URL tabulicious-0.5.4-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b740203700cfaff305880bdb8c5f2f43f0908560b837e91623584953b6c0487c
BLAKE2b-256 checksum
How to use checksums
d0f6141b6497bb28cafb31498a09a603dbecfdf3187fcab24ad2fc8f18537ebc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 10, 2026.

Transparency log

Security for tabulicious 0.5.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tabulicious-0.5.4.tar.gz

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 Jun 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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