Skip to content

Index

backends

Shipped memory backends. Each implements memory-backend/1.1.

backend_factory(system) is the one lookup from a score's system: name to the callable that builds that backend from an attachment's configuration. The files factory takes the resolved location mapping; the cam factory takes the attachment's settings:. The conductor's memory gate selects the backend through it.

Classes

Functions:

backend_factory

backend_factory(system)

The factory for system, or E7 system_unknown naming the legal set.

Source code in src/marianne/memory/backends/__init__.py
def backend_factory(system: str) -> BackendFactory:
    """The factory for ``system``, or E7 ``system_unknown`` naming the legal set."""
    try:
        return _FACTORIES[system]
    except KeyError:
        raise SchemaViolation(
            f"memory backend system `{system}` is not shipped; accepted: "
            f"{', '.join(BACKEND_SYSTEMS)}",
            subtype="system_unknown",
        ) from None