session Module
Session module.
Used to manage everything related to sessions.
- mrv2.session.clearMetadata() None
Clears the current session metadata.
- mrv2.session.current() str
Returns current session file.
- mrv2.session.load(file: str) bool
Open a session file.
- mrv2.session.metadata(*args, **kwargs)
Overloaded function.
metadata() -> dict[str, str]
Returns the current session metadata.
metadata(key: str) -> str
Returns the current metadata for a key.
- mrv2.session.save(*args, **kwargs)
Overloaded function.
save() -> bool
Save a session file.
save(file: str) -> bool
Save a session file.
- mrv2.session.setCurrent(file: str) None
Sets the current session file.
- mrv2.session.setMetadata(*args, **kwargs)
Overloaded function.
setMetadata(arg0: dict[str, str]) -> None
Sets all the session metadata for a session.
setMetadata(key: str, value: str) -> None
Sets the session metadata for a key.