Align columns in ASCII tables
Project description
tablign
Aligns columns in your ASCII tables.
tablign converts 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.
Usage from vim
Simply mark the table (shift-V), and type
:'<,'>:!tablign
Installation
tablign is available from the Python Package Index, so with
pip3 install -U tablign
you can install/upgrade.
Testing
To run the tests, simply check out this repository and run
pytest
License
tablign is published under the MIT license.
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
tablign-0.2.1.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file tablign-0.2.1.tar.gz
.
File metadata
- Download URL: tablign-0.2.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bced4f839822710e2f6ebf7219603d8584442adf6dc1074057e8fba39b68847c |
|
MD5 | 9dd6730c3680c79ce4fe0603918eba3d |
|
BLAKE2b-256 | 2c4b06179e2cb1ba49d9336f6776c13fa4185c49e7a3277dc7abdfe4f1d30dbe |
File details
Details for the file tablign-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: tablign-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e78028f1f5dc3bdb794f08d496bfe8b03a75f1b4a54acf4ec1063e78ba7a521a |
|
MD5 | 56198354929888093de42296fea9e2d1 |
|
BLAKE2b-256 | d9dba8f942eb4554b53ee53a935fd76678dee6169939306a67767bce9287ee0f |