def __init_helper(store, config): if store == 'parquet': return Parquet(config.parquet if 'parquet' in config else None) elif store == 'arctic': return Arctic(config.arctic) elif store == 'influx': return InfluxDB(config.influx) elif store == 'elastic': return ElasticSearch(config.elastic) else: raise ValueError("Store type not supported")
def __init_helper(store, config, **kwargs): if store == 'parquet': return Parquet(config.exchanges, config.parquet if 'parquet' in config else None, **kwargs) elif store == 'arctic': return Arctic(config.arctic) elif store == 'influx': return InfluxDB(config.influx) elif store == 'elastic': return ElasticSearch(config.elastic) elif store == 'svoe': return SvoeStore(config.svoe) else: raise ValueError("Store type not supported")
def __init_helper(store, config, **kwargs): if store == 'parquet': from cryptostore.data.parquet import Parquet return Parquet(config.exchanges, config.parquet if 'parquet' in config else None, **kwargs) elif store == 'arctic': from cryptostore.data.arctic import Arctic return Arctic(config.arctic) elif store == 'influx': from cryptostore.data.influx import InfluxDB return InfluxDB(config.influx) elif store == 'elastic': from cryptostore.data.elastic import ElasticSearch return ElasticSearch(config.elastic) else: raise ValueError("Store type not supported")