#!/usr/bin/python3 __author__ = "b" __copyright__ = "q" __credits__ = ["b", "1", "2", "3"] __license__ = "c" __version__ = "123" __maintainer__ = "b" __email__ = "a" from __future__ import division from pyqi.core.command import Command, Parameter class foo(Command): BriefDescription = "FILL IN A 1 SENTENCE DESCRIPTION" LongDescription = "GO INTO MORE DETAIL" Parameters = ParameterCollection([ Parameter(Name='foo',Required=True,DataType=str, Help='some required parameter'), Parameter(Name='bar',Required=False,DataType=int, Help='some optional parameter',Default=1) ]) def run(self, **kwargs): # EXAMPLE: # return {'result_1': kwargs['foo'] * kwargs['bar'], # 'result_2': "Some output bits"} raise NotImplementedError("You must define this method") CommandConstructor = foo