<s> """<STR_LIT>""" <EOL> from cafe . engine . mongo . client import BaseMongoClient <EOL> class MeniscusDbClient ( BaseMongoClient ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , host , db_name , username , password ) : <EOL> super ( MeniscusDbClient , self ) . __init__ ( hostname = host , <EOL> db_name = db_name , <EOL> username = username , <EOL> password = password ) <EOL> def remove_tenant ( self , tenant_id ) : <EOL> self . delete ( '<STR_LIT>' , { '<STR_LIT>' : tenant_id } ) <EOL> def remove_worker ( self , worker_id ) : <EOL> self . delete ( '<STR_LIT>' , { '<STR_LIT>' : worker_id } ) <EOL> def get_worker ( self , worker_id ) : <EOL> return self . find_one ( '<STR_LIT>' , { '<STR_LIT>' : worker_id } ) <EOL> def get_worker_token ( self , worker_id ) : <EOL> worker = self . get_worker ( worker_id ) <EOL> return worker . get ( '<STR_LIT>' ) </s>
