export_data

classmethod Dict.export_data(dct, filename)[source]

Saves data from the given dictionary into the specified file.

Parameters
  • dct (dictionary) – A dictionary to save to file, presumably obtained from the to_dict method of this class.

  • filename (str or path object) – The filename to store the dictionary.

Notes

This method uses the pickle module to save the dictionary.