aea.manager.project
This module contains the implementation of AEA agents project configuration.
_Base Objects
Base class to share some methods.
builder
Get AEABuilder instance.
install_pypi_dependencies
Install python dependencies for the project.
Project Objects
Agent project representation.
__init__
Init project with public_id and project's path.
build
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, cli_verbosity: str = "INFO", registry_path: str = DEFAULT_REGISTRY_NAME, skip_consistency_check: bool = False, skip_aea_validation: 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 localis_remote: whether to fetch from remoteis_restore: whether to restore or notcli_verbosity: the logging verbosity of the CLIregistry_path: the path to the registry locallyskip_consistency_check: consistency checks flagskip_aea_validation: aea validation flag
Returns:
project
remove
Remove project, do cleanup.
agent_config
Get the agent configuration.
builder
Get builder instance.
check
Check we can still construct an AEA from the project with builder.build.
AgentAlias Objects
Agent alias representation.
__init__
Init agent alias with project, config, name, agent, builder.
set_agent_config_from_data
Set agent config instance constructed from json data.
Arguments:
json_data: agent config json data
builder
Get builder instance.
agent_config
Get agent config.
remove_from_project
Remove agent alias from project.
dict
Convert AgentAlias to dict.
config_json
Get agent config json data.
get_aea_instance
Build new aea instance.
issue_certificates
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
Get agent configuration manager instance for the config.
get_overridables
Get all overridables for this agent alias's config.
get_addresses
Get addresses from private keys.
Returns:
dict with crypto id str as key and address str as value
get_connections_addresses
Get connections addresses from connections private keys.
Returns:
dict with crypto id str as key and address str as value