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 pyversions 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

pip install tablign

you can install.

Testing

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

pytest

License

This software is published under the GPLv3 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.3.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

tablign-0.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tablign-0.3.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for tablign-0.3.0.tar.gz
Algorithm Hash digest
SHA256 adb6791c4aaef07e71f1c4843d85dc991a631cf1885b209306a4ce227d837507
MD5 2aa92e7239403d812f3b0b416921f3ec
BLAKE2b-256 a3eefdabf07ac76b063bea3f831ccbd16077f8e06924de9970a0e6f68df57c76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tablign-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for tablign-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b815f4dd62009bd1c8796219cab953c6ad07ea58dd1451809e37f0200cdc451
MD5 695373be454596421f7d239ac34cba48
BLAKE2b-256 5ea4a5074af932e8ae17e4f0f70788918b9fb24e3e8ad3d8b5824c21e99c903e

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