I did an implementation that  suits my needs.

It is has a http REST API that does _only_ file conversion. No user
interface included or intended.

The python program uses the BaseHTTPRequestHandler module. All used
Modules except for the openbabel are included in the python standard
library.

The service has two features.

1.) A GET request to "http://hostname:<portnumber>/supportedformats"
returns an XML document that lists all supported input and output
formats.

2.) a POST request to
"http://hostname:<portnumber>/?in=<informat>&out=<outformat>" with the
input file as post content, returns the converted file.

To start the service: Simply execute the attached script. The service
listens on port  8071

I hope this is useful. For me it does all I need. Tell me what you think!

Attachment: babelConvertService.py
Description: Binary data

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to