enlace_auth.stores.backends#
MutableMapping-backed store factories for enlace.
The file backend is the MVP default: one directory per named store under a
platform root (~/.enlace/platform_store/ by default). Values are JSON.
When dol is installed (via enlace[auth]), make_file_store_factory
uses dol.Files + a JSON codec. When it isn’t, we fall back to a tiny
stdlib implementation so the core package keeps working.
Functions
|
Return a |
- enlace_auth.stores.backends.make_file_store_factory(root, *, use_dol=False)[source]#
Return a
StoreFactorybacked by JSON files underroot.factory(name)returns aMutableMappingrooted atroot/name/.Defaults to a small stdlib implementation that auto-creates parent directories on write. Pass
use_dol=Trueto usedol.Filesinstead (pulls in the soft dep and expects flat keys).- Return type: