def load_config_from_stream(stream, reserve_keys=None):
 config_globals = {}
 config = bulkloader_parser.load_config(stream, config_globals)
 importer_classes = []
 exporter_classes = []
 for transformer in config.transformers:
  (importer, exporter) = create_transformer_classes(transformer, config_globals, reserve_keys)
  if importer:
   importer_classes.append(importer)
  if exporter:
   exporter_classes.append(exporter)
 return (importer_classes, exporter_classes)

def load_config_from_stream ( stream , reserve_keys = None ) : config_globals = { } config = bulkloader_parser . load_config ( stream , config_globals ) importer_classes = [ ] exporter_classes = [ ] for transformer in config . transformers : ( importer , exporter ) = create_transformer_classes ( transformer , config_globals , reserve_keys ) if importer : importer_classes . append ( importer ) if exporter : exporter_classes . append ( exporter ) return ( importer_classes , exporter_classes )
parse a bulkloader .