file_store

class mautrix.util.file_store.Filer

Bases: Protocol

dump(obj, file)
Parameters
  • obj (Any) –

  • file (IO) –

Return type

None

load(file)
Parameters

file (IO) –

Return type

Any

__init__(*args, **kwargs)
class mautrix.util.file_store.FileStore

Bases: abc.ABC

__init__(path, filer=None, binary=True, save_interval=60.0)
Parameters
Return type

None

path: str | pathlib.Path | IO
filer: mautrix.util.file_store.Filer
binary: bool
save_interval: float
abstract serialize()
Return type

Any

abstract deserialize(data)
Parameters

data (Any) –

Return type

None

async flush()
Return type

None

async open()
Return type

None