My project is structured like that:
module/
module.py
/utils
utils.py
In utils.py
I import modules like NumPy
, and when I import utils
using from utils import utils
(which I don't get why it wouldn't be just import utils
and I'll be glad if someone could explain) I can access the NumPy
module from utils
with utils.numpy
, is there a way to prevent exposing my imports from submodules/sub-packages?