<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="+1">Hi Andrew,</font></p>
<p><font size="+1">this sounds interesting. But I'm not sure if I
understand it. Where can I find the Python client? Is the idea
to have a client written in Python to interact with a REST API
written in PHP?<br>
</font></p>
<p><font size="+1">Cheers,</font><br>
</p>
<pre class="moz-signature" cols="72">José Manuel Martínez Martínez
<a class="moz-txt-link-freetext" href="https://chozelinek.github.io">https://chozelinek.github.io</a></pre>
<div class="moz-cite-prefix">On 04.07.19 05:49, Hardie, Andrew
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:LO2P265MB11177A9D4126CA86A7FB5353CBFA0@LO2P265MB1117.GBRP265.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Verdana",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">Hi
all,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">If
you happen to be subscribed to the checkin feed for the SVN
repo on sourceforge you may have noticed that I have created
a number of “CQPwebClient” class definitions for different
programming languages.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">The
idea of these is to ease use of the client API – raw API
involves a lot of juggling about with GET and POST
parameters. The only serious API function that is “working”
theoretically at the moment is access to frequency lists.
(“theoretically” because I am sure there are bugs.)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">I
am trying to make each client follow the same object model
within the constraints of each language’s structure. The
“odd one out” is the JavaScript, which is designed for
asynchronous programming (As in a browser), unlike the
others. <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">The
two most complete are the JavaScript and PHP, followed by
the C, the Python and the Perl. The idea is that, as far as
possible, the same properties and methods should be exposed
by each object model – so the sequence of calls to the
client (and the parameters which need to be specified) to
accomplish some task X will be the same regardless of the
language.
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">I
intend to continue to work on the JS and PHP clients myself
as they are my languages of choice. (Well, actually, C is my
language of choice, thus why there is a client object for C,
but really it is a proof of concept rather than something I
have a strong expectation of people wanting to make use of).
Plus they exemplify the asynchronous/synchronous usage
generally. However, for the others, having put down the
rough outlines I would very much like to hand off
maintenance to people who actually know what they are doing
in the respective languages.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">TLDR</span></b><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">:
<b><span style="color:red">I would be most grateful to
anyone willing to volunteer to take on primary
responsibility for one of the clients
</span></b>other than the JS and PHP versions – especially
the Python, R or Perl. (BTW – the R client is just an empty
file; I have no intention of actually writing it because R’s
object system gives me the heebie-jeebies.)<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">Or
if anyone would like to contribute a client object in one of
the (many) languages that I’m too scared even to touch (e.g.
Java, C#, Ruby, Go, Lisp, shell, Groovy, Lua, MATLAB, BASIC,
INTERCAL…) then that would also be fabulous.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">Anyone
who is interested – just drop a note to the list. The only
requirement is that you must be happy for your contributions
to be released open source (with an MIT style licence). <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">Thanks
in advance!<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">best<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
CWB mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a>
<a class="moz-txt-link-freetext" href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a>
</pre>
</blockquote>
</body>
</html>