← Files EdgePilot ResearchARCHIVED FILE

src/edgepilot_research/__init__.py

499 Bytes · Oct 2, 2026 · 00:31 UTC

↓ Download file

"""EdgePilot Research public runtime."""

from pathlib import Path
import re


_VERSION_PATTERN = re.compile(r"^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$")


def _read_version() -> str:
    value = Path(__file__).with_name("VERSION").read_text(encoding="ascii")
    if value.endswith("\n"):
        value = value[:-1]
    if not _VERSION_PATTERN.fullmatch(value):
        raise RuntimeError(f"invalid EdgePilot Research version: {value!r}")
    return value


__version__ = _read_version()

SHA-256: b813d972d615600ed950b8b577bbf3782942ab2d95cfdb3173613c3d668e6b39