def engine_from_config(configuration, prefix='sqlalchemy.', **kwargs):
 options = dict(((key[len(prefix):], configuration[key]) for key in configuration if key.startswith(prefix)))
 options['_coerce_config'] = True
 options.update(kwargs)
 url = options.pop('url')
 return create_engine(url, **options)

def engine_from_config ( configuration , prefix = 'sqlalchemy.' , ** kwargs ) : options = dict ( ( ( key [ len ( prefix ) : ] , configuration [ key ] ) for key in configuration if key . startswith ( prefix ) ) ) options [ '_coerce_config' ] = True options . update ( kwargs ) url = options . pop ( 'url' ) return create_engine ( url , ** options )
create a new engine instance using a configuration dictionary .