cli-tables
Create a pretty looking ascii table.
Usage (command line):
python cli_tables.py [options] < input_file.txt
Where input_file.txt contains your input separated by (any amount of) tabs or 4/8/.. spaces and new-line characters and the output table is printed on the terminal.
Usage (gui):
python gui.py
Example:
Input:
Col 1 Col 2 Col 3 Col 4
Val1 Val2 Val3 Val4
Val11 Val22 Val33 Val44
Vala Valb Valc Vald
Output (-h option):
+-------+-------+-------+-------+
| Col 1 | Col 2 | Col 3 | Col 4 |
+=======+=======+=======+=======+
| Val1 | Val2 | Val3 | Val4 |
+-------+-------+-------+-------+
| Val11 | Val22 | Val33 | Val44 |
+-------+-------+-------+-------+
| Vala | Valb | Valc | Vald |
+-------+-------+-------+-------+
The input in the command line execution can have an arbitrary amount of tabs separating the values. For example either one of the following inputs will output the same result:
Inputs:
input_size algorithmA algorithmB algorithmC algorithmD
1 206.4 sec. 206.4 sec. 0.02 sec. 0.02 sec.
4 900 sec. 431.1 sec. 0.08 sec. 0.062 sec.
250 - 80 min. 2.27 sec. 1.305 sec.
1000 - - 8.77 sec. 4.086 sec.
5000 - - 33.53 sec. 16.80 sec.
10000 - - 85.4 sec. 47.18 sec.
or
input_size algorithmA algorithmB algorithmC algorithmD
1 206.4 sec. 206.4 sec. 0.02 sec. 0.02 sec.
4 900 sec. 431.1 sec. 0.08 sec. 0.062 sec.
250 - 80 min. 2.27 sec. 1.305 sec.
1000 - - 8.77 sec. 4.086 sec.
5000 - - 33.53 sec. 16.80 sec.
10000 - - 85.4 sec. 47.18 sec.
Output (-h and -v options):
+------------+------------+------------+------------+------------+
| input_size ‖ algorithmA | algorithmB | algorithmC | algorithmD |
+============+============+============+============+============+
| 1 ‖ 206.4 sec. | 206.4 sec. | 0.02 sec. | 0.02 sec. |
+------------+------------+------------+------------+------------+
| 4 ‖ 900 sec. | 431.1 sec. | 0.08 sec. | 0.062 sec. |
+------------+------------+------------+------------+------------+
| 250 ‖ - | 80 min. | 2.27 sec. | 1.305 sec. |
+------------+------------+------------+------------+------------+
| 1000 ‖ - | - | 8.77 sec. | 4.086 sec. |
+------------+------------+------------+------------+------------+
| 5000 ‖ - | - | 33.53 sec. | 16.80 sec. |
+------------+------------+------------+------------+------------+
| 10000 ‖ - | - | 85.4 sec. | 47.18 sec. |
+------------+------------+------------+------------+------------+
Options:
- [
-hdouble horizontal line after first row. (Uses '=' character)] - [
-vdouble vertical line after first column. (Uses '‖' unicode character)]
Metadata
Release files for cli-tables 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cli_tables-0.0.2.tar.gz | 3.2 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cli_tables-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
| cli_tables-0.0.2-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 11.2 kB
Release files / cli_tables-0.0.2.tar.gz
| Download URL | cli_tables-0.0.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
004097622e309b82de7dc12df2eb6287a73664ffece63aa9d17ead02fe2e772f
|
|
BLAKE2b-256 checksum How to use checksums |
145afaf1e859488494ab65d9c30916e79bc4767467dac90a9bccc6a98905a036
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15rc1
|
Release files / cli_tables-0.0.2-py3-none-any.whl
| Download URL | cli_tables-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f451edf28628b780942a340cb5b88dd5aa9e8c155e6c6ee1239cc06d6450b7ab
|
|
BLAKE2b-256 checksum How to use checksums |
5e26eb1d5ca1a78d6274fa427bb54b052712d29b9aba5c73193ffed4222173fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15rc1
|
Release files / cli_tables-0.0.2-py2-none-any.whl
| Download URL | cli_tables-0.0.2-py2-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
752aab0ee12ce10f506bba0131c3451ec8d13803077f1958b1f2ff34f3e36b81
|
|
BLAKE2b-256 checksum How to use checksums |
c2419399ac5b3e539863a7f6f2f320e595aeddc6c7428fd77d351e5d887bf4a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15rc1
|
Security for cli-tables 0.0.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.