Aligns columns in your ASCII tables.
Install with
pip install tablign
tablign in.txt out.txt
you can convert your input file
| A | 1.34|-214.1|
|CCCC | 55.534| 1131.1|
into
| A | 1.34 | -214.1 |
| CCCC | 55.534 | 1131.1 |
Column widths are unified across the table, decimal dots are aligned, and tablign tries
to be smart about column separators. Works for CSV, LaTeX, Markdown etc. By default,
tablign reads from stdin and writes to stdout, so you can use pipes with tablign, too:
head -n in.txt | tablign
Usage from vim
Simply mark the table (shift-V), and type
:'<,'>:!tablign
Alternatives
GNU's column command is a mighty alternative:
column -t
See here for more alternatives.
Release files for tablign 0.3.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tablign-0.3.7.tar.gz | 16.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tablign-0.3.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.0 kB
Release files / tablign-0.3.7.tar.gz
| Download URL | tablign-0.3.7.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a6521277eb9fccb6f3199f9926ab297b9ceaa5505ba45c861121edac190d33b
|
|
BLAKE2b-256 checksum How to use checksums |
561f39cd24e70ccaccfeb04b28dec76b6472e704a39ea0255df3db569710872b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / tablign-0.3.7-py3-none-any.whl
| Download URL | tablign-0.3.7-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42b3a764cc2f4a16a2963defe86ee2c29d43e9633b9b2979b4c0760cff8bb350
|
|
BLAKE2b-256 checksum How to use checksums |
b6c3be4a4a91133a249d5c7ef972b46f098178759979276abcb8c9304232dc3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|