{"id":26128960,"url":"https://github.com/your-tools/dfmt","last_synced_at":"2025-10-14T11:38:26.811Z","repository":{"id":62567953,"uuid":"280492838","full_name":"your-tools/dfmt","owner":"your-tools","description":"Format paragraphs, comments and doc strings","archived":false,"fork":false,"pushed_at":"2022-07-02T16:39:40.000Z","size":35,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T09:06:03.048Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/your-tools.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-17T18:02:18.000Z","updated_at":"2024-11-25T20:34:23.000Z","dependencies_parsed_at":"2022-11-03T16:30:37.371Z","dependency_job_id":null,"html_url":"https://github.com/your-tools/dfmt","commit_stats":null,"previous_names":["dmerejkowsky/dfmt"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/your-tools%2Fdfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/your-tools%2Fdfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/your-tools%2Fdfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/your-tools%2Fdfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/your-tools","download_url":"https://codeload.github.com/your-tools/dfmt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248759133,"owners_count":21157095,"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":[],"created_at":"2025-03-10T19:29:36.287Z","updated_at":"2025-10-14T11:38:21.781Z","avatar_url":"https://github.com/your-tools.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"dfmt: format paragraphs, comments and doc strings\n=================================================\n\n.. image:: https://img.shields.io/pypi/v/dfmt.svg\n   :target: https://pypi.org/project/dfmt/\n\n\nOverview\n--------\n\ndfmt is a Python command line tool that can reformat text, allowing you to go from::\n\n  this is a pretty big sentence with lots of words that takes a lot of horizontal space\n\nto::\n\n  this is a pretty big sentence with lots\n  of words that takes a lot of horizontal\n  space\n\n\n\nIt can also be used to format paragraphs in comments and doc strings.\n\nInput::\n\n  /**\n   * This is a very long line in a Doxygen comment that takes a lot of space\n   */\n\nOutput::\n\n  /**\n   * This is a very long line in a\n   * Doxygen comment that takes a lot of\n   * space\n   */\n\n\nInstallation\n-------------\n\nThe recommended way is to use `pipx` to install `dfmt`. You can also use `pip` directly if you know\nwhat you are doing.\n\nUsage\n-----\n\nSend the text to stdin, and dfmt will write the results to stdout.\n\nBy default, text is wrapped at 80 characters. You can use the\n`-w,--width` option to set a different size.\n\nAs such, ``dfmt`` can be used in a number of text editors.\n\n\nHow it works\n------------\n\ndfmt contains an hard-coded list of known prefixes.\n\nIt will start by splitting the input in \"regions\" that start with the same\nprefix.\n\nThen it will use the ``textwrap`` module from the Python standard library\nto wrap each region while keeping the existing prefix.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyour-tools%2Fdfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyour-tools%2Fdfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyour-tools%2Fdfmt/lists"}