macOS
brew install isortlocal Homebrew formula metadata
安装
brew install isortlocal Homebrew formula metadata
nix profile install nixpkgs#isortnixpkgs package indexes · pkgs/by-name/is/isort/package.nix · 来源: api.github.com
概览
Sort Python imports automatically
历史
isort is a Python command-line tool and library for sorting imports alphabetically and grouping them into sections. Its README frames the tool as a way to sort imports automatically across CLI, library, editor, and pre-commit workflows.
The PyCQA/isort repository was created in 2013, and PyPI metadata shows the 1.0.0 source distribution uploaded on 2013-12-10. Creator Timothy Crosley later described isort 5 as the refactoring of a ten-year-old project, placing isort among the early Python formatting tools that predated the Black-era formatter consolidation.
The project moved into the PyCQA ecosystem and grew from simple import ordering into a configurable formatter with profiles, editor integrations, pre-commit use, and documented upgrade guides. Its 5.0.0 upgrade guide calls that release the first major release in five years, while the changelog records Python 2 maintenance ending in the 4.3.x line and later compatibility work for newer Python versions.
isort became common in Python projects because import order is easy to automate and painful to review by hand. It is packaged by Homebrew, Debian, Ubuntu, Nix, and PyPI, and the project advertises command-line, library, and editor/plugin use.
Its adoption is tied to the broader Python code-quality stack. Documentation and changelog entries repeatedly mention Black compatibility, built-in profiles, pyproject.toml support, pre-commit usage, and editor integration, making it a companion tool for formatters and linters rather than a standalone style checker.
Users run `isort` over files or projects to rewrite import blocks, or use it through pre-commit hooks, editor integrations, and CI checks. Official configuration documentation lists `.isort.cfg`, `pyproject.toml`, `setup.cfg`, `tox.ini`, and `.editorconfig` as project configuration surfaces.
The tool can be used conservatively to check import order or actively to rewrite files, with profiles and options controlling section names, known first-party modules, line length, Black compatibility, and skip rules.
isort matters to package nerds because it shows how a small style tool becomes infrastructure: it appears in release tooling, pre-commit configs, editor extensions, CI images, and distribution packages. A version bump can affect thousands of downstream style checks even when runtime code is untouched.
It is also a useful marker for Python packaging eras: setup.cfg-era configuration, pyproject.toml adoption, Python 2 support removal, Black compatibility, and later trusted-publishing/release-infrastructure changes all show up in its history.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
./.isort.cfg./pyproject.toml./setup.cfg./tox.ini./.editorconfig可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
isort | cli | 全局可执行文件 | |
isort-identify-imports | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://pycqa.github.io/isort/
安装元数据
| 软件包键 | brew:isort |
|---|---|
| 版本 | 8.0.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/isort |
| 主页 | https://pycqa.github.io/isort/ |
| 仓库 | https://github.com/PyCQA/isort |
| 上游文档 | https://github.com/PyCQA/isort#readme |
| 许可证 | MIT |
| 源码归档 | https://files.pythonhosted.org/packages/ef/7c/ec4ab396d31b3b395e2e999c8f46dec78c5e29209fac49d1f4dace04041d/isort-8.0.1.tar.gz |
| 依赖 | python@3.14 |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | isort |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
isort 6.0.1-1
utility for sorting Python imports
https://github.com/PyCQA/isort
sudo apt install isortpython3-isort 6.0.1-1
library for sorting Python imports (Python 3)
https://github.com/PyCQA/isort
sudo apt install python3-isortisort
nix profile install nixpkgs#isortisort 5.6.4-1
utility for sorting Python imports
https://github.com/timothycrosley/isort
sudo apt install isortpython3-isort 5.6.4-1
library for sorting Python imports (Python 3)
https://github.com/timothycrosley/isort
sudo apt install python3-isort来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.