Debian Codegraph @

scripts/bar

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