Skip to content

common_auth.stores.store

Constructor front door returning the selected store’s honest capability.

Classes

Store

Construct without connecting; no delegating wrapper or backend registry.

The returned store retains its complete API, including PostgreSQL’s explicit initialize operation. Typed settings and convenience inputs share one path.

from_config

@staticmethod
def from_config(config: StoreConfig | Mapping[str, object], *, protector: Protector | None = None, pool: Any = None) -> BaseStore

memory

@classmethod
def memory(**settings: Any) -> MemoryStore

postgres

@classmethod
def postgres(*, protector: Protector, pool: Any = None, **settings: Any) -> PostgresStore