Mondaic
This API reference is not for the latest stable Salvus version.

salvus.project.version.salvus_project_version

Versioning and migration of SalvusProject’s file structure.

Classes

SalvusProjectVersion

class SalvusProjectVersion(builtins.object):
    def __init__(
        self, project_path: pathlib.Path, apply_migrations: bool | None = None
    ): ...

Versioning of the SalvusProject data structure.

Parameters
  • project_path pathlib.Path — Path to the Salvus project.
  • apply_migrations bool | None — If True, automatically apply necessary migrations, if False, raise if migrations are needed. If None, ask the user with an interactive prompt.
Attributes
version_number str | None

Get the current version number of the project file structure.