Skip to main content

FlockLab Tools

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

Installation

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

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

Visualization of FlockLab Results

flocklab -x <result directory>

Python Support

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

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

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)

List of Contributors

  • Roman Trub
  • Matthias Meyer
  • Reto Da Forno

Metadata

Release files for flocklab-tools 0.2.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flocklab-tools 0.2.9
File Size Uploaded Provenance Actions
flocklab-tools-0.2.9.tar.gz 27.8 kB Without provenance Details for flocklab-tools-0.2.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flocklab-tools 0.2.9
File Interpreter ABI Platform Actions
flocklab_tools-0.2.9-py3-none-any.whl Python 3 none any Details for flocklab_tools-0.2.9-py3-none-any.whl

Total release size: 54.1 kB

Release files / flocklab-tools-0.2.9.tar.gz

Download URL flocklab-tools-0.2.9.tar.gz
Size 27.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2b9cc6efca34524dab272da0ce7d9dea8f04d15c38375c687c55b7c813caab35
BLAKE2b-256 checksum
How to use checksums
6045b8c76591a01594c7107f32da7815df46ab05627d472645a2235d88f8e46f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release files / flocklab_tools-0.2.9-py3-none-any.whl

Download URL flocklab_tools-0.2.9-py3-none-any.whl
Size 26.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dac094cc4a2852cad4d734b05ac490c64836333e7a142f939384e223b3f3afe
BLAKE2b-256 checksum
How to use checksums
9f5549a7d0bfdd21c1fb1c763c712802a7dfde90e9590cec5e003554786835d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Security for flocklab-tools 0.2.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page