PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Refactoring Python Packages

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

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

173.2M 15K 983
davidhalter
jedi

Awesome autocompletion, static analysis and refactoring library for python

152.7M 6K 531
asottile
tokenize-rt

A wrapper around the stdlib `tokenize` which roundtrips.

7.1M 61 5
ast-grep
ast-grep-cli

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

2M 15K 405
pre-commit
pre-commit-hooks

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

1.8M 7K 793
python-rope
rope

a python refactoring library

1.4M 2K 183
ast-grep
ast-grep-py

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

854K 15K 405
Borda
pydeprecate

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

829K 58 6
amyreese
fissix

backport of lib2to3, with enhancements

402K 54 24
asottile
classify-imports

Utilities for refactoring imports in python-like syntax.

357K 24 11
openrewrite
openrewrite

Automated mass refactoring of source code.

215K 4K 533
joealcorn
laboratory

Achieving confident refactoring through experimentation with Python 2.7 & 3.3+

178K 1K 31
asottile
reorder-python-imports

Rewrites source to reorder python imports

139K 782 59
asottile
aspy-refactor-imports

Utilities for refactoring imports in python-like syntax.

130K 24 11
semcod
koru

Closed-loop automation across semcod/ repositories.

56K 1 0
asottile
reorder-python-imports-black

Rewrites source to reorder python imports

56K 782 59
isidentical
refactor

AST-based fragmental source code refactoring toolkit for Python

47K 459 20
sourcery-ai
sourcery

Instant AI code reviews

41K 2K 100
asottile
all-repos

Clone all your repositories and apply sweeping changes.

31K 630 96
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.

17K 3K 361
Cranot
roam-code

Local codebase intelligence CLI + MCP server for AI coding agents: SQLite code graph, 28 languages, 238 commands, 224 MCP tools, change-safety gates, audit evidence, zero API keys.

9K 494 48
okorolev
pytest-ast-transformer

AST Transformer for tests integrated with py.test.

9K 9 0
tboy1337
pyrefactor

A Python refactoring and optimization linter that uses AST analysis to identify performance issues, complexity problems, and code improvements.

7K 2 0
sourcery-ai
sourcery-cli

Instant AI code reviews

7K 2K 100
    • Data from PyPI, GitHub, ClickHouse, and BigQuery