Skip to main content

Print table

Project description

liner_tables

liner_tables is a lightweight Python module for creating and manipulating clean, printable text tables in the terminal. Ideal for CLI tools, debugging, or simple tabular reports.


🔧 Features

  • Easily create and add rows to a table
  • Remove rows by index or column value
  • Print a clean, aligned text-based table to the terminal
  • Doesn't require a module

📦 Installation

If using locally, just save liner_tables.py in your project directory.

pip install liner_tables

Code example:

import liner_tables as table

headers = ['Name', 'From']
data = ['John', 'US']

# Create first table
t = table.create(headers, data)

# To add another data
t.add(['Mike', 'CAD'])

# Delete from column value
t = table.remove(t, {'From': 'CAD'})

# Print the results
print(t.render())

Output:

 # │ Name │ From │
───┼──────┼──────┼
1.  John  US   

Project details


Download files

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

Source Distribution

liner_tables-0.1.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

liner_tables-0.1.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file liner_tables-0.1.1.tar.gz.

File metadata

  • Download URL: liner_tables-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for liner_tables-0.1.1.tar.gz
Algorithm Hash digest
SHA256 66202a2f886c1fb5732e49e53c905fac8ed9ba34a1fd048d487b94c34180a752
MD5 2bfa90740bfdde1766a1315255d63760
BLAKE2b-256 1cc3f64ee8bac129f4b9727d9b68e3eaa27151b46d352acb8011e15ccc3e551f

See more details on using hashes here.

File details

Details for the file liner_tables-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: liner_tables-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for liner_tables-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2249fb37353ab2d773c2326e6b26b80cb6627b952ac7a7214bdde9efc85728d8
MD5 4e0938868763839ea9877ad2a357ec9b
BLAKE2b-256 3ef25db373b0da11010d18bd932572bf717b0961eb43c4e1a61b258b3cfabd42

See more details on using hashes here.

Supported by

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