Question

How to use python within g-wan? Provide a main method as in the c 'servlet'

Further is it possible to run python bottle or use its nice PUT GET POST handler syntax within said python Aka

 @get(/classes/<classname>/<guid>
 def function(classname = none,guid = none)


 @put(/classes/<classname>/<guid>
 def function(classname = none,guid = none)

Yes. I'd prefer to use c but need to use a api written in the usual suspects php,node,python and c#

Was it helpful?

Solution

How to use Python scripts with g-wan?

There's a Python example on the developer page of the G-WAN web site, also available here and in the G-WAN download archive.

Recently, we have added the X_HTTP_HEADERS environment variable for the scripts like Python which use the CGI interface.

For PHP, the support of $_GET, $_POST, and $_COOKIE variables has also been added.

If you need assistance or new features for Python then contact us at the G-WAN web site. With the help of Python experts, we could load the language runtime from G-WAN (like this was done for C/C++, C#, Objective-C, Java, and Scala).

This is leading to a better ingration (as variables and API calls can be shared with G-WAN) and more speed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top