Skip to main content

dump_pickle

dump_pickle(obj, path: Union[str, Path]) -> None

  • Description

    Write an object to a pickle file.

  • Parameters

    • obj (Any): The object to write.
    • path (Union[str, Path]): The path to the pickle file.
  • Example

    import docsaidkit as D

    data = {'key': 'value'}
    D.dump_pickle(data, '/path/to/your/pickle')