Debian Codegraph @

scripts/foo

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 #!/usr/bin/python3
2 from __future__ import division
3
4 __author__ = "b"
5 __copyright__ = "y"
6 __credits__ = ["b"]
7 __license__ = "x"
8 __version__ = "1.0"
9 __maintainer__ = "b"
10 __email__ = "c"
11
12 from pyqi.core.command import Command, Parameter, ParameterCollection
13
14 class a(Command):
15 BriefDescription = "FILL IN A 1 SENTENCE DESCRIPTION"
16 LongDescription = "GO INTO MORE DETAIL"
17 Parameters = ParameterCollection([
18 Parameter(Name='foo', DataType=str,
19 Description='some required parameter', Required=True),
20 Parameter(Name='bar', DataType=int,
21 Description='some optional parameter', Required=False,
22 Default=1)
23 ])
24
25 def run(self, **kwargs):
26 # EXAMPLE:
27 # return {'result_1': kwargs['foo'] * kwargs['bar'],
28 # 'result_2': "Some output bits"}
29 raise NotImplementedError("You must define this method")
30
31 CommandConstructor = a