PklFile

class cgp_generic_utils.files.PklFile(path)

Bases: cgp_generic_utils.files.File

file object that manipulate a .pkl file on the file system

classmethod create(path, content=None, **__)

create a pkl file

Parameters:
  • path (str) – path of the pkl file
  • content (any) – content of the pkl file
Returns:

the created pkl file

Return type:

cgp_generic_utils.files.PklFile

read()

read the pkl file

Returns:the content of the pkl file
Return type:any