py_project¶
- shai_py.py_project.locate_git_repo(dir_cwd: Path) Path | None[source]¶
Locate the git repository root directory by searching for the .git folder.
- shai_py.py_project.locate_pyproject_toml(dir_cwd: Path) Path | None[source]¶
Locate the pyproject.toml file by searching upwards in the directory tree.
- shai_py.py_project.locate_venv_bin_python(dir_cwd: Path) Path | None[source]¶
Locate the virtual environment directory by searching for the .venv folder.
- shai_py.py_project.get_python_version(path_venv_bin_python: Path) tuple[int, int, int][source]¶
Get the Python version of the specified python executable.
- class shai_py.py_project.PyProjectMetadata(infos: list[shai_py.py_project.Info])[source]¶