Is there a way to mix subpackages and functions in my Python packages?
Currently, my layout is roughly like this:
lib/ __init__.py Transform.py Statistic.py where Transform.py and Statistic.py contain several functions each. To use them I do something like
from lib import Transform Transform.fft(signal); Now I would like to be able to have a function in a package inside Transform:
from lib.Transform import bins Transform.bins.extent(signal); Is that even possible? How would I have to define my packages to do that?