Skip to main content

A tool for easily making text tables in terminal from python lists.

Project description

CoolTables

Simple tool for making tables, no requirements. Check out example.py

Usage

The best way to get started is by using the cooltables.create_table() function.

import cooltables

# Some two dimensional list
data = [
    ["First", "Row", "(header)"],
    ["Second", "Row", "data"],
    ["Third", "Row", "data"],
]

table = cooltables.create_table(data, theme=cooltables.THIN_THEME)

print(table)

This code produces the following output:

┌────────┬─────┬──────────┐
│ First  │ Row │ (header) │
├────────┼─────┼──────────┤
│ Second │ Row │ data     │
│ Third  │ Row │ data     │
└────────┴─────┴──────────┘

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

cooltables-0.0.3-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file cooltables-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: cooltables-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for cooltables-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7c85396e108fa2ea936bb76b74fd7ebd4913ed06c92112e026859226a91443e5
MD5 ae5b8484d1bcc2a647c655e5cc957e6f
BLAKE2b-256 26a5ad287f7ffb76ba4d903f82f973d4d9f57c1fdffbbdd243919034e265e569

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