Skip to main content

tablign

Aligns columns in your ASCII tables.

PyPi Version PyPI pyversions GitHub stars PyPi downloads

gh-actions codecov Code style: black

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)

Source distribution for tablign 0.3.7
File Size Uploaded
tablign-0.3.7.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tablign 0.3.7
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3.7 This release

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page