diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f3d74a9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.pyc +*~ diff --git a/pypw/handler.py b/pypw/handler.py new file mode 100644 index 0000000..8fb55cf --- /dev/null +++ b/pypw/handler.py @@ -0,0 +1,43 @@ +# -*- coding:utf-8 -*- +""" + pypw.handler + ~~~~~~~~~~~~ + + Implements the actually handling object for pypw. + + :copyright: (c) 2012 by Jason Lai. + :license: BSD, see LICENSE for more details. +""" + +import logging + + +class Handler(object): + """ + Handlers control and manage the infomations of user. + """ + + def __init__(self): + # Initialize Log + self.log = logging.getLogger('pypw') + + def initialize(self, cipher): + """ + validate the cipher and load the data from outside file. + """ + raise NotImplementedError + + def write(self): + """ + encrypt the infomations and dumps into outside file. + """ + raise NotImplementedError + + def add_item(group, item, value, update=False): + raise NotImplementedError + + @property + def items(self): + raise NotImplementedError + +