R
R
rPman2012-04-16 14:03:46
Python
rPman, 2012-04-16 14:03:46

Choosing a scripting language for a project, a sandbox?

There is (will be) a project, most likely opensource, most likely in python.
There was a need to make the whole project modular.
BUT, there is a task, it is necessary to allocate each module to its own sandbox, modules should not have any free access other than the provided one (neither to the system, nor to files, nor to created objects). Callable methods need control over which other module the call came from.
The question is, will it be enough to check the set of plug-ins in the source file? If not, are there sandboxed projects to run python scripts with access to the specified modules and objects of that python project?
Another follow-up question, are there appropriate javascript sandboxes, with controlled access to objects created in python?
ps in c++, c#, java, as far as I know, there are similar sandboxes
upd. everything seems to be sad, there are no mechanisms for python to create its own vm and provide controlled access to internal objects and classes ... hence the new question ...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
mejedi, 2012-04-16
@mejedi

You gave up too early. For example github.com/haypo/pysandbox

X
xSkyFoXx, 2012-04-16
@xSkyFoXx

Oh, it's a difficult task. Maybe you should take a look at the service-oriented architecture of the application? And to exchange data between services is somehow standard. And run each of the services in its own virtualenv.

A
Alexey Sundukov, 2012-04-17
@alekciy

PS There is a similar sandbox even for PHP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question