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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tablign-0.2.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for tablign-0.2.2.tar.gz
Algorithm Hash digest
SHA256 8ef5d4e60899fc30b66d84d2137c7172d63d847e069822512943c382858a48f2
MD5 eab82e6b42e94479339a77f06e987516
BLAKE2b-256 74c4ae974cc47cba0a46080405956688b8065fb38ded08af21a3838c1c847c65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tablign-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for tablign-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8c28d3102d95875b3f1d19695245e69a9657728dea60dc69befdf638258b9ace
MD5 5a51f50e0aa1264e553cc1630febe90a
BLAKE2b-256 f6e3a58e520746a49f47eb0654c29d81aff09360e07f8cd6f3e63208a9af1a03

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