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

Prettier
Free planOpen sourceWebAPIExtensionLinux7.5Free plan - 2
Avidemux
Free planOpen sourceWebLinuxmacOSWindows7.3Free plan - 3
Fourmolu
Free planWebLinuxWindows6.7Free plan - 4
rustfmt
Free planLinuxmacOSWindows6.6Free plan - 5
Black
Free planLinuxmacOSSelf-hostedWindows6.5Free plan - 6

Ruff
Free planWebLinuxmacOSSelf-hosted6.5Free plan
