()
| 123 | |
| 124 | @codecarbon.command("login", short_help="Login to CodeCarbon") |
| 125 | def login(): |
| 126 | authorize() |
| 127 | api_endpoint = get_api_endpoint() |
| 128 | api = ApiClient(endpoint_url=api_endpoint) |
| 129 | access_token = get_access_token() |
| 130 | api.set_access_token(access_token) |
| 131 | api.check_auth() |
| 132 | |
| 133 | |
| 134 | def get_api_key(project_id: str): |
nothing calls this directly
no test coverage detected
searching dependent graphs…