Skip to content

Installation

PyMAPE can be simply installed using pip, directly in your system or in a separated virtual environment to keep clean your main system.

$ pip install pymape

---> 100%
$ python -m venv venv
$ source venv/bin/activate
# (venv) $ pip install pymape
---> 100%
Examples dependencies

If you intend play with the provided examples of different MAPE-K patterns, you should also install the dependency pip install -r examples/requirements.txt.

Anyway before play with them, we need to run some docker containers. We will see them soon.

Installation for Developers and Contributors

If you want to contribute to the project, you have use poetry and follow the steps below:

$ git clone https://github.com/elbowz/PyMAPE.git
$ cd PyMAPE
$ poetry install
---> 100%

Then use poetry shell and/or poetry run (eg. poetry run examples/coordinated-ambulance.py --speed 80) to exec a script inside the development environment.

Poetry and examples dependencies

Using poetry you won't have to install the python packages dependencies needed to execute the examples.