{"id":24640038,"url":"https://github.com/mrjohannchang/columnify.py","last_synced_at":"2025-12-14T09:01:25.709Z","repository":{"id":49377584,"uuid":"516244068","full_name":"mrjohannchang/columnify.py","owner":"mrjohannchang","description":"Creating text-based columnized (ls-like) content suitable for console output from list of strings.","archived":false,"fork":false,"pushed_at":"2022-07-25T14:05:10.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-18T22:48:10.981Z","etag":null,"topics":["alignment","column","library","ls-like","python","terminal","text-editing"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/columnify/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrjohannchang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-21T06:00:17.000Z","updated_at":"2023-07-10T18:24:43.000Z","dependencies_parsed_at":"2022-09-15T07:00:46.368Z","dependency_job_id":null,"html_url":"https://github.com/mrjohannchang/columnify.py","commit_stats":null,"previous_names":["johannchangpro/columnify.py","changyuheng/columnify.py"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrjohannchang/columnify.py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrjohannchang%2Fcolumnify.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrjohannchang%2Fcolumnify.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrjohannchang%2Fcolumnify.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrjohannchang%2Fcolumnify.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrjohannchang","download_url":"https://codeload.github.com/mrjohannchang/columnify.py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrjohannchang%2Fcolumnify.py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27724108,"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","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alignment","column","library","ls-like","python","terminal","text-editing"],"created_at":"2025-01-25T11:30:20.698Z","updated_at":"2025-12-14T09:01:25.693Z","avatar_url":"https://github.com/mrjohannchang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# columnify\n\nInspired by [columnify](https://github.com/timoxley/columnify).\n\n`columnify` creates text-based columnized (ls-like) content suitable for console output from list of strings.\n\nColumns are automatically resized to fit the content of the largest cell. Each cell will be padded with spaces to fill the available space and ensure column contents are aligned.\n\n**Table of Contents**\n\n- [Examples](#examples)\n- [Installation](#installation)\n- [API](#api)\n  - [Methods](#methods)\n- [License](#license)\n\n## Examples\n\n```py\nitems: list[str] = [\n    \"Canidae\", \"Felidae\", \"Cat\", \"Cattle\", \"Dog\",\n    \"Donkey\", \"Goat\", \"Guinea pig\", \"Horse\", \"Pig\",\n    \"Rabbit\", \"Fancy rat varieties\", \"laboratory rat strains\",\n]\n```\n\n### Default\n\n```text\nCanidae  Cat     Dog     Goat        Horse  Rabbit               laboratory rat strains\nFelidae  Cattle  Donkey  Guinea pig  Pig    Fancy rat varieties\n```\n\n### Horizon first\n\n```text\nCanidae     Felidae  Cat  Cattle  Dog                  Donkey                  Goat\nGuinea pig  Horse    Pig  Rabbit  Fancy rat varieties  laboratory rat strains\n```\n\n### center()\n\n```text\nCanidae   Cat     Dog       Goat     Horse         Rabbit        laboratory rat strains\nFelidae  Cattle  Donkey  Guinea pig   Pig   Fancy rat varieties\n```\n\n### rjust()\n\n```text\nCanidae     Cat     Dog        Goat  Horse               Rabbit  laboratory rat strains\nFelidae  Cattle  Donkey  Guinea pig    Pig  Fancy rat varieties\n```\n\n### Custom delimiter ( | )\n\n```text\nCanidae | Cattle | Goat       | Pig                 | laboratory rat strains\nFelidae | Dog    | Guinea pig | Rabbit\nCat     | Donkey | Horse      | Fancy rat varieties\n```\n\n### Indent (4 spaces):\n\n```text\n    Canidae  Cattle  Goat        Pig                  laboratory rat strains\n    Felidae  Dog     Guinea pig  Rabbit\n    Cat      Donkey  Horse       Fancy rat varieties\n```\n\nSee `examples/example.py` for more information.\n\n## Installation\n\n```console\npip install columnify\n```\n\n## API\n\n### Methods\n\n```py\ndef columnify(\n        items: list[str],\n        line_width: int,\n        indent: int = 0,\n        delimiter: str = '  ',\n        align_func_name: str = 'ljust',\n        horizon_first: bool = False) -\u003e str:\n    ...\n```\n\n## License\n\n`columnify` is distributed under the terms of the [MPL-2.0](https://spdx.org/licenses/MPL-2.0.html) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrjohannchang%2Fcolumnify.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrjohannchang%2Fcolumnify.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrjohannchang%2Fcolumnify.py/lists"}