addok/shell.py
def do_DBKEY(self, key):
        """Print raw content of a DB key.
        DBKEY g|u09tyzfe"""
        type_ = DB.type(key).decode()
        if type_ == 'set':
            out = DB.smembers(key)
        elif type_ == 'string':
            out = DB.get(key)
        else:
            out = 'Unsupported type {}'.format(type_)
        print('type:', magenta(type_))
        print('value:', white(out))
def do_DBKEY(self, key):
        """Print raw content of a DB key.
        DBKEY g|u09tyzfe"""
        type_ = DB.type(key).decode()
        if type_ == 'set':
            out = DB.smembers(key)
        elif type_ == 'string':
            out = DB.get(key)
        else:
            out = 'Unsupported type {}'.format(type_)
        print('type:', magenta(type_))
        print('value:', white(out))
def do_DBKEY ( self , key ) : type_ = DB . type ( key ) . decode ( ) if type_ == 'set' : out = DB . smembers ( key ) elif type_ == 'string' : out = DB . get ( key ) else : out = 'Unsupported type {}' . format ( type_ ) print ( 'type:' , magenta ( type_ ) ) print ( 'value:' , white ( out ) )
Print raw content of a DB key.
        DBKEY g|u09tyzfe
Print raw content of a DB key . DBKEY g|u09tyzfe