Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Refactoring Tools For Renaming/Moving

I am looking for a python tool that will allow me to specifically rename and move modules.

When I program, I do a LOT of reorganizing things, moving items from package to package, adding new packages, and renaming files. I come from Java, where this is unreasonably easy to do in an IDE.

Right now I'm using aptana, and its refactoring support is decent for renaming a class method or variable, but when it comes to moving a module from one package to another, I see no way around trying a find/replace on your own.

Does anybody know of a reasonable tool to move/rename modules. I've heard of rope, but have not fully investigated yet.

like image 446
Kevin Dolan Avatar asked Nov 05 '22 05:11

Kevin Dolan


1 Answers

Yes, rope is the library you're looking for:

Features

...

  • Rename everything!

...

  • Move class/function/module/package/method
like image 143
jcollado Avatar answered Nov 07 '22 22:11

jcollado