def dump(path):
    if not os.path.isfile(path):
        print('Not a file')
        return
    with open(path, 'rb') as fp_:
        data = msgpack.loads(fp_.read())
        pprint.pprint(data)
Read in a path and dump the contents to the screen
dataset/ETHPy150Open saltstack/salt/tests/packdump.py/dump