mnmelo / lazy_import

A module for lazy loading of Python modules
Other
86 stars 29 forks source link

Import "from" support? #27

Open chrisspen opened 5 months ago

chrisspen commented 5 months ago

Is there support for the conventional "from" statement?

Say I have:

from mymodule import abc, def, xyz

is there a lazy equivalent like this?

abc, def, xyz = lazy_import.lazy_module("mymodule", subs=("abc", "def", "xyz"))