Session.get_from_file

Session.get_from_file(filepath, name=None, default=None)

Get a (named) value from a file instead of the session storage.

Parameters:
filepathstr or Path

The source file.

namestr, optional

The name of the value in the source file.

defaultAny, optional

The default value.

Returns:
Any

The value.