# Path: huacaya/storage/base.py
# class StorageBase(object):
#     def create_bucket(self, name, index=()):
#         raise NotImplementedError
# 
#     def get_bucket(self, name):
#         raise NotImplementedError
# 
#     def drop(self, bucket):
#         raise NotImplementedError
# 
#     def __contains__(self, item):
#         raise NotImplementedError
# 
#     def __getitem__(self, item):
#         return self.get_bucket(item)
# 
# class BucketBase(object):
#     def drop(self):
#         raise NotImplementedError
# 
#     def put(self, entity):
#         raise NotImplementedError
# 
#     def get(self, stub):
#         raise NotImplementedError
# 
#     def delete(self, stub):
#         raise NotImplementedError
# 
#     def update(self, entity):
#         raise NotImplementedError
# 
#     def __contains__(self, item):
#         raise NotImplementedError
# 
#     def __getitem__(self, item):
#         return self.get(item)


import uuid
import sqlite3
import datetime
import itertools
    import cPickle as pickle
    import pickle
from .base import StorageBase, BucketBase
# -*- coding: utf-8 -*-
__author__ = 'Chinfeng'


try:
except ImportError:


# Path: huacaya/storage/base.py
# class StorageBase(object):
#     def create_bucket(self, name, index=()):
#         raise NotImplementedError
# 
#     def get_bucket(self, name):
#         raise NotImplementedError
# 
#     def drop(self, bucket):
#         raise NotImplementedError
# 
#     def __contains__(self, item):
#         raise NotImplementedError
# 
#     def __getitem__(self, item):
#         return self.get_bucket(item)
# 
# class BucketBase(object):
#     def drop(self):
#         raise NotImplementedError
# 
#     def put(self, entity):
#         raise NotImplementedError
# 
#     def get(self, stub):
#         raise NotImplementedError
# 
#     def delete(self, stub):
#         raise NotImplementedError
# 
#     def update(self, entity):
#         raise NotImplementedError
# 
#     def __contains__(self, item):
#         raise NotImplementedError
# 
#     def __getitem__(self, item):
#         return self.get(item)


# Path: huacaya/storage/sqlite.py
import uuid
import sqlite3
import datetime
import itertools
    import cPickle as pickle
    import pickle
from .base import StorageBase, BucketBase

# -*- coding: utf-8 -*-
__author__ = 'Chinfeng'


try:
except ImportError:


class SqliteBucket(BucketBase):