macOS
brew install reorder-python-importslocal Homebrew formula metadata
安装
brew install reorder-python-importslocal Homebrew formula metadata
概览
Rewrites source to reorder python imports
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
reorder-python-imports | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/asottile/reorder-python-imports
安装元数据
| 软件包键 | brew:reorder-python-imports |
|---|---|
| 版本 | 3.17.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/reorder-python-imports |
| 主页 | https://github.com/asottile/reorder-python-imports |
| 仓库 | https://github.com/asottile/reorder-python-imports |
| 许可证 | MIT |
| 源码归档 | https://files.pythonhosted.org/packages/06/0e/7d36e6213d30c2639e031992fc2afbe34a7149f1a0bc1e980c451944a0b8/reorder_python_imports-3.17.0.tar.gz |
| 最后更新 | 2026-07-11T21:26:53Z |
| Pulse | updated |
| 依赖 | python@3.14 |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.