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.

144.1M 16K 1K
davidhalter
jedi

Awesome autocompletion, static analysis and refactoring library for python

98.2M 6K 541
asottile
tokenize-rt

A wrapper around the stdlib `tokenize` which roundtrips.

6.3M 61 5
ast-grep
ast-grep-cli

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

3.1M 16K 473
pre-commit
pre-commit-hooks

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

2.3M 7K 798
python-rope
rope

a python refactoring library

1.5M 2K 197
ast-grep
ast-grep-py

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

1.3M 16K 473
Borda
pydeprecate

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

726K 62 8
amyreese
fissix

backport of lib2to3, with enhancements

278K 55 23
asottile
classify-imports

Utilities for refactoring imports in python-like syntax.

254K 25 11
joealcorn
laboratory

Achieving confident refactoring through experimentation with Python 2.7 & 3.3+

232K 1K 30
openrewrite
openrewrite

Automated mass refactoring of source code.

164K 4K 581
asottile
aspy-refactor-imports

Utilities for refactoring imports in python-like syntax.

101K 25 11
asottile
reorder-python-imports

Rewrites source to reorder python imports

100K 782 62
enola-labs
enola-cli

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

99K 262 24
isidentical
refactor

AST-based fragmental source code refactoring toolkit for Python

35K 461 21
asottile
reorder-python-imports-black

Rewrites source to reorder python imports

32K 782 62
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.

22K 7K 833
sourcery-ai
sourcery

Instant AI code reviews

21K 2K 100
Mayne-X
pychase

PyChase - Python duplicate code detector using AST normalization + MinHash LSH. Catches Type-1/2/3 clones in functions, methods, and classes with zero dependencies.

15K 3 1
okorolev
pytest-ast-transformer

AST Transformer for tests integrated with py.test.

14K 9 0
semcod
koru

Closed-loop automation across semcod/ repositories.

11K 2 1
officefloor
impact-gate

Code review via the change impact measure

7K 68 2
habit-hooks
habit-hooks

Automated quality checks that nudge AI coding agents toward better habits

6K 225 27
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology