+def lookup(engine_uri, name):
+ # XXX don't require uri! somehow
+ session = connect(engine_uri)
+
+ results = pokedex_lookup(session, name)
+ print "Matched:"
+ for object, matchiness in results:
+ print object.__tablename__, object.name, "(%.03f)" % matchiness
+