File: hello_plugin.py

package info (click to toggle)
python-cliapp 1.20120630-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 308 kB
  • sloc: python: 2,297; makefile: 86
file content (15 lines) | stat: -rw-r--r-- 254 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import cliapp

class Hello(cliapp.Plugin):

    def __init__(self, foo, bar=None):
        self.foo = foo
        self.bar = bar

    @property
    def version(self):
        return '0.0.1'
        
    def setup(self):
        self.setup_called = True