LazyLoadSession.get

LazyLoadSession.get(key, default=None, filepath=None)

Return the value for key if key is in the session, else return default or None.

Parameters:
keystr

The identifier of the data value.

defaultAny, optional

A default value.

Returns:
Any

The session data value corresponding to the key/identifier, or the default value if no entry with the given key/identifier exists.

Raises:
KeyError

If the value with the requested key is not available in the session and no default is given.