get_format

method of dascore.io.pickle.core.PickleIO source

get_format(
    self ,
    resource: BinaryReader ,
    **kwargs ,
)-> ‘tuple[str, str] | Literal[False]’

Return (name, version) if the file holds a pickled Patch or Spool, else False.

Parameters

Parameter Description
resource A binary resource which may contain a pickled patch.