"""tesm_core -- gemeinsames Anwendungsgeruest von TESM und TESM-Lizenzserver.

Enthaelt alles, was beide Anwendungen teilen: Konfiguration, Datenbankzugriff,
Migrationen, Schluesselverwaltung, Sitzungen, CSRF, Rechtesystem, Navigation,
Benutzer-/Gruppen-/Kontoverwaltung, Papierkorb, Diagnose und das
Design-System.
"""

from __future__ import annotations

__version__ = "2.0.0"

from .app_factory import create_base_app
from .config import CoreConfig, SecurityConfig, load_core_config
from .db import Database, NestedConnectionError
from .extension import TesmCore, core, db, transaction
from .migrations import Migration
from .nav import NavItem, NavTree
from .settings_store import SettingSpec, SettingsStore

__all__ = [
    "CoreConfig",
    "Database",
    "Migration",
    "NavItem",
    "NavTree",
    "NestedConnectionError",
    "SecurityConfig",
    "SettingSpec",
    "SettingsStore",
    "TesmCore",
    "core",
    "create_base_app",
    "db",
    "load_core_config",
    "transaction",
    "__version__",
]
