Skip to main content

Align columns in ASCII tables

Project description

tablign

Aligns columns in your ASCII tables.

CircleCI codecov Codacy grade Code style: black awesome PyPi Version GitHub stars

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, and type

:'<,'>:!tablign

Installation

tablign is available from the Python Package Index, so with

pip install -U tablign

you can install/upgrade.

Testing

To run the tests, simply check out this repository and run

pytest

Distribution

To create a new release

  1. bump the __version__ number,

  2. publish to PyPi and GitHub:

    $ make publish
    

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

tablign-0.1.7-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tablign-0.1.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for tablign-0.1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0ee1d3444b3b540c8deab0b63cb3ba700da895b05c9caf87d5a918c40286181c
MD5 fd595ff431052d4a65933d5d5124905a
BLAKE2b-256 8d94465e78bd0715463b7ce95e62cb9a449410e254c9153d08687a39aefa6d9e

See more details on using hashes here.

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