Skip to main content

dump_pickle

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

  • Description: Writes an object to a pickle file.

  • Parameters:

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

    import capybara as cb

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