# Path: relo/core/log.py
# LEVEL = {
#     'NORMAL': 0,
#     'INFO': 1,
#     'DEBUG': 2,
#     'CRITICAl': 0,
#     'ERROR': 0,
#     'EXCEPTION': 0,
# }
#     ESCAPE = '\033[%sm'
#     BOLD = '1;%s'
#     UNDERLINE = '4;%s'
#     BLUE_ARROW = ESCAPE % (BOLD % '34') # Blue Bold
#     DEBUG = ESCAPE % (BOLD % '35') # Magenta Bold
#     HEAD = ESCAPE % (BOLD % '1') # Bold White (Standard Color)
#     INFO = ESCAPE % '32' # Green Normal
#     WARNING = ESCAPE % '33' # Yellow Normal
#     ERROR = ESCAPE % '31' # Red Normal
#     CRITICAL = ESCAPE % (UNDERLINE % '31') # Red Underline
#     ITEM = ESCAPE % (BOLD % '37') # Black Bold/Bright
#     SUBITEM = ESCAPE % '37' # White Normal
#     ENDC = ESCAPE % '0'
# class Color(object):
# class Logger(object):
#     def _deco(cls, msg, color):
#     def blueArrow(cls, msg):
#     def head(cls, msg):
#     def debug(cls, msg):
#     def info(cls, msg):
#     def warning(cls, msg):
#     def error(cls, msg):
#     def critical(cls, msg):
#     def item(cls, msg):
#     def subitem(cls, msg):
#     def __init__(self):
#     def debug(self, msg):
#     def head(self, msg):
#     def log(self, msg):
#     def info(self, msg):
#     def warning(self, msg):
#     def error(self, msg):
#     def critical(self, msg):
#     def item(self, msg):
#     def subitem(self, msg):
#     def _stdout(self, msg):
#     def _stderr(self, msg):
# 
# Path: relo/core/interfaces.py
# class Backend(IPlugin):
#     """
#     Implements external backends that can be used to store indexes and alike
#     """
#     name = ""
#     def meta(self):
#         return self.name
#     def init(self):
#         pass
#     def check(self):
#         """
#         checks for old index
#         """
#     def load(self):
#         """
#         loads the current index on start
#         """
#         pass
#     def save(self):
#         """
#         saves the new index to the drive
#         """
#         pass
#     def addMeta(self, path, modified, hash, size, type):
#         """
#         adds a new file to the index
#         """
#         pass
#     def end(self):
#         pass


import sys
import os
import redis
from relo.core.log import logger
from relo.core.interfaces import Backend
#!/usr/bin/env python
# encoding: utf-8


dirname = os.path.dirname(os.path.abspath(__file__))
up_dir = os.path.dirname(dirname)
sys.path.append(up_dir)



# Path: relo/core/log.py
# LEVEL = {
#     'NORMAL': 0,
#     'INFO': 1,
#     'DEBUG': 2,
#     'CRITICAl': 0,
#     'ERROR': 0,
#     'EXCEPTION': 0,
# }
#     ESCAPE = '\033[%sm'
#     BOLD = '1;%s'
#     UNDERLINE = '4;%s'
#     BLUE_ARROW = ESCAPE % (BOLD % '34') # Blue Bold
#     DEBUG = ESCAPE % (BOLD % '35') # Magenta Bold
#     HEAD = ESCAPE % (BOLD % '1') # Bold White (Standard Color)
#     INFO = ESCAPE % '32' # Green Normal
#     WARNING = ESCAPE % '33' # Yellow Normal
#     ERROR = ESCAPE % '31' # Red Normal
#     CRITICAL = ESCAPE % (UNDERLINE % '31') # Red Underline
#     ITEM = ESCAPE % (BOLD % '37') # Black Bold/Bright
#     SUBITEM = ESCAPE % '37' # White Normal
#     ENDC = ESCAPE % '0'
# class Color(object):
# class Logger(object):
#     def _deco(cls, msg, color):
#     def blueArrow(cls, msg):
#     def head(cls, msg):
#     def debug(cls, msg):
#     def info(cls, msg):
#     def warning(cls, msg):
#     def error(cls, msg):
#     def critical(cls, msg):
#     def item(cls, msg):
#     def subitem(cls, msg):
#     def __init__(self):
#     def debug(self, msg):
#     def head(self, msg):
#     def log(self, msg):
#     def info(self, msg):
#     def warning(self, msg):
#     def error(self, msg):
#     def critical(self, msg):
#     def item(self, msg):
#     def subitem(self, msg):
#     def _stdout(self, msg):
#     def _stderr(self, msg):
# 
# Path: relo/core/interfaces.py
# class Backend(IPlugin):
#     """
#     Implements external backends that can be used to store indexes and alike
#     """
#     name = ""
#     def meta(self):
#         return self.name
#     def init(self):
#         pass
#     def check(self):
#         """
#         checks for old index
#         """
#     def load(self):
#         """
#         loads the current index on start
#         """
#         pass
#     def save(self):
#         """
#         saves the new index to the drive
#         """
#         pass
#     def addMeta(self, path, modified, hash, size, type):
#         """
#         adds a new file to the index
#         """
#         pass
#     def end(self):
#         pass


# Path: relo/core/backend/redisdb.py
import sys
import os
import redis
from relo.core.log import logger
from relo.core.interfaces import Backend

#!/usr/bin/env python
# encoding: utf-8


dirname = os.path.dirname(os.path.abspath(__file__))
up_dir = os.path.dirname(dirname)
sys.path.append(up_dir)



class REDISDB(Backend):