qcs_sdk.diagnostics

 1import sys
 2
 3from .qcs_sdk import __version__, _gather_diagnostics  # type: ignore
 4
 5
 6def get_report() -> str:
 7    """
 8    Return a string describing the package and its environment for use in bug reporting and diagnosis.
 9
10    Note: this format is not stable and its content may change between versions.
11    """
12    return f"""qcs-sdk-python version: {__version__}
13Python version: {sys.version}
14Python implementation: {sys.implementation.name}
15Python implementation version: {sys.implementation.version.major}.{sys.implementation.version.minor}.{sys.implementation.version.micro}
16Python C API version: {sys.api_version}
17Python executable: {sys.executable}
18venv prefix: {sys.prefix}
19platform: {sys.platform}
20{_gather_diagnostics()}
21   """
def get_report() -> str:
 7def get_report() -> str:
 8    """
 9    Return a string describing the package and its environment for use in bug reporting and diagnosis.
10
11    Note: this format is not stable and its content may change between versions.
12    """
13    return f"""qcs-sdk-python version: {__version__}
14Python version: {sys.version}
15Python implementation: {sys.implementation.name}
16Python implementation version: {sys.implementation.version.major}.{sys.implementation.version.minor}.{sys.implementation.version.micro}
17Python C API version: {sys.api_version}
18Python executable: {sys.executable}
19venv prefix: {sys.prefix}
20platform: {sys.platform}
21{_gather_diagnostics()}
22   """

Return a string describing the package and its environment for use in bug reporting and diagnosis.

Note: this format is not stable and its content may change between versions.