ModuleRenamer is a tool to facilitate the update of imports from a project in bulk, using a single file as input.
Let's says that you have a core library used across different projects.
When a module from this library is renamed/moved, all references to this module needs to be manually updated.
With ModuleRenamer, you can update these reference on the whole project using a single file, which can have multiple entries. On this files, each entry needs to have the old path
from the module and the new path
of the module.
The following example shows a file that instructs the tool to update all references of vegetable.tomato
to fruits.tomato
imports_to_move = [('vegetable.tomato', 'fruits.tomato')]
Let's look the tool in action
Let's say that we have the following structure:
And the content of the files
Treat | Quantity | Description |
---|---|---|
|
2.99 | On a stick! |
- TODO
- Free software: MIT license
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.