[MOBY-dev] Latest update for the bioMoby Python API

Rebecca Ernst rebecca.ernst at gsf.de
Wed Jan 19 17:27:11 UTC 2005


Hi Yan!

I've updated the cvs and indeed the service that was set up by Andreas 
(and never worked before in the gbrowse) worked perfectly fine!

Thanks,
Rebecca



ywong at infobiogen.fr wrote:

>Hi,
>  I've put the new bioMoby Python API (v0.8) on the CVS, Normally,
>services that use this version should have no problem to deal with
>GBrowse_moby (it return an XML string instead of a body object...) There
>will be services built on top of this API before the end of the week so
>you'll be able to see if there is any problems.
>
>  For the cosmetic changes, now you can serialize/deserialize objects that
>doesn't have any toMoby or fromMoby method (thanks to dynamic class
>building a special Python feature :p) for example, if an object is not
>in the mobyDataTypes module or in the ontology, it will create a class
>corresponding to the XML, however, only public attributes are able to be
>serialized/deserialized (for methods, maybe it would be useful to link
>it with other webservices...)
>
>  I've updated the documentation about it and added an example of how to
>build database aware bioMoby webservices
>Python/tutorials/webservices/bioMoby-Oracle.py
>(only select sql statement but i think it can be also used for update sql
>statement).
>
>  Services now can be treated as threads (this enable the query of
>different services at the same time) it works like this:
>
>  client=Client()
>  serviceList=client.findService(ServiceQuery(inputObject=...)
>
>  for aService in serviceList:
>      aService.start(aMobyContentObject)
>      aService.join()
>
>  for aService in serviceList:
>      if hasattr(self, 'results'):
>          #results are retrieved in the results attributes
>          aService.results
>  etc..
>
>_______________________________________________
>MOBY-dev mailing list
>MOBY-dev at biomoby.org
>http://www.biomoby.org/mailman/listinfo/moby-dev
>
>  
>

-- 
Rebecca Ernst
MIPS, Inst. for Bioinformatics
GSF Research Center for Environment and Health
Ingolstaedter Landstr. 1
85764 Neuherberg
fon: +49 89 3187 3583
email: Rebecca.Ernst at gsf.de




More information about the MOBY-dev mailing list