def cursor_to_offset(cursor):
    try:
        return int(unbase64(cursor)[len(PREFIX):len(PREFIX) + 10])
    except:
        return None
Rederives the offset from the cursor string.
dataset/ETHPy150Open graphql-python/graphql-relay-py/graphql_relay/connection/arrayconnection.py/cursor_to_offset