Skip to content

Python opensearch

toshikurauchi edited this page · 1 revision


Restfulie client supports opensearch with both xml and json out of the box. Atom support can be included by adding a media type handler for atom.

The media type handler

The opensearch media type handler allows unmarshalling an open search descriptor file, such as:

description ='http://localhost:3000/products/opensearch.xml')

And now, a description object can be searched by invoking the use method:

items = description.use('application/xml').search(searchTerms = what, startPage = 1)

There is a sample application showcasing open search usage on the client side at restfulie-restbuy.

Something went wrong with that request. Please try again.