@app.route("/packages")
def packages():
    if "PlatformIO/" in request.headers.get("User-Agent", ""):
        return finalize_json_response(api.PackagesManifestAPI, {})
    else:
        return finalize_json_response(api.PackagesAPI, {})
dataset/ETHPy150Open platformio/platformio-api/platformio_api/web.py/packages/original