Skip to content

iwanb/xqpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python bindings for the XQC XQuery API

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.

About

Python bindings for the XQC XQuery API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published