Skip to content

polychron._version Module

is_editable_install

is_editable_install() -> bool

Check if the package has been installed in editable mode or not using importlib.

Returns:

Type Description
bool

Boolean indicating if polychron was installed in editable mode

get_local_install_git_hash

get_local_install_git_hash() -> str | None

Get the short git commit hash for the package, if git is installed and the repository is a local install.

Returns:

Type Description
str | None

The short git commit hash if available, otherwise None