marla.utils

Enforce the exact Python version range MARLA is validated against.

exception marla.utils.python_version.UnsupportedPythonVersionError[source]

Bases: RuntimeError

Raised when MARLA is run under an unsupported Python interpreter.

marla.utils.python_version.check_python_version(version_info=None)[source]

Raise UnsupportedPythonVersionError unless running Python 3.10.x.

Parameters

version_info:

Defaults to sys.version_info. Overridable for unit testing.

Parameters:

version_info (tuple[int, int, int, str, int] | None)

Return type:

None

Best-effort version/environment info, shared by marla version and metadata.json.

marla.utils.versions.collect_dependency_versions()[source]
Return type:

dict[str, str]

marla.utils.versions.git_commit()[source]

Best-effort current commit hash; None outside a git checkout.

Return type:

str | None

marla.utils.versions.python_version()[source]
Return type:

str