See the XQC website. The bindings are done with cffi. For now there is only a XQilla implementation, so it is a dependency.
Sample usage:
import xqpy
xquery = xqpy.XQillaImplementation()
query = xquery.prepare('1 to 100')
sequence = query.execute()
# sequence is an iterator
for val in sequence.values():
print(val)
# Looks like CPython does not call __del__ in order for module variables otherwise?!
del xquery
Only tried it on CPython on Linux (Python 2 and 3), but it should work on platforms where cffi works.