iode.Identities.save

Identities.save(filepath: str)

Save objects of the current database into the file ‘filepath’.

Parameters:
filepath: str

Examples

>>> from iode import SAMPLE_DATA_DIR
>>> from iode import comments
>>> comments.load(f"{SAMPLE_DATA_DIR}/fun.cmt")         
Loading .../fun.cmt
317 objects loaded 
>>> len(comments)
317
>>> comments.save(f"{SAMPLE_DATA_DIR}/fun2.cmt")        
Saving .../fun2.cmt
317 objects saved
>>> comments.clear()
>>> comments.load(f"{SAMPLE_DATA_DIR}/fun2.cmt")        
Loading .../fun2.cmt
317 objects loaded
>>> len(comments)
317