pkg.soopen package index

brew / 排名 4160

使用 Homebrew 安装 reorder-python-imports

查看 reorder-python-imports 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install reorder-python-imports

local Homebrew formula metadata

概览

软件包摘要

Rewrites source to reorder python imports

命令和别名

  • 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.

时间线

  • 2010s: Project established in the asottile Python code-quality tool ecosystem.
  • 3.x: Official documentation shows continued standalone and pre-commit-hook usage.

Related projects

  • The README explicitly compares the project with isort. It also belongs to the pre-commit ecosystem and complements Python formatters, linters, and source-modernization tools.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
reorder-python-importscli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-09-19
管理器版本3.17.0
管理器更新时间2026-07-11
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
依赖python@3.14
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namereorder-python-imports
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation