Skip to main content

load_pickle

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

  • Description

    Read a pickle file.

  • Parameters

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

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

    import docsaidkit as D

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