Known subclasses: executioner.sandbox.firejail.FireJail

NoSandBox sandbox class

Class Variable supported_languages List of supported languages by this sandbox
Class Variable error_reg regular expression to extract error text and time
Method __init__ initialize object variables
Instance Variable file_location The file location of the current program
Instance Variable compile_file_location The compiled file location of the current program
Method generate_compile_command generate command to compile program
Method generate_execute_command generate command to execute program
Method get_compiled_file get the file location of compiled file
Method process_error get error and real time taken
Method setup_file set up the file in file system
Method identify_error identify the error
Method compile compile the Program
Method execute execute the Program
Method delete cleanup program related data from sandbox

Inherited from SandBox:

Method to_json_object convert to JSON object
Static Method from_json_object Generate Program object from JSON object
Method __eq__ Undocumented
supported_languages =

List of supported languages by this sandbox

(type: List[str])
error_reg =

regular expression to extract error text and time

def __init__(self):

initialize object variables

file_location =

The file location of the current program

compile_file_location =

The compiled file location of the current program

def generate_compile_command(self, command, file_location, _, __, ___):

generate command to compile program

def generate_execute_command(self, command, file_location, time_limit, _):

generate command to execute program

def get_compiled_file(self, lang_settings):

get the file location of compiled file

def process_error(self, err_text):

get error and real time taken

def setup_file(self, program, lang_settings):

set up the file in file system

def identify_error(self, error, time, time_limit):

identify the error

def compile(self, program, **_):

compile the Program

def execute(self, program, testcase, **kwargs):

execute the Program

def delete(self, program, **kwargs):

cleanup program related data from sandbox

API Documentation for EXecutioner, generated by pydoctor at 2021-09-20 12:53:40.