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
Release history Release notifications | RSS feed
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
Close
Hashes for cooltables-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c85396e108fa2ea936bb76b74fd7ebd4913ed06c92112e026859226a91443e5 |
|
MD5 | ae5b8484d1bcc2a647c655e5cc957e6f |
|
BLAKE2b-256 | 26a5ad287f7ffb76ba4d903f82f973d4d9f57c1fdffbbdd243919034e265e569 |