Changes between Version 2 and Version 3 of ZooDocumentation/ZOOServices
- Timestamp:
- Sep 9, 2010, 3:59:32 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZooDocumentation/ZOOServices
v2 v3 5 5 = Python = 6 6 You can use python to develop your service, it's possible to use all python library (for example python GDAL/OGR - Numpy/Scipy ), you must only give space to your imagination.[[BR]] 7 To take value or data from the request using '''inputs [''yourVariables''] [value]''' and you have the result using '''outputs [''yourVariables''] [value]''' (where '''''yourVariables''''' is the name of variables that you are set in the zcfg file).[[BR]] 7 The ZCFG file should contain the following :[[BR]] 8 {{{ 9 serviceType = Python 10 serviceProvider = the name of the Python module to use as a ZOO Service Provider without .py 11 }}} 12 13 The arguments as passed from the request as dictionary; using '''inputs[''yourVariables''][value]''' it's possible to obtain the value/data and you have the result using '''outputs[''yourVariables''][value]''' (where '''''yourVariables''''' is the name of variables that you are set in the zcfg file); at the end there is '''conf[main][''value'']''' (where '''''value''''' is one of value set in the main.cfg file of ZOO) this parameter is very important to pass tmpPath where you should save the files [[BR]] 8 14 When you have '''''yourVariables''''' in python variable you can made what do you have in your mind