Skip to content

aea.manager.utils

Multiagent manager utils.

get_lib_path

get_lib_path(env_dir: str) -> str

Get librarty path for env dir.

make_venv

make_venv(env_dir: str, set_env: bool = False) -> None

Make venv and update variable to use it.

Arguments:

  • env_dir: str, path for new env dir
  • set_env: bool. use evn within this python process (update, sys.executable and sys.path)

project_install_and_build

project_install_and_build(project: Project) -> None

Install project dependencies and build required components.

get_venv_dir_for_project

get_venv_dir_for_project(project: Project) -> str

Get virtual env directory for project specified.

project_check

project_check(project: Project) -> None

Perform project loads well.

run_in_venv

run_in_venv(env_dir: str, fn: Callable, timeout: float, *args: Any) -> Any

Run python function in a dedicated process with virtual env specified.