|
|
# flocklab-tools: Python Support for FlockLab
|
|
|
|
|
|
[flocklab-tools](https://pypi.org/project/flocklab-tools/) is a Python package which supports
|
|
|
* Python API for managing FlockLab tests
|
|
|
* Command-line interface (CLI) for Interfacing with FlockLab
|
|
|
* Programmatic creation of FlockLab test xml files (in python)
|
|
|
* Visualization of FlockLab test results
|
|
|
|
|
|
## Links
|
|
|
* [PyPi](https://pypi.org/project/flocklab-tools/) (Infos for installation and how-to-use)
|
|
|
* [Source Code](https://gitlab.ethz.ch/tec/public/flocklab/flocklab-tools)
|
|
|
|
|
|
## CLI
|
|
|
```sh
|
|
|
usage: flocklab [-h] [-v <testconfig.xml>] [-c <testconfig.xml>] [-a <testid>]
|
|
|
[-d <testid>] [-g <testid>] [-f <testid>] [-o <platform>] [-p]
|
|
|
[-x <result directory>]
|
|
|
|
|
|
FlockLab CLI
|
|
|
|
|
|
optional arguments:
|
|
|
-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
|
|
|
-g <testid>, --get <testid>
|
|
|
get test results (via https)
|
|
|
-f <testid>, --fetch <testid>
|
|
|
fetch test results (via webdav) [NOT IMPLEMENTED YET!]
|
|
|
-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
|
|
|
```
|
|
|
|