smart-imports
smart-imports copied to clipboard
smart imports for Python
When https://github.com/jackmaney/python-stdlib-list will support that version
https://docs.python.org/3/reference/import.html#namespace-packages
Module's source parsed to AST two times: - during import time - during call of smart_imports.all() Probably it is possible to implement import hook to compile & analyze one AST...
fast experiment shown, that there no great profit from that on my projects, but that feature could be helpfull in some cases