Simple replay file loading [python]


#1

Here’s a simple function to get going reading replay files for anyone out there that was struggling

#conda install zstd
import zstd, json

def read_replay(file):
with open(file, ‘rb’) as f:
data = zstd.loads(f.read())
data = json.loads(data.decode())
return data