is_openstef_compatible#

openstef_core.versioning.is_openstef_compatible(*, model_version: str | None, runtime_version: str | None = None) → bool[source]#

Return whether model and runtime versions share their major and minor versions.

Raises:
  • InvalidVersion – If the runtime version is invalid.

  • PackageNotFoundError – If the runtime version is inferred but openstef-core is not installed.

Parameters:
Return type:

bool