aea.manager.project
This module contains the implementation of AEA agents project configuiration.
_
Base Objects
class _Base()
Base class to share some methods.
builder
| @property
| builder() -> AEABuilder
Get AEABuilder instance.
install_
pypi_
dependencies
| install_pypi_dependencies() -> None
Install python dependencies for the project.
Project Objects
class Project(_Base)
Agent project representation.
__
init__
| __init__(public_id: PublicId, path: str)
Init project with public_id and project's path.
build
| build() -> None
Call all build entry points.
load
| @classmethod
| load(cls, working_dir: str, public_id: PublicId, is_local: bool = False, is_remote: bool = False, is_restore: bool = False, registry_path: str = DEFAULT_REGISTRY_NAME, skip_consistency_check: bool = False) -> "Project"
Load project with given public_id to working_dir.
If local = False and remote = False, then the packages are fetched in mixed mode (i.e. first try from local registry, and then from remote registry in case of failure).
Arguments:
working_dir
: the working directorypublic_id
: the public idis_local
: whether to fetch from local :param is_remote whether to fetch from remoteregistry_path
: the path to the registry locallyskip_consistency_check
: consistency checks flag
remove
| remove() -> None
Remove project, do cleanup.
builder
| @property
| builder() -> AEABuilder
Get builder instance.
AgentAlias Objects
class AgentAlias(_Base)
Agent alias representation.
__
init__
| __init__(project: Project, agent_name: str, keys_dir: Optional[str])
Init agent alias with project, config, name, agent, builder.
set_
agent_
config_
from_
data
| set_agent_config_from_data(json_data: List[Dict]) -> None
Set agent config instance constructed from json data.
Arguments:
json_data
: agent config json data
Returns:
None
builder
| @property
| builder() -> AEABuilder
Get builder instance.
agent_
config
| @property
| agent_config() -> AgentConfig
Get agent config.
remove_
from_
project
| remove_from_project()
Remove agent alias from project.
dict
| @property
| dict() -> Dict[str, Any]
Convert AgentAlias to dict.
config_
json
| @property
| config_json() -> List[Dict]
Get agent config json data.
get_
aea_
instance
| get_aea_instance() -> AEA
Build new aea instance.
issue_
certificates
| issue_certificates() -> None
Issue the certificates for this agent.
set_
overrides
| set_overrides(agent_overrides: Optional[Dict] = None, component_overrides: Optional[List[Dict]] = None) -> None
Set override for this agent alias's config.
agent_
config_
manager
| @property
| agent_config_manager() -> AgentConfigManager
Get agent configuration manager instance for the config.
get_
overridables
| get_overridables() -> Tuple[Dict, List[Dict]]
Get all overridables for this agent alias's config.