# src/dowrshak_access/__init__.py
from __future__ import annotations
import dworshak_secret
import warnings

# Raise a warning so they know they need to update their code
warnings.warn(
    "dworshak-access is deprecated. Please use dworshak-secret instead.",
    DeprecationWarning,
    stacklevel=2
)

# Dynamically pull everything from the new package's namespace into this one
from dworshak_secret import *

# Ensure __all__ is synced so that 'from dworshak_access import *' also works
try:
    __all__ = dworshak_secret.__all__
except AttributeError:
    # Fallback if dworshak_secret doesn't define __all__
    __all__ = [name for name in dir(dworshak_secret) if not name.startswith("_")]
