isort
Isort is an open-source Python utility that automatically sorts imports within Python files. Its goal is to enforce a consistent import order and grouping, improving readability and reducing merge conflicts. Isort can organize imports into sections such as standard library, third-party packages, and local application modules, and can enforce blank lines between groups. It can also combine from-imports from the same module and order within groups, according to configurable rules or profiles.
Isort is configurable via configuration files (for example pyproject.toml, setup.cfg, .isort.cfg, or tox.ini) and supports various
Isort is maintained as an open-source project on platforms like GitHub and PyPI, and is widely adopted