def configure(dsn, connection_class=DsnConnection):
c = dsnparse.parse(dsn, parse_class=connection_class)<EOL>inter = c.interface<EOL>set_interface(inter, c.name)<EOL>return inter<EOL>
configure an interface to be used to query a backend

you use this function to configure an Interface using a dsn, then you can get
that interface using the get_interface() method

dsn -- string -- a properly formatted prom dsn, see DsnConnection for how to format the dsn