{"id":16653496,"url":"https://github.com/delgan/config-formatter","last_synced_at":"2025-09-11T11:30:56.936Z","repository":{"id":39516325,"uuid":"506991543","full_name":"Delgan/config-formatter","owner":"Delgan","description":"An automatic formatter for .ini and .cfg configuration files","archived":false,"fork":false,"pushed_at":"2023-11-27T17:38:31.000Z","size":29,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-30T01:42:00.515Z","etag":null,"topics":["cfg","config","configuration","formatter","ini","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Delgan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-24T11:51:20.000Z","updated_at":"2024-12-02T04:08:18.000Z","dependencies_parsed_at":"2023-11-27T18:50:06.970Z","dependency_job_id":null,"html_url":"https://github.com/Delgan/config-formatter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Delgan%2Fconfig-formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Delgan%2Fconfig-formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Delgan%2Fconfig-formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Delgan%2Fconfig-formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Delgan","download_url":"https://codeload.github.com/Delgan/config-formatter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232641229,"owners_count":18554527,"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":["cfg","config","configuration","formatter","ini","python"],"created_at":"2024-10-12T09:45:19.052Z","updated_at":"2025-01-05T20:57:37.435Z","avatar_url":"https://github.com/Delgan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# config-formatter\n\n[![Pypi version](https://img.shields.io/pypi/v/config-formatter.svg)](https://pypi.python.org/pypi/config-formatter) [![Python version](https://img.shields.io/badge/python-3.6%2B-blue.svg)](https://pypi.python.org/pypi/config-formatter) [![Build status](https://img.shields.io/github/actions/workflow/status/Delgan/config-formatter/tests.yml?branch=main)](https://github.com/Delgan/config-formatter/actions/workflows/tests.yml?query=branch:main) [![License](https://img.shields.io/github/license/delgan/config-formatter.svg)](https://github.com/Delgan/config-formatter/blob/main/LICENSE)\n\nAn automatic formatter for .ini and .cfg configuration files.\n\n\n## Installation\n\n```shell\npip install config-formatter\n```\n\n## Usage\n\n```python\nfrom config_formatter import ConfigFormatter\n\nwith open(\"config.ini\", \"r\") as file:\n    formatter = ConfigFormatter()\n    formatted = formatter.prettify(file.read())\n    print(formatted)\n```\n\n## Example\n\nBefore:\n\n```ini\n[main]        # Comments are preserved.\n\n    # Error-prone indentation is removed.\n    [section1]\n    key1: value1\n    key2=value2  # Value assignment is normalized.\n\n\n[section2]\nlists =\n are\n indented\n# including\n comments\n\nmultiline =    text that spans\n on several lines\n      is properly aligned.\n```\n\nAfter:\n\n```ini\n[main]  # Comments are preserved.\n\n# Error-prone indentation is removed.\n[section1]\nkey1 = value1\nkey2 = value2  # Value assignment is normalized.\n\n[section2]\nlists =\n    are\n    indented\n    # including\n    comments\n\nmultiline = text that spans\n            on several lines\n            is properly aligned.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelgan%2Fconfig-formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelgan%2Fconfig-formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelgan%2Fconfig-formatter/lists"}