How to create a web service with one isolated Python (VM) per request

As part of an attempt to make the scikit-image image gallery interactive, I would like to create a web service that receives Python snippet code, executes it, and provides me with the generated output image.

For security, running Python instances should be isolated and resource managed, so I was thinking about using LXC containers.

Is this a good way to approach the problem? If so, what is the recommended way to start one Python virtual machine for each request?

+4
source share
4 answers

[ : Continuum, ]

Wakari Enterprise (http://enterprise.wakari.io) , Wakari Cloud (http://wakari.io), "" IPython Notebooks , "", , .

, , Sage Notebook. Sage Notebook Cell Server, , : . , , :

http://sagecell.sagemath.org/?q=ejwwif

http://sagecell.sagemath.org

http://www.sagemath.org/eval.html

URL- Graphics- > Mandelbrot, , Sage , " ".

+4

, - . , 100 ( - ). . , . , python : -D

+2

, LXC:

seccomp-nurse, Python, seccomp Linux.

- PyPy, .

In any case, do not use pysandbox , it is broken in design and has serious security risks.

0
source

All Articles