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.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

tablign-0.2.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file tablign-0.2.0.tar.gz.

File metadata

  • Download URL: tablign-0.2.0.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

Hashes for tablign-0.2.0.tar.gz
Algorithm Hash digest
SHA256 323b2094ee631031174eee6a29501905318bae543570ef32714f807e8a64271a
MD5 e029ae6e56394ff1fc00202a521f8c3b
BLAKE2b-256 c7c21fac52a1197ddb57e06705783b2458fceee3f6c8847746ca49e92f0cfbbe

See more details on using hashes here.

File details

Details for the file tablign-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tablign-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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

Hashes for tablign-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbcee3661d2a99544b12ae3dbc5c84bacdf0498cac478f11054184d3430deed5
MD5 12c8eb22c742ac224631e10865c71598
BLAKE2b-256 ef7f3ecc6c9e686332996eec63c1b71c0eee96dd775f0bb75a9371cfa6f16f94

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