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.

150M 15K 971
davidhalter
jedi

Awesome autocompletion, static analysis and refactoring library for python

148.7M 6K 530
asottile
tokenize-rt

A wrapper around the stdlib `tokenize` which roundtrips.

6.8M 61 5
pre-commit
pre-commit-hooks

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

1.8M 7K 788
ast-grep
ast-grep-cli

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

1.5M 14K 362
python-rope
rope

a python refactoring library

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

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

946K 14K 362
Borda
pydeprecate

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

765K 57 6
amyreese
fissix

backport of lib2to3, with enhancements

337K 54 24
asottile
classify-imports

Utilities for refactoring imports in python-like syntax.

308K 24 11
openrewrite
openrewrite

Automated mass refactoring of source code.

217K 3K 522
joealcorn
laboratory

Achieving confident refactoring through experimentation with Python 2.7 & 3.3+

185K 1K 31
asottile
reorder-python-imports

Rewrites source to reorder python imports

134K 781 58
asottile
aspy-refactor-imports

Utilities for refactoring imports in python-like syntax.

126K 24 11
asottile
all-repos

Clone all your repositories and apply sweeping changes.

49K 626 96
sourcery-ai
sourcery

Instant AI code reviews

45K 2K 97
isidentical
refactor

AST-based fragmental source code refactoring toolkit for Python

40K 458 20
asottile
reorder-python-imports-black

Rewrites source to reorder python imports

39K 781 58
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.

28K 461 44
okorolev
pytest-ast-transformer

AST Transformer for tests integrated with py.test.

8K 9 0
uber
polyglot-piranha

A tool for refactoring code related to feature flag APIs

5K 2K 207
sourcery-ai
sourcery-cli

Instant AI code reviews

3K 2K 97
wronai
code2logic

Code2Logic - Source code to logical representation converter for LLM analysis, featuring Tree-sitter parsing, dependency graph analysis, and multi-language support.

2K 6 1
camUrban
octowrap

Intelligently rewrap Python # comment blocks while preserving structure

2K 1 0
    • Data from PyPI, GitHub, ClickHouse, and BigQuery