Skip to main content

Align columns in ASCII tables

Project description

tablign

Aligns columns in your ASCII tables.

CircleCI codecov Code style: black awesome PyPi Version GitHub stars PyPi downloads

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


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 hashes)

Uploaded Source

Built Distribution

tablign-0.2.1-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page