I'm looking for a solution to evaluate a piece of python code and should make a decision whether or not it is safe to run using eval(...). This means it should check if there are imports, system calls, any other possible exploits or dangerous calls in order to make sure the code (which will be input by an user) is safe to run.
Are there any such libraries? (preferably open-source) Any advantages or disadvantages to any specific library?
Last edited by Mekire
on Wed Sep 25, 2013 2:02 pm, edited 1 time in total.
Reason: First post lock.