macOS
brew install autopep8local Homebrew formula metadata
brew
Automatically formats Python code to conform to the PEP 8 style guide. Version 2.3.2 via Homebrew; verified from local package data.
install
brew install autopep8local Homebrew formula metadata
sudo apt install python3-autopep8Debian stable package indexes · python3-autopep8 · source: deb.debian.org
sudo pacman -S autopep8Arch Linux sync databases · autopep8 · source: geo.mirror.pkgbuild.com
overview
Automatically formats Python code to conform to the PEP 8 style guide
history
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.
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.
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.tomlexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
autopep8 | 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/hhatto/autopep8
install metadata
| Package key | brew:autopep8 |
|---|---|
| Version | 2.3.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/autopep8 |
| Homepage | https://github.com/hhatto/autopep8 |
| Repository | https://github.com/hhatto/autopep8 |
| Upstream docs | https://github.com/hhatto/autopep8#readme |
| License | MIT |
| Source archive | https://files.pythonhosted.org/packages/50/d8/30873d2b7b57dee9263e53d142da044c4600a46f2d28374b3e38b023df16/autopep8-2.3.2.tar.gz |
| 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 | 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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 autopep8source 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.