{"id":13771140,"url":"https://github.com/Kludex/kwonly-transformer","last_synced_at":"2025-05-11T03:33:06.119Z","repository":{"id":37101388,"uuid":"504409277","full_name":"Kludex/kwonly-transformer","owner":"Kludex","description":"We don't like positional args, we like keyword only args! 🎉","archived":false,"fork":false,"pushed_at":"2022-10-02T11:16:36.000Z","size":12,"stargazers_count":89,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T16:17:47.453Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Kludex.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":"2022-06-17T05:47:49.000Z","updated_at":"2025-03-01T16:53:19.000Z","dependencies_parsed_at":"2023-01-19T06:31:53.470Z","dependency_job_id":null,"html_url":"https://github.com/Kludex/kwonly-transformer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kludex%2Fkwonly-transformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kludex%2Fkwonly-transformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kludex%2Fkwonly-transformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kludex%2Fkwonly-transformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kludex","download_url":"https://codeload.github.com/Kludex/kwonly-transformer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253514352,"owners_count":21920327,"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":"2024-08-03T17:00:48.191Z","updated_at":"2025-05-11T03:33:05.825Z","avatar_url":"https://github.com/Kludex.png","language":"Python","funding_links":[],"categories":["UNIX-way formatters"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    \u003cstrong\u003ekwonly-transformer\u003c/strong\u003e\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://pypi.org/project/kwonly-transformer\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/v/kwonly-transformer\" alt=\"Package version\"\u003e\n    \u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/kwonly-transformer\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/Kludex/kwonly-transformer\"\u003e\n\u003c/p\u003e\n\nThis is a very opinionated tool. The idea is that we want functions with multiple parameters to have **exclusively** keyword only parameters.\n\nAs an example, let's consider a function with multiple parameters. When we are reading the call for that function,\nwe lose time either checking the reference, or trying to map in our brains what argument matches a specific function parameter.\n```python\ndef do_something(a, b, c, d, e, f):\n    ...\n\ndo_something(True, \"potato\", 1, \"haha\", None, False)\n```\n`kwonly-transformer` is a tool that formats the above into the following:\n\n```python\ndef do_something(*, a, b, c, d, e, f):\n    ...\n\ndo_something(a=True, b=\"potato\", c=1, d=\"haha\", e=None, f=False)\n```\n\n## Installation\n\n```bash\npip install kwonly-transformer\n```\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKludex%2Fkwonly-transformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKludex%2Fkwonly-transformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKludex%2Fkwonly-transformer/lists"}