I am writing an application that has a lot of modules. In my entry-point module i need to import a lot of these modules to build my main GUI window and connect all the necessary MVP-parts. Currently i have something like this:
from project.model.model1 import Model1
from project.model.model2 import Model2
...
from project.view.view1 import View1
...
from project.presenter.presenter1 import Presenter1
from project.presenter.presenter2 import Presenter2
...
I know that i probably should put a lot of these classes into the same module, but i like the structure and short file lengths this Java-like approach gives me.
How do i handle this kind of situation without cluttering my module with 20+ lines of imports? Do i put all the imports into a separate module and import that, or is there a hack that does something like:
from project.model.* import *
Edit: Since this was marked as a duplicate, I don't want to import all of these modules (that would be easier), but import all of the classes of these modules.