Files
xiaobaifupan/app/backend/features/accounts/__init__.py
T

25 lines
574 B
Python

__all__ = [
"AccountHttpMixin",
"AccountService",
"SecretVault",
"hash_password",
"token_hash",
"verify_password",
]
def __getattr__(name: str):
if name == "AccountHttpMixin":
from .http import AccountHttpMixin
return AccountHttpMixin
if name == "AccountService":
from .service import AccountService
return AccountService
if name in {"SecretVault", "hash_password", "token_hash", "verify_password"}:
from . import security
return getattr(security, name)
raise AttributeError(name)