def interface_direct_class(data_class):
    """help to direct to the correct interface interacting with DB by class name only"""
    if data_class in ASSET:
        interface = AssetsInterface()
    elif data_class in PARTY:
        interface = PartiesInterface()
    elif data_class in BOOK:
        interface = BooksInterface()
    elif data_class in CORPORATE_ACTION:
        interface = CorporateActionsInterface()
    elif data_class in MARKET_DATA:
        interface = MarketDataInterface()
    elif data_class in TRANSACTION:
        interface = TransactionsInterface()
    else:
        interface = AssetManagersInterface()
    return interface
def interface_direct_class ( data_class ) : if data_class in ASSET : interface = AssetsInterface ( ) elif data_class in PARTY : interface = PartiesInterface ( ) elif data_class in BOOK : interface = BooksInterface ( ) elif data_class in CORPORATE_ACTION : interface = CorporateActionsInterface ( ) elif data_class in MARKET_DATA : interface = MarketDataInterface ( ) elif data_class in TRANSACTION : interface = TransactionsInterface ( ) else : interface = AssetManagersInterface ( ) return interface
help to direct to the correct interface interacting with DB by class name only