pyquery is a jquery-like library for python that allows you to make jquery queries on xml documents.
PyQuery uses lxml for fast XML and HTML manipulation.
It allows you to make jQuery-style CSS-selector queries on XML/HTML documents. The API is intended to match jQuery's API whenever possible, though it has been made more Pythonic where appropriate
It can be used for many purposes. The main idea is to use it for templating with pure http templates that you modify using pyquery. I can also be used for web scrapping or for theming applications with Deliverance.
Read more