I am a java developer for python. In java, you can access all classes in one directory without having to import them.
I am trying to achieve the same behavior in python. Is it possible?
I tried various solutions, for example, importing everything into a file, which I import everywhere. This works, but I have to type myClass = rootFolder.folder2.folder3.MyClass() every time I want to access a foreign class.
Could you show me an example of how python architecture works on multiple directories? Do you really need to import all the classes you need in each file?
Imagine I'm writing a web framework. Will users of the framework import everything they need into their files?
source share