PyPI Stats
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About
Home

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.

147.9M 15K 963
davidhalter
jedi

Awesome autocompletion, static analysis and refactoring library for python

145M 6K 530
asottile
tokenize-rt

A wrapper around the stdlib `tokenize` which roundtrips.

6.9M 61 5
pre-commit
pre-commit-hooks

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

1.5M 6K 788
python-rope
rope

a python refactoring library

1.3M 2K 184
ast-grep
ast-grep-cli

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

1.3M 14K 350
ast-grep
ast-grep-py

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

906K 14K 350
Borda
pydeprecate

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

748K 57 6
asottile
classify-imports

Utilities for refactoring imports in python-like syntax.

317K 24 11
openrewrite
openrewrite

Automated mass refactoring of source code.

255K 3K 518
amyreese
fissix

backport of lib2to3, with enhancements

225K 54 24
joealcorn
laboratory

Achieving confident refactoring through experimentation with Python 2.7 & 3.3+

204K 1K 31
asottile
aspy-refactor-imports

Utilities for refactoring imports in python-like syntax.

139K 24 11
asottile
reorder-python-imports

Rewrites source to reorder python imports

139K 779 58
sourcery-ai
sourcery

Instant AI code reviews

47K 2K 98
isidentical
refactor

AST-based fragmental source code refactoring toolkit for Python

34K 459 20
asottile
reorder-python-imports-black

Rewrites source to reorder python imports

33K 779 58
asottile
all-repos

Clone all your repositories and apply sweeping changes.

23K 624 94
uber
polyglot-piranha

A tool for refactoring code related to feature flag APIs

10K 2K 206
okorolev
pytest-ast-transformer

AST Transformer for tests integrated with py.test.

9K 9 0
sourcery-ai
sourcery-cli

Instant AI code reviews

3K 2K 98
wronai
code2logic

Code2Logic analyzes codebases and generates compact, LLM-friendly representations with semantic understanding. Perfect for feeding project context to AI assistants, building code documentation, or analyzing code structure.

3K 6 1
cheickmec
smellcheck

Python code smell detector & refactoring guide — 82 patterns, 55 AST checks, zero dependencies. Works as Agent Skills plugin, PyPI package, GitHub Action, or pre-commit hook.

3K 0 0
codegen-sh
graph-sitter

Scriptable interface to a powerful, multi-lingual language server built on top of Tree-sitter

2K 38 12
    • Data from PyPI, GitHub, ClickHouse, and BigQuery