# python-rope/rope

a python refactoring library

Repository: https://github.com/python-rope/rope
Canonical: https://ross.abutalabs.com/products/python-rope-rope
Language: Python
License: LGPL-3.0
License Family: copyleft
Topics: python, refactoring-tools, refactoring, ast
Last push: 2026-08-25T17:40:46+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 4659, "days_push": 8, "days_rel": 417, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2234, forks 190 (observed 2026-08-28T04:06:29.281658+00:00)

## What it is
Rope is an open-source Python refactoring library supporting refactoring operations like renaming, extracting methods, and moving code, built on Python's AST. It can be used as a library or integrated into IDEs and text editors, with no dependencies beyond Python itself.

## Use cases
- rename symbols across a python codebase
- extract methods or variables automatically
- integrate python refactoring into a text editor
- programmatically refactor python source code
- move modules and reorganize python projects
- build custom code transformation tools for python

## When to choose
- you need safe, automated refactoring of Python code
- you want a pure-Python alternative to Node.js-based tools like PyRight
- you're building an editor plugin or IDE with refactoring support
- you need advanced refactoring operations beyond what Jedi offers

## When to avoid
- you only need type checking or linting rather than refactoring
- you still need Python 2 support (use the 0.x releases)
- you want a full IDE out of the box rather than a library

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, parser
- domain: developer-tools, programming-languages, text-editors
- platform: python, cross-platform
- tags: refactoring, static-analysis, ast, ide-integration, code-transformations

## Member repositories
- python-rope/rope (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:29.281658+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:44:23.320768+00:00, confidence not recorded.
  - readme: https://github.com/python-rope/rope (fetched 2026-08-28T04:06:29.281658+00:00, sha 9fa4f352f499)
  - registry_pypi: https://pypi.org/pypi/rope/json (fetched 2026-08-29T10:25:03.260292+00:00, sha e3a58bb1e041)
- Data as of 2026-08-30T08:39:29.467469+00:00.
