This Python package provides tools for working with the FlockLab 2 testbed.
Features:
- Python API for managing FlockLab 2 tests
- Command-line interface (CLI) for Interfacing with FlockLab 2
- Programmatic creation of FlockLab 2 test xml files (in python)
- Visualization of FlockLab 2 test results
PyPi Webpage
Source Code
Changelog
Dependencies:
python3.6+
setuptools
,pkg_resources
,pip
,wheel
(usually pre-installed when using a virtual environment)numpy
pandas
bokeh
requests
appdirs
rocketlogger
pyelftools
Install with
python -m pip install flocklab-tools
or
pip install flocklab-tools
python3 -m pip uninstall flocklab-tools
System wide command:
flocklab -h
Alternative (using the python module):
python -m flocklab -h
-h, --help show this help message and exit
-v <testconfig.xml>, --validate <testconfig.xml>
validate test config
-c <testconfig.xml>, --create <testconfig.xml>
create / schedule new test
-a <testid>, --abort <testid>
abort test
-d <testid>, --delete <testid>
delete test
-i <testid>, --info <testid>
get test info
-g <testid>, --get <testid>
get test results
-o <platform>, --observers <platform>
get a list of the currently available (online) observers
-p, --platforms get a list of the available platforms
-x [<result directory>], --visualize [<result directory>]
Visualize FlockLab result data
-s <factor>, --downsampling <factor>
downsampling factor for power profiling data in visualization
-y, --develop Enable develop output (incl. develop signals (nRST, PPS) in visualization)
-V, --version Print version number
flocklab -x <result directory>
Example
from flocklab import Flocklab
from flocklab import *
fl = Flocklab()
testId = 0
fl.getResults(testId)
fc = FlocklabXmlConfig()
fc.generalConf.name = 'Example Test'
fc.generalConf.description = 'Description of example test'
fc.generalConf.duration = 60 # duration in seconds
# ...
Please send bug reports and feature requests to [email protected].
Clone this repository and run the following from inside the root folder of the project (where setup.py
is located):
python -m pip install -e .
You can edit the source files and the module will reflect the changes automatically (the -e
option which means editable install).
This project is licensed under the BSD-3-Clause license. For details, see the LICENSE file.
Copyright (c) 2021, ETH Zurich, Computer Engineering Group (TEC)
- Roman Trub
- Matthias Meyer
- Reto Da Forno