Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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")