Info
Use info to inspect the JCMsuite installation, the Python
interface, the host system, and the license.
Print Installation Information
Call info without arguments to print a human-readable report:
import jcmsuite
details = jcmsuite.info()
The call returns JCMInfoDetails after it prints
the report. Use the returned value when a program must inspect individual values.
Return Structured Information
Set print=False when the report must not be written to standard output:
details = jcmsuite.info(print=False)
print(details.installation.jcm_root)
print(details.installation.version)
print(details.system.n_cores)
print(details.license.period)
The returned value contains four groups of information:
installation: the resolved JCMsuite root, version, and build tag.interface: the Python package name, version, build timestamp, and interface commit when available.system: the operating-system label, CPU count, and execution settings.license: the license period, license file, or license server information.
Select The Installation
By default, info resolves the current runtime context. Pass an explicit
context when the information must come from a specific JCMsuite installation:
from jcmsuite.context import create_context
context = create_context(jcm_root="/opt/jcmsuite/current")
details = jcmsuite.info(context=context, print=False)
See Contexts for context scope and default-context selection.
Runtime Conditions
info starts the runtime context and probes the JCMsuite binaries. The call
can raise RuntimeContextError when the required binaries are unavailable or
startup probing fails.
See the Inspect Installation Tutorial for a complete runnable example.