ZackClements / berserk

Python client for the lichess API
Other
44 stars 18 forks source link

cloud-eval API #21

Open petsuter opened 2 years ago

petsuter commented 2 years ago

Is there a way to use the cloud-eval endpoint?

petsuter commented 2 years ago

This seems to work:

def get_cloud_eval(berserk_client, fen: str):
    path = 'api/cloud-eval'
    params = {
        'fen': fen,
    }
    return berserk_client._r.get(path, params=params, fmt=berserk.formats.JSON)