# autoflake — card for AI agents

Removes unused imports and variables from Python code.

Category: Linting and formatting · PyPI package `autoflake` · latest version 2.4.0 (checked 2026-11-01)
Install: `pip install autoflake`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 38.3 (#3342 of all tools, 72 of 83 in its category)
- Used in 1 public projects set up for AI coding agents (0.0%)
- Downloads last week: 1,078,257 (as of 2026-11-24), +3.3% over 4 weeks
- GitHub stars: 954 (as of 2026-11-24)
- Last push: 2026-11-04

## Often used with
Black 69.2%, Requests 69.2%, packaging 69.2%, Rich 61.5%, NumPy 61.5%, Pyflakes 61.5%

## Checked alternatives (same job)
- Ruff: https://agentgid.com/tools/ruff/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/autoflake/
- Homepage: https://www.github.com/PyCQA/autoflake
- Repository: https://github.com/PyCQA/autoflake

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
