Module Import from Subfolders

This is not a Streamlit question per se, but here it is.

I have a folder structure where I keep my all codes. In the main folder, I keep the main Streamlit code. Let’s call it
This calls a sub-directory (that includes with

from subd1 import *

Inside the subd1, there is a streamlit file ( that calls other files in subdirectory. I want to keep the imports clear and without stating import subd1.func1. Instead, I tried to use * to call all. However, it cannot find the submodules inside the subd1 folder.

What should be the best way to organize our folders?

Hey @Berk_Demir,

can you post what your directory structure looks like? I need a visual here to understand!

here is an example: