simvx.core.assets.sources.mem

In-memory source: for tests and dynamically generated assets.

URI form: mem://<key>. The MemSource instance owns a dict mapping keys to bytes; tests pre-populate it and the AssetServer resolves loads from there.

Module Contents

Classes

API

class simvx.core.assets.sources.mem.MemSource[source]

Initialization

scheme

‘mem’

put(uri: str, contents: bytes) None[source]
read_bytes(uri: str) bytes[source]
version(uri: str) str | None[source]
list(uri: str) collections.abc.Iterable[str][source]