macOS
brew install reorder-python-importslocal Homebrew formula metadata
brew / rank 4160
Rewrites source to reorder python imports. Version 3.17.0 via Homebrew; verified 2026-07-11.
install
brew install reorder-python-importslocal Homebrew formula metadata
overview
Rewrites source to reorder python imports
history
reorder-python-imports is a command-line source-rewriting tool that normalizes and modernizes Python import statements.
Anthony Sottile created reorder-python-imports as a Python source-rewriting tool. The official documentation characterizes it as similar to isort but making greater use of static analysis.
The project is usable as a standalone command and as a pre-commit hook. Its official repository includes hook metadata and a sample .pre-commit-config.yaml entry, making import normalization easy to adopt in repository-wide automated checks.
Users pass Python filenames to reorder-python-imports or configure its official pre-commit hook. It separates standard-library, third-party, and first-party imports; places import statements before from imports; splits multi-name from imports; removes duplicates; and can apply version-dependent rewrites. Project roots and src layouts can be supplied through command-line options.
The tool occupies a focused niche between import sorting and static source rewriting. Its predictable transformations and pre-commit integration make it useful to maintainers who want standardized imports with minimal formatter configuration.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
reorder-python-imports | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/asottile/reorder-python-imports
install metadata
| Package key | brew:reorder-python-imports |
|---|---|
| Version | 3.17.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/reorder-python-imports |
| Homepage | https://github.com/asottile/reorder-python-imports |
| Repository | https://github.com/asottile/reorder-python-imports |
| License | MIT |
| Source archive | https://files.pythonhosted.org/packages/06/0e/7d36e6213d30c2639e031992fc2afbe34a7149f1a0bc1e980c451944a0b8/reorder_python_imports-3.17.0.tar.gz |
| Last updated | 2026-07-11T21:26:53Z |
| Pulse | updated |
| Dependencies | python@3.14 |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | reorder-python-imports |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.