{"id":23344423,"url":"https://github.com/rec/simp","last_synced_at":"2025-07-18T01:37:28.696Z","repository":{"id":57467252,"uuid":"264249864","full_name":"rec/simp","owner":"rec","description":"Simple include file sorting","archived":false,"fork":false,"pushed_at":"2021-04-11T16:37:24.000Z","size":45,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T18:53:00.880Z","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/rec.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","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":"2020-05-15T16:55:53.000Z","updated_at":"2021-04-11T16:36:57.000Z","dependencies_parsed_at":"2022-09-10T02:01:48.503Z","dependency_job_id":null,"html_url":"https://github.com/rec/simp","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rec%2Fsimp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rec%2Fsimp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rec%2Fsimp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rec%2Fsimp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rec","download_url":"https://codeload.github.com/rec/simp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247693377,"owners_count":20980658,"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-12-21T06:26:37.603Z","updated_at":"2025-04-07T16:46:43.820Z","avatar_url":"https://github.com/rec.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"simp.py\n-------\n\nUsage\n=====\n\n.. code-block:: bash\n\n       simp.py [-h] [--commit] [--dry_run] [--fail] [targets [targets ...]]\n\nDescription\n===========\n\nSort the import directives in Python files, excluding __future__.\n\nPositional arguments\n====================\n\n``targets``\n  One or more Python files or directories with Python files.\n  Without arguments, runs simp on the current directory.\n\nOptional arguments\n==================\n\n``-h``, ``--help``\n  Show this help message and exit\n\n``--commit``, ``-c``\n  Git commit the changes\n\n``--dry_run``, ``-d``\n  If set, do not make the changes to the Python files, but just\n  list the diffs.\n\n``--fail``, ``-f``\n  If set, the program fails if any changes need to be made. This\n  is useful for a commit hook to check if all imports are sorted.\n\n\nComments\n========\n\nI wanted to sort my Python includes with no fuss. ``simp`` finds the first block\nof unindented import statements, and sorts them. Any comments between import\nlines bubble up to the top in their original order.\n\n(automatically generated by `doks \u003chttps://github.com/rec/doks/\u003e`_ on 2020-11-01T14:22:18.849238)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frec%2Fsimp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frec%2Fsimp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frec%2Fsimp/lists"}