load_pickle

load_pickle(key, *subkeys, name, mode='rb', open_kwargs=None, pickle_load_kwargs=None)[source]

Open a pickle file with pickle.

Parameters:
  • key (str) – The module name

  • subkeys (str) – A sequence of additional strings to join. If none are given, returns the directory for this module.

  • name (str) – The name of the file to open

  • mode (str) – The read mode, passed to open()

  • open_kwargs (Optional[Mapping[str, Any]]) – Additional keyword arguments passed to open()

  • pickle_load_kwargs (Optional[Mapping[str, Any]]) – Keyword arguments to pass through to pickle.load().

Return type:

Any

Returns:

Any object