Align columns in ASCII tables
Project description
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.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tablign-0.3.7.tar.gz.
File metadata
- Download URL: tablign-0.3.7.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a6521277eb9fccb6f3199f9926ab297b9ceaa5505ba45c861121edac190d33b
|
|
| MD5 |
fbaa2ae0d5024edce29a689e35f0a127
|
|
| BLAKE2b-256 |
561f39cd24e70ccaccfeb04b28dec76b6472e704a39ea0255df3db569710872b
|
File details
Details for the file tablign-0.3.7-py3-none-any.whl.
File metadata
- Download URL: tablign-0.3.7-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42b3a764cc2f4a16a2963defe86ee2c29d43e9633b9b2979b4c0760cff8bb350
|
|
| MD5 |
d50f43125e3eb01c3d7c42b7ae9f4731
|
|
| BLAKE2b-256 |
b6c3be4a4a91133a249d5c7ef972b46f098178759979276abcb8c9304232dc3d
|