Skip to main content

a python refactoring library...

Project description

Build Status Latest version Download count


Rope is the world’s most advanced open source Python refactoring library (yes, I totally stole that tagline from Postgres).

Most Python syntax from Python 2.7 up to Python 3.10 is supported. Please file bugs and contribute patches if you encounter gaps.

From version 1.0.0 onwards, rope will no longer support running on Python 2. If you need Python 2 support, then check out the python2 branch or the 0.x.x releases.

Getting Started

To change your project preferences edit $PROJECT_ROOT/.ropeproject/ where $PROJECT_ROOT is the root folder of your project (this file is created the first time you open a project).

Why use Rope?

  • Rope aims to provide powerful and safe refactoring
  • Rope is light on dependency, Rope only depends on Python itself
  • Unlike PyRight or PyLance, Rope does not depend on Node.js
  • Unlike PyLance or PyCharm, Rope is open source.
  • Unlike PyRight and PyLance, Rope is written in Python itself, so if you experience problems, you would be able to debug and hack it yourself in a language that you are already familiar with
  • In comparison to Jedi, Rope is focused on refactoring. While Jedi provides some basic refactoring capabilities, Rope supports many more advanced refactoring operations and options that Jedi does not.

Bug Reports

Send your bug reports and feature requests at python-rope’s issue tracker in Github.

Project details

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rope-1.1.1.tar.gz (274.6 kB view hashes)

Uploaded source

Built Distribution

rope-1.1.1-py3-none-any.whl (197.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page