[Cubicweb] [ANN] cwclientlib

Nicolas Chauvat nicolas.chauvat at logilab.fr
Fri May 23 15:33:21 CEST 2014


Hi List,

I just created https://www.cubicweb.org/project/cwclientlib and pushed
to http://hg.logilab.org/review/cwclientlib

It is an API to write client code that access CW via HTTP with
rqlcontroller and/or signedrequest. It is based on work done by Damien
Garaud.

Here is an example:

"""
import cwproxy

client = cwproxy.CWProxy('http://www.cubicweb.org/')
query = 'Any X WHERE X is Ticket, X concerns P, P name "cwclientlib"'
resp = client.rql(query)
data = resp.json()
"""

Enjoy!

-- 
Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  



More information about the Cubicweb mailing list