MCPcopy Create free account
hub / github.com/dwavesystems/dwave-cloud-client / leap_project_token

Function leap_project_token

dwave/cloud/cli.py:1168–1176  ·  view source on GitHub ↗

Get Solver API token for a selected Leap project.

(*, config_file, profile, project_hint, json_output, raw_output, output)

Source from the content-addressed store, hash-verified

1166@raw_output
1167@standardized_output
1168def leap_project_token(*, config_file, profile, project_hint, json_output, raw_output, output):
1169 """Get Solver API token for a selected Leap project."""
1170
1171 project, token = _get_sapi_token_for_leap_project(
1172 config_file=config_file, profile=profile,
1173 project_hint=project_hint, output=output)
1174
1175 output(f"Solver API token for project {project.name} ({project.code}) is {token}.",
1176 token=token, project=project.model_dump(), raw=token)
1177
1178
1179def _get_sapi_token_for_leap_project(

Callers

nothing calls this directly

Calls 2

outputFunction · 0.85

Tested by

no test coverage detected