The congress.datasources.benchmark_driver Module¶
-
class
congress.datasources.benchmark_driver.BenchmarkDriver(name=”, keys=”, inbox=None, datapath=None, args=None)¶ Bases:
congress.datasources.datasource_driver.PollingDataSourceDriver-
BENCHTABLE= ‘benchtable’¶
-
TRANSLATORS= [{‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘field1’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘field2’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘benchtable’}]¶
-
get_credentials(*args, **kwargs)¶
-
translator= {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘field1’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘field2’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘benchtable’}¶
-
update_from_datasource()¶
-
value_trans= {‘translation-type’: ‘VALUE’}¶
-
-
congress.datasources.benchmark_driver.d6service(name, keys, inbox, datapath, args)¶ Create a dataservice instance.
This method is called by d6cage to create a dataservice instance. There are a couple of parameters we found useful to add to that call, so we included them here instead of modifying d6cage (and all the d6cage.createservice calls).