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.

  1. metadata() -> dict[str, str]

Returns the current session metadata.

  1. metadata(key: str) -> str

Returns the current metadata for a key.

mrv2.session.save(*args, **kwargs)

Overloaded function.

  1. save() -> bool

Save a session file.

  1. 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.

  1. setMetadata(arg0: dict[str, str]) -> None

Sets all the session metadata for a session.

  1. setMetadata(key: str, value: str) -> None

Sets the session metadata for a key.