Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

autopep8

github.com

  • Free plan
  • Windows
  • macOS
  • Linux
  • API
7.2 Club score Visit github.com

What the maker publishes

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

Checked against the maker's pages on 3 Oct 2026.