def engine_from_files(daily_bar_path, adjustments_path, asset_db_path, calendar, warmup_assets=False):
 loader = USEquityPricingLoader.from_files(daily_bar_path, adjustments_path)
 asset_finder = AssetFinder(asset_db_path)
 if warmup_assets:
  results = asset_finder.retrieve_all(asset_finder.sids)
  print(('Warmed up %d assets.' % len(results)))
 return SimplePipelineEngine((lambda _: loader), calendar, asset_finder)

def engine_from_files ( daily_bar_path , adjustments_path , asset_db_path , calendar , warmup_assets = False ) : loader = USEquityPricingLoader . from_files ( daily_bar_path , adjustments_path ) asset_finder = AssetFinder ( asset_db_path ) if warmup_assets : results = asset_finder . retrieve_all ( asset_finder . sids ) print ( ( 'Warmed up %d assets.' % len ( results ) ) ) return SimplePipelineEngine ( ( lambda _ : loader ) , calendar , asset_finder )
construct a simplepipelineengine from local filesystem resources .