{"id":15620673,"url":"https://github.com/nschloe/tablign","last_synced_at":"2025-07-18T03:08:16.682Z","repository":{"id":45492762,"uuid":"121247472","full_name":"nschloe/tablign","owner":"nschloe","description":"Aligns columns in your ASCII tables on the command line or in vim.","archived":false,"fork":false,"pushed_at":"2023-02-05T14:34:15.000Z","size":213,"stargazers_count":42,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-28T16:14:25.260Z","etag":null,"topics":["ascii","pretty-print","tables","vim"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nschloe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-12T13:05:01.000Z","updated_at":"2025-03-30T21:32:39.000Z","dependencies_parsed_at":"2023-02-19T00:15:26.027Z","dependency_job_id":null,"html_url":"https://github.com/nschloe/tablign","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nschloe%2Ftablign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nschloe%2Ftablign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nschloe%2Ftablign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nschloe%2Ftablign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nschloe","download_url":"https://codeload.github.com/nschloe/tablign/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251342725,"owners_count":21574245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii","pretty-print","tables","vim"],"created_at":"2024-10-03T09:01:57.542Z","updated_at":"2025-04-28T16:14:30.826Z","avatar_url":"https://github.com/nschloe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/nschloe/tablign\"\u003e\u003cimg alt=\"tablign\" src=\"https://nschloe.github.io/tablign/logo.svg\" width=\"60%\"\u003e\u003c/a\u003e\n  \u003cp align=\"center\"\u003eAligns columns in your ASCII tables.\u003c/p\u003e\n\u003c/p\u003e\n\n[![PyPi Version](https://img.shields.io/pypi/v/tablign.svg?style=flat-square)](https://pypi.org/project/tablign)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/tablign.svg?style=flat-square)](https://pypi.org/pypi/tablign/)\n[![GitHub stars](https://img.shields.io/github/stars/nschloe/tablign.svg?style=flat-square\u0026logo=github\u0026label=Stars\u0026logoColor=white)](https://github.com/nschloe/tablign)\n[![PyPi downloads](https://img.shields.io/pypi/dm/tablign.svg?style=flat-square)](https://pypistats.org/packages/tablign)\n\n[![gh-actions](https://img.shields.io/github/actions/workflow/status/nschloe/tablign/tests.yml?branch=main)](https://github.com/nschloe/tablign/actions?query=workflow%3Aci)\n[![codecov](https://img.shields.io/codecov/c/github/nschloe/tablign.svg?style=flat-square)](https://codecov.io/gh/nschloe/tablign)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)\n\nInstall with\n\n```sh\npip install tablign\n```\n\n```sh\ntablign in.txt out.txt\n```\n\nyou can convert your input file\n\n```\n| A | 1.34|-214.1|\n|CCCC | 55.534|   1131.1|\n```\n\ninto\n\n```\n| A    |  1.34  | -214.1 |\n| CCCC | 55.534 | 1131.1 |\n```\n\nColumn widths are unified across the table, decimal dots are aligned, and tablign tries\nto be smart about column separators. Works for CSV, LaTeX, Markdown etc. By default,\n`tablign` reads from stdin and writes to stdout, so you can use pipes with tablign, too:\n\n```\nhead -n in.txt | tablign\n```\n\n### Usage from vim\n\nSimply mark the table (shift-V), and type\n\n```\n:'\u003c,'\u003e:!tablign\n```\n\n![](https://nschloe.github.io/tablign/tty-capture.gif)\n\n### Alternatives\n\n[GNU's `column` command](https://man7.org/linux/man-pages/man1/column.1.html) is a mighty alternative:\n\n```sh\ncolumn -t\n```\n\nSee [here](https://stackoverflow.com/q/1229900/353337) for more alternatives.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnschloe%2Ftablign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnschloe%2Ftablign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnschloe%2Ftablign/lists"}