Skip to main content

load_pickle

load_pickle(path: Union[str, Path]) -> dict

  • Description: Reads a pickle file.

  • Parameters:

    • path (Union[str, Path]): The path to the pickle file.
  • Return Value:

    • dict: The content of the pickle file.
  • Example:

    import capybara as cb

    path = '/path/to/your/pickle'
    data = cb.load_pickle(path)
    print(data)
    # >>> {'key': 'value'}