Bowler
Bowler copied to clipboard
Renamed imported object if it has the same name as module
Input file:
from commonmark.main import commonmark
Code:
bowler.Query('__init__.py').select_module('commonmark').rename('testme').execute(write=True, silent=True)
Output:
from testme.main import testme