To use the provided example follow these steps:
- Clone this repository with
git clone https://gitlab.ub.uni-bielefeld.de/jwachsmuth/swarm.git
- Change the directory to the example directory with
cd [/path/to/project/root]/example
- run
source setup.bash
. This file creates a python virtual environment, installs all dependencies and activates the virtual environment. - edit the
ip_list.yaml
file and include all ip addresses of the used devices - run
python ExampleUsage.py [index]
where index is the address fromip_list.yaml
that should be used for this client - start more instances of the program to build up the network. (Don't forget to activate the virtual environment if you start the program on the same machine)
To use this Library in your project you can follow these steps:
- Download the wheel from the latest build from here
- unzip the downloaded file
- run
pip install /path/to/downloaded/whl/file
You can also just clone this repository and install it with pip install /path/to/library/root