Skip to main content

Python support for using the FlockLab 2 testbed (flocklab CLI, creating flocklab xml, visualization).

Project description

FlockLab Tools

This Python package provides tools for working with the FlockLab testbed.

Features:

  • 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

PyPi Webpage
Source Code

Installation

Dependencies:

  • python3.6+
  • pip

Install with

python -m pip install flocklab-tools

or

pip install flocklab-tools

Uninstall

python3 -m pip uninstall flocklab-tools

Usage

Command Line Interface (CLI)

System wide command:

flocklab -h

Alternative (using the python module):

python -m flocklab -h

Command Line Options:

-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

Visualization of FlockLab Results

flocklab -x <result directory>

Python Support

Example

from flocklab import Flocklab as fl
from flocklab import *

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
# ...

Development

Bug Reports / Feature Requests

Please send bug reports and feature requests to rtrueb@ethz.ch.

Installation for Development

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).

License & Copyright

Licensed under the term of MIT License (MIT). See file LICENSE.

Copyright (c) 2020, ETH Zurich, Computer Engineering Group (TEC)

List of Contributors

  • Roman Trub
  • Matthias Meyer
  • Reto Da Forno

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flocklab-tools-0.2.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flocklab_tools-0.2.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file flocklab-tools-0.2.0.tar.gz.

File metadata

  • Download URL: flocklab-tools-0.2.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for flocklab-tools-0.2.0.tar.gz
Algorithm Hash digest
SHA256 36f4f2ccc32ee75d1503f1d3ec528b19079c06fc8ec1bdb32167c21581c113e2
MD5 a7c130c91c8084d94cbe29f31516c4ad
BLAKE2b-256 8ea629065241cc776abd3815c8e7bb76a71de781aac8071c1a735f632ccdf9c9

See more details on using hashes here.

File details

Details for the file flocklab_tools-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: flocklab_tools-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for flocklab_tools-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ded8117ff672898ef14503aafe85f1aa9462d88ecadb9ba7d2f5a06a61d98bd2
MD5 f765171311b77df746c6cc7bfa8974be
BLAKE2b-256 f56ad946af4e9cf079d3604bf3bb43f12af170f7d5b0cccdc0b65a41bb7c578b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page