PyCQA/isort
A Python utility / library to sort imports. observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 29
- age_days: 4748
- days_rel: 7
- days_push: 7
- n_releases_24m: 8
Adoption not part of the score
6947 stars · 678 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
isort is a Python utility and library that automatically sorts imports alphabetically and separates them into sections by type. It ships as a CLI tool, a Python library, and editor plugins, with official pre-commit support.
Use cases
- sort python imports alphabetically
- automatically organize import statements in my project
- clean up messy import blocks in python files
- enforce consistent import ordering across a codebase
- make isort compatible with black formatting
- run import sorting in pre-commit hooks
When to choose
- you want automated, deterministic import ordering in Python projects
- you need a formatter that integrates with black, pre-commit, and editors
- you want both a CLI and an embeddable Python library for import sorting
When to avoid
- you need general-purpose code formatting beyond imports (use black or ruff)
- your project is not Python
- you need a linter for code correctness rather than style
Facets
cli-tool · maturity stable
formatter linter cli developer-tools python cli cross-platform import-sorting code-style pre-commit python3 auto-formatter command-line python
2 sources
- readme: https://github.com/PyCQA/isort · fetched 2026-08-28 · 3e2282115a38
- registry_pypi: https://pypi.org/pypi/isort/json · fetched 2026-08-29 · fda070f71410
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| PyCQA/isort | main | 99 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem