{
 "kind": "tool",
 "slug": "autopep8",
 "path": "tools/autopep8/",
 "name": "autopep8",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Linting and formatting",
   "tools/lint-format/"
  ]
 ],
 "lead": "Reformats Python code to the PEP 8 style guide.",
 "chips": [
  {
   "label": "Linting and formatting",
   "path": "tools/lint-format/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install autopep8"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/hhatto/autopep8"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI classifier.",
   "src": "https://github.com/hhatto/autopep8"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Jul 20, 2026",
   "note": "Latest GitHub release Jan 14, 2025. ",
   "src": "https://github.com/hhatto/autopep8"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "Not in our scan",
   "status": "info",
   "sub": "#82 of 83 in its category",
   "note": "Dependency in 0 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What autopep8 does",
   "parts": [
    {
     "t": "prose",
     "text": "Reformats Python code to the PEP 8 style guide."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "autopep8 popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "53",
       "of": "/ 100",
       "l": "Gid Score, #1679 overall"
      },
      {
       "n": "1.9M",
       "l": "downloads a week, pypi"
      },
      {
       "n": "4,651",
       "l": "GitHub stars"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How autopep8 is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "autopep8 is a dependency in 0 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 56 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is Black (78 projects).",
      "Projects that use it most often also use pycodestyle (85.7%), Requests (85.7%), Click (83.9%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 85.7% of its projects",
       "v": "pycodestyle",
       "path": "tools/pycodestyle/"
      },
      {
       "l": "In 85.7% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 83.9% of its projects",
       "v": "Click",
       "path": "tools/click-py/"
      },
      {
       "l": "In 83.9% of its projects",
       "v": "Jinja2",
       "path": "tools/jinja2/"
      },
      {
       "l": "In 83.9% of its projects",
       "v": "NumPy",
       "path": "tools/numpy/"
      },
      {
       "l": "In 82.1% of its projects",
       "v": "attrs",
       "path": "tools/attrs/"
      },
      {
       "l": "In 82.1% of its projects",
       "v": "MarkupSafe",
       "path": "tools/markupsafe/"
      },
      {
       "l": "In 82.1% of its projects",
       "v": "packaging",
       "path": "tools/packaging/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about autopep8",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Linting and formatting",
       "path": "tools/lint-format/",
       "items": [
        {
         "text": "ESLint",
         "path": "tools/eslint/"
        },
        {
         "text": "Prettier",
         "path": "tools/prettier/"
        },
        {
         "text": "Biome",
         "path": "tools/biomejs/"
        },
        {
         "text": "oxlint",
         "path": "tools/oxlint/"
        },
        {
         "text": "oxfmt",
         "path": "tools/oxfmt/"
        },
        {
         "text": "Knip",
         "path": "tools/knip/"
        },
        {
         "text": "stylelint",
         "path": "tools/stylelint/"
        },
        {
         "text": "ESLint Import Resolver TypeScript",
         "path": "tools/eslint-import-resolver-typescript/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "autopep8",
       "me": true,
       "facts": [
        "MIT",
        "Gid 53",
        "1.9M/wk"
       ]
      },
      {
       "name": "Black",
       "why": "Uncompromising Python code formatter enforcing consistent style automatically.",
       "path": "tools/black/",
       "facts": [
        "MIT",
        "Gid 76",
        "25.7M/wk"
       ]
      },
      {
       "name": "Ruff",
       "why": "Extremely fast Python linter and code formatter written in Rust for modern projects.",
       "path": "tools/ruff/",
       "facts": [
        "MIT",
        "Gid 80",
        "108M/wk"
       ]
      }
     ],
     "more": "Compare autopep8 with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install autopep8"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for autopep8 yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi autopep8"
  ],
  [
   "Category",
   "Linting and formatting"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "52.7"
  ],
  [
   "Rank in category",
   "#82 of 83"
  ],
  [
   "GitHub",
   "hhatto/autopep8"
  ],
  [
   "Last change",
   "Jul 20, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/hhatto.png"
}