<filename>python/snewpy/models/__init__.py

from . import base, ccsn ,presn
from warnings import warn

def __getattr__(name):
    if name in dir(ccsn):
        warn(f"{__name__}.{name} is moved to {__name__}.ccsn.{name}", FutureWarning)
        return getattr(ccsn, name)
    raise AttributeError(f"module {__name__} has no attribute {name}")

<filename>python/snewpy/models/__init__.py

from . import base, ccsn ,presn
from warnings import warn

def __getattr__(name):
    if name in dir(ccsn):
        warn(f"{__name__}.{name} is moved to {__name__}.ccsn.{name}", FutureWarning)
        return getattr(ccsn, name)
    raise AttributeError(f"module {__name__} has no attribute {name}")
