spacr.version
=============

.. py:module:: spacr.version

.. autoapi-nested-parse::

   Copyright © 2025 olafsson lab







Module Contents
---------------

.. py:function:: get_version() -> str

   Return the installed spacr package version, or ``"unknown"`` if not found.

   :returns: Version string from the first candidate distribution that resolves.


.. py:function:: get_torch_version() -> str

   Return the installed PyTorch version, or ``"not available"`` if torch is missing.

   :returns: ``torch.__version__`` when importable, otherwise a placeholder string.


.. py:function:: get_version_info() -> dict[str, str]

   Return a dict of spacr, platform, Python, and torch version strings.

   :returns: Mapping with keys ``spacr_version``, ``platform``, ``python_version``, ``torch_version``.


.. py:function:: format_version_info() -> str

   Return a human-readable multi-line summary of the current environment.

   :returns: Tab-aligned version report suitable for CLI display.


.. py:data:: version_str

