(project_id: str)
| 149 | |
| 150 | @codecarbon.command("get-token", short_help="Get project token") |
| 151 | def get_token(project_id: str): |
| 152 | # api = ApiClient(endpoint_url=API_URL) # TODO: get endpoint from config |
| 153 | # api.set_access_token(get_access_token()) |
| 154 | token = get_api_key(project_id) |
| 155 | print("Your token: " + token) |
| 156 | print("Add it to the api_key field in your configuration file") |
| 157 | |
| 158 | |
| 159 | @codecarbon.command("config", short_help="Generate or show config") |
nothing calls this directly
no test coverage detected
searching dependent graphs…