Skip to content
SPECIFICTION
Get listed

autopep8

github.com

WindowsmacOSLinuxAPI
Visit github.com
Spec score 7.6 #19 of 34 in Code Formatting Tools

Spec sheet

Purpose
autopep8 automatically formats Python code to conform to the PEP 8 style guide.Read 3 Oct 2026 · github.com
Audience
PyPI classifies the intended audience as developers and the environment as console.Read 3 Oct 2026 · pypi.org
License
PyPI identifies the project license as MIT License.Read 3 Oct 2026 · pypi.org
Change control
By default, autopep8 makes whitespace changes; non-whitespace fixes can be enabled with the aggressive option.Read 3 Oct 2026 · github.com
Change controls
The tool supports selecting or ignoring fix codes, setting a maximum line length, and enabling more aggressive changes.Read 3 Oct 2026 · github.com
Compatibility
PyPI lists Python >=3.9 as a requirement and classifies the operating system as OS Independent.Read 3 Oct 2026 · pypi.org
Configuration
It supports configuration through pyproject.toml, setup.cfg, tox.ini, .pep8, and .flake8 files.Read 3 Oct 2026 · github.com
Fixes
Listed fixes include indentation, whitespace, blank lines, imports, line length, and selected code style issues.Read 3 Oct 2026 · github.com
How it works
It uses pycodestyle to identify formatting issues and can fix most issues that pycodestyle reports.Read 3 Oct 2026 · github.com
Installation
The project documents installation with `pip install --upgrade autopep8`.Read 3 Oct 2026 · github.com
Integration
autopep8 can be used as a pre-commit hook.Read 3 Oct 2026 · github.com
Intended audience
PyPI classifies the package for developers and lists its environment as Console.Read 3 Oct 2026 · pypi.org
Limit
By default, autopep8 makes whitespace changes only; some fixes that can alter code meaning require the `--aggressive` option.Read 3 Oct 2026 · github.com
Programming interface
The project documents using autopep8 as a Python module through its `fix_code()` function.Read 3 Oct 2026 · github.com
Python requirement
The package metadata requires Python 3.9 or newer.Read 3 Oct 2026 · pypi.org
Requirements
autopep8 requires pycodestyle.Read 3 Oct 2026 · github.com
Support and maintenance
The project links to GitHub Issues and lists two PyPI maintainers.Read 3 Oct 2026 · github.com
Windows
The configuration documentation refers to a Windows environment and its `~\.pycodestyle` global configuration file.Read 3 Oct 2026 · github.com

Where Specifiction places it

Alternatives to autopep8All alternatives →