A framework for autonomous economic agent (AEA) development
First, install the package from pypi:
pip install aea
Then, build your agent as described in the AEA CLI readme or in the examples.
This repository contains submodules. Clone with recursive strategy:
git clone git@github.com:fetchai/agents-aea.git --recursive && cd agents-aea
All python specific dependencies are specified in the Pipfile (and installed via the commands specified in 'Preliminaries').
Or, you can have more control on the installed dependencies by leveraging the setuptools' extras mechanism (more details later).
-
Create and launch a virtual environment:
pipenv --python 3.7 && pipenv shell
-
Install the package from source:
pip install .[all]
-
To install only specific extra dependencies, e.g.
cli
:pip install .[cli]
The following dependency is only relevant if you intend to contribute to the repository:
- the project uses Google Protocol Buffers compiler for message serialization. A guide on how to install it is found here.
The following steps are only relevant if you intend to contribute to the repository. They are not required for agent development.
-
Clear cache
pipenv --clear
-
Install development dependencies:
pipenv install --dev
-
Install package in (development mode):
pip install -e .
-
After changes to the protobuf schema run:
python setup.py protoc
-
To run tests (ensure no oef docker containers are running):
tox -e py37
-
To run linters (code style checks):
tox -e flake8
-
To run static type checks:
tox -e mypy
-
Docs:
mkdocs serve
- Start the live-reloading docs server.mkdocs build --clean
- Build the documentation site.