Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Refactoring Python Packages

Python packages with the GitHub topic refactoring. Sorted by monthly downloads, with stars and forks.
pre-commit
pre-commit

A framework for managing and maintaining multi-language pre-commit hooks.

151.9M 16K 1K
davidhalter
jedi

Awesome autocompletion, static analysis and refactoring library for python

116M 6K 551
asottile
tokenize-rt

A wrapper around the stdlib `tokenize` which roundtrips.

7.1M 61 6
ast-grep
ast-grep-cli

⚡A CLI tool for code structural search, lint and rewriting. Written in Rust

4.5M 17K 520
ast-grep
ast-grep-py

⚡A CLI tool for code structural search, lint and rewriting. Written in Rust

2.8M 17K 520
pre-commit
pre-commit-hooks

Some out-of-the-box hooks for pre-commit

2.3M 7K 800
python-rope
rope

a python refactoring library

1.6M 2K 216
Borda
pydeprecate

Smoothly deprecate and redirect Python functions/classes with smart warnings and auto-routing—keep your codebase clean while maintaining backward compatibility

1.2M 64 8
amyreese
fissix

backport of lib2to3, with enhancements

356K 55 23
asottile
classify-imports

Utilities for refactoring imports in python-like syntax.

258K 25 11
enola-labs
enola-cli

Understand, analyze, and govern software systems across repositories, languages, and technologies.

240K 315 28
joealcorn
laboratory

Achieving confident refactoring through experimentation with Python 2.7 & 3.3+

197K 1K 30
asottile
reorder-python-imports

Rewrites source to reorder python imports

165K 780 63
asottile
aspy-refactor-imports

Utilities for refactoring imports in python-like syntax.

107K 25 11
openrewrite
openrewrite

Automated mass refactoring of source code.

99K 4K 614
isidentical
refactor

AST-based fragmental source code refactoring toolkit for Python

41K 460 21
repowise-dev
repowise

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

38K 8K 1K
sourcery-ai
sourcery

Instant AI code reviews

25K 2K 107
habit-hooks
habit-hooks

Automated quality checks that nudge AI coding agents toward better habits

24K 285 34
habit-hooks
habit-hooks-generic

Automated quality checks that nudge AI coding agents toward better habits

24K 285 34
Stephen-Collins-tech
hotspots-cli

Find the riskiest code in any repo. A CLI for surfacing complexity hotspots and refactor targets.

17K 7 0
habit-hooks
habit-hooks-python

Automated quality checks that nudge AI coding agents toward better habits

16K 285 34
okorolev
pytest-ast-transformer

AST Transformer for tests integrated with py.test.

16K 9 0
semcod
koru

Closed-loop automation across semcod/ repositories.

15K 2 1
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology