5 ms·
It has a really nice REST API interface as well. One of the ways that API is expressed is through XML, but there are also JSON and Python versions (yes, the AP
by mindcrime 16y ago
It has a really nice REST API interface as well. One of the ways that API is expressed is through XML, but there are also JSON and Python versions (yes, the API sends you Python code in one version!)
- flipdeadshot 16y agoHow would a client make use of the Python code? By eval'ing it?
- mindcrime 16y agoYeah, exactly. From the docs: Access the same data as Python for Python clients. This can be parsed into Python object as eval(urllib.urlopen("...").read()) and the resulting object tree is identical to that of JSON. However, when you do this, beware of the security implication. If you are connecting to a non-trusted Hudson, the server can send you malicious Python programs.