Server Reference
version
Product version.
Reads from the repository-level VERSION file when running from source, or
from the VERSION file bundled inside the app package when installed as
a wheel.
attribute__version__= get_version()funcrepo_root() -> strReturn the absolute path of the repository root.
Returns
strThe directory that contains VERSION, server/ and client/.
func_read_file(path) -> str | NoneReturn the trimmed contents of path, or None on failure.
parampathstrReturns
str | Nonefuncget_version() -> strReturn the product version string.
Resolution order:
VERSIONfile next to the package directory (wheel layout).VERSIONfile at the repository root (source layout)."0.0.0"as a fallback.
Returns
str