def sqlalchemy_options(options, prefix='sqlalchemy_'):
 sa_keys = [key for key in options.keys() if key.startswith(prefix)]
 sa_options = {}
 for key in sa_keys:
  sa_key = key[11:]
  sa_options[sa_key] = options.pop(key)
 sa_options = coalesce_options(sa_options, SQLALCHEMY_OPTION_TYPES)
 return sa_options

def sqlalchemy_options ( options , prefix = 'sqlalchemy_' ) : sa_keys = [ key for key in options . keys ( ) if key . startswith ( prefix ) ] sa_options = { } for key in sa_keys : sa_key = key [ 11 : ] sa_options [ sa_key ] = options . pop ( key ) sa_options = coalesce_options ( sa_options , SQLALCHEMY_OPTION_TYPES ) return sa_options
return converted options to match sqlalchemy create_engine options and their types .