Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

autoflake

Removes unused imports and variables from Python code.

Linting and formattingPYPI

GitHubWebsite

1. License

License from PyPI license expression.

github.com/PyCQA/autoflake

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What autoflake does

Removes unused imports and variables from Python code.

autoflake popularity

38 / 100
Gid Score, #3342 overall
1.1M
downloads a week, pypi
954
GitHub stars
1
agent projects use it
autoflake: downloads per weekPyPI, autoflake 1,069,160
autoflake: GitHub starsPyCQA/autoflake 954

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How autoflake is used

  • autoflake joined the catalog on its public numbers (1,078,257 downloads a week on PyPI and 954 GitHub stars), not on our project count: it is a dependency in 13 public GitHub projects of our scan, 1 of them set up for AI coding agents.
  • The most used alternative in our scan is Ruff (54 projects).
  • Projects that use it most often also use Black (69.2%), Requests (69.2%), packaging (69.2%).

Often used with

In 69.2% of its projects
In 69.2% of its projects
In 69.2% of its projects
In 61.5% of its projects
In 61.5% of its projects
In 61.5% of its projects
In 61.5% of its projects
In 61.5% of its projects

More about autoflake

More in Linting and formatting

Alternatives

autoflake This page

MITGid 381.1M/wk

Ruff

Extremely fast Python linter and code formatter written in Rust for modern projects.

MITGid 80108M/wk

Compare autoflake with another tool

Get started

Install it.

pip install autoflake

No step-by-step start for autoflake yet: we have not written its hand-checked card.