macOS
brew install autopep8local Homebrew formula metadata
安装
brew install autopep8local Homebrew formula metadata
sudo apt install python3-autopep8Debian stable package indexes · python3-autopep8 · 来源: deb.debian.org
sudo pacman -S autopep8Arch Linux sync databases · autopep8 · 来源: geo.mirror.pkgbuild.com
概览
Automatically formats Python code to conform to the PEP 8 style guide
历史
autopep8 is a Python formatter that uses pycodestyle diagnostics to rewrite code toward PEP 8. It predates the Black era of Python formatting and represents the earlier style of configurable, error-code-driven automatic cleanup.
The official GitHub repository was created in December 2010. The README describes autopep8 as a tool that automatically formats Python code to conform to PEP 8, using pycodestyle to determine which parts need formatting.
The project grew around pycodestyle error codes: the README lists many E and W codes autopep8 can fix, plus conservative defaults and more aggressive modes for changes that may affect semantics.
autopep8 spread through Python packaging and editor integrations as a command-line formatter. The batch input lists Homebrew plus Debian/Ubuntu and Arch packages, while the official README points users to pip, PyPI, GitHub, and pre-commit hook usage.
Its GitHub metadata shows thousands of stars and hundreds of forks, consistent with long-running use in Python developer workflows even as opinionated formatters became more prominent later.
Common usage is autopep8 --in-place with one or more --aggressive flags, or --diff for review. The README also documents module use through fix_code(), recursive operation, parallel jobs, line ranges, pre-commit integration, and pyproject.toml support.
Configuration can come from a global pycodestyle file, project files such as setup.cfg, tox.ini, .pep8, and .flake8, or pyproject.toml under [tool.autopep8], which takes precedence over other configuration files.
autopep8 is useful to package nerds because it bridges Python packaging, linter configuration, editor formatting, and pre-commit automation without imposing a single style regime. Its behavior is legible in terms of pycodestyle codes, which makes distro and CI behavior easier to explain than opaque formatter output.
安全态势
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.
~/.config/pycodestylesetup.cfgtox.ini.pep8.flake8pyproject.toml~\.pycodestylesetup.cfgtox.ini.pep8.flake8pyproject.toml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
autopep8 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/hhatto/autopep8
安装元数据
| 软件包键 | brew:autopep8 |
|---|---|
| 版本 | 2.3.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/autopep8 |
| 主页 | https://github.com/hhatto/autopep8 |
| 仓库 | https://github.com/hhatto/autopep8 |
| 上游文档 | https://github.com/hhatto/autopep8#readme |
| 许可证 | MIT |
| 源码归档 | https://files.pythonhosted.org/packages/50/d8/30873d2b7b57dee9263e53d142da044c4600a46f2d28374b3e38b023df16/autopep8-2.3.2.tar.gz |
| 依赖 | python@3.14 |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | autopep8 |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
python3-autopep8 2.3.2-1
tool that automatically formats Python code to conform to PEP 8
https://github.com/hhatto/autopep8
sudo apt install python3-autopep8python3-autopep8 2.0.4-2
tool that automatically formats Python code to conform to PEP 8
https://github.com/hhatto/autopep8
sudo apt install python3-autopep8autopep8 1:2.3.2-2
A tool that automatically formats Python code to conform to the PEP 8 style guide
https://github.com/hhatto/autopep8
sudo pacman -S autopep8来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.