def get_frontend_credentials():

    # Read the credentials file and return a dict
    output = fab.run("cat ~/credentials.txt")
    if 'Server public key' not in output:
        raise ValueError("credentials.txt doesn't contain proper keys")
    lines = output.split('\n')
    public_key = lines[1].split(': ')[1].strip()
    verify_code = lines[2].split(': ')[1].strip()

    return {'public_key': public_key, 'verify_code': verify_code}
Get the frontend server keys
dataset/ETHPy150Open datastax/cstar_perf/tool/cstar_perf/tool/fab_deploy.py/get_frontend_credentials