Source code for crystal_toolkit.settings

from typing import Literal

from pydantic import BaseSettings

from crystal_toolkit import MODULE_PATH


[docs]class Settings(BaseSettings): DEBUG_MODE: bool = False MP_EMBED_MODE: bool = False TEST_MODE: bool = False TRANSFORMATION_PREVIEWS: bool = False REDIS_URL: str = "redis://localhost:6379" ASSETS_PATH: str = str(MODULE_PATH / "apps" / "assets") PERSISTENCE: bool = True PERSISTENCE_TYPE: Literal["memory", "session", "local"] = "local"
[docs] class Config: env_prefix = "CT_"
SETTINGS = Settings()