MCPcopy
hub / github.com/wechaty/python-wechaty / load_pickle_data

Function load_pickle_data

src/wechaty/utils/data_util.py:42–53  ·  view source on GitHub ↗

load pickle data from path Args: path (str): the path of pickle data Returns: object: the final data

(path: str)

Source from the content-addressed store, hash-verified

40 pickle.dump(obj, f)
41
42def load_pickle_data(path: str) -> object:
43 """load pickle data from path
44
45 Args:
46 path (str): the path of pickle data
47
48 Returns:
49 object: the final data
50 """
51 with open(path, 'rb') as f:
52 data = pickle.load(f)
53 return data
54
55
56class WechatySetting(UserDict):

Callers 1

test_payload_pickleFunction · 0.90

Calls 1

loadMethod · 0.45

Tested by 1

test_payload_pickleFunction · 0.72