jankos
jankos

Reputation: 916

Google Appengine application written in Java with access to Python+Numpy+Scipy?

I have a rather big appengine application completely written in Java. I would need to obtain results from functions completely written in python (if possible 3.x) with numpy and similar packages.

What is the best way to do it?

Upvotes: 0

Views: 56

Answers (1)

Nico
Nico

Reputation: 888

I'm thinking in two options.

  1. You can write an app-engine's python module (now called services) using default or Flexible Environment. Then your default module have access to this special module via HTTP requests, synchronously via URL Fetch API or async via Push Queue API, which can only be done via *.appspot.com URLs. Here is the official docs about module communication uses ModuleService API which resolves module addresses to *.appspot.com addresses.
  2. You can try to execute python code using PythonInterpreter class, but i not sure if the sandbox avoid to use it.

Upvotes: 1

Related Questions