“Can’t be done.”
Running arbitrary (untrusted) scripts and staying safe is a contradiction. You should go as far as using custom kernels, jails, vms, the like.
You can look at how http://codepad.org/about does it, it’s a lot of work.
More Related Contents:
- Preventing Python code from importing certain modules?
- Python Syntax Errors with Python Anywhere
- typing.Any vs object?
- How to solve “AttributeError: module ‘google.protobuf.descriptor’ has no attribute ‘_internal_create_key”?
- How do I verify that a string only contains letters, numbers, underscores and dashes? [duplicate]
- Python NoneType object is not callable (beginner) [duplicate]
- How can I limit the maximum running time for a unit test?
- inserting newlines in xml file generated via xml.etree.ElementTree in python
- Using a class’ __new__ method as a Factory: __init__ gets called twice
- How to find exit code or reason when atexit callback is called in Python?
- Running Scapy on Windows with Python 2.7
- Tensorflow and Multiprocessing: Passing Sessions
- OpenCV AttributeError module ‘cv2.cv2’ has no attribute ‘Tracker_create’
- Why does max() sometimes return nan and sometimes ignores it?
- How to fill the missing record of Pandas dataframe in pythonic way?
- Segmentation Fault using Python Shared Memory
- Python : How to add vertical scroll in RecycleView
- How to prevent UUID primary key for new SQLAlchemy objects being created with the same value
- Split pandas dataframe in two if it has more than 10 rows
- SQLALchemy dynamic filter_by
- Can I “fake” a package (or at least a module) in python for testing purposes?
- Best way to choose a random file from a directory
- How can I implement incremental training for xgboost?
- Convert Pandas dataframe to Sparse Numpy Matrix directly
- Jupyter Notebook: interactive plot with widgets
- Keras: How to save model and continue training?
- Use fixed exponent in scientific notation
- How to get flat clustering corresponding to color clusters in the dendrogram created by scipy
- Python PIP has issues with path for MS Visual Studio 2010 Express for 64-bit install on Windows 7
- How can the built-in range function take a single argument or three?