from couchbase import Couchbase


from docgen import DocGen


class CBGen(object):

    def __init__(self, host, port, username, password, bucket):
        self.client = Couchbase.connect(host, port, username, password, bucket)

    def _do_get(self, key):
        self.client.get(key)

    def _do_set(self, key, doc):
        self.client.set(key, doc)

create basic CB generator