Types Module

class judge0.base_types.Config(*args, **kwargs)

Client config data.

allow_enable_network: bool
allow_enable_per_process_and_thread_memory_limit: bool
allow_enable_per_process_and_thread_time_limit: bool
allowed_languages_for_compile_options: list[str]
callbacks_max_tries: int
callbacks_timeout: float
cpu_extra_time: float
cpu_time_limit: float
enable_additional_files: bool
enable_batched_submissions: bool
enable_callbacks: bool
enable_command_line_arguments: bool
enable_compiler_options: bool
enable_network: bool
enable_per_process_and_thread_memory_limit: bool
enable_per_process_and_thread_time_limit: bool
enable_submission_delete: bool
enable_wait_result: bool
maintenance_mode: bool
max_cpu_extra_time: float
max_cpu_time_limit: float
max_extract_size: int
max_file_size: int
max_max_file_size: int
max_max_processes_and_or_threads: int
max_memory_limit: int
max_number_of_runs: int
max_processes_and_or_threads: int
max_queue_size: int
max_stack_limit: int
max_submission_batch_size: int
max_wall_time_limit: float
memory_limit: int
number_of_runs: int
redirect_stderr_to_stdout: bool
stack_limit: int
submission_cache_duration: float
use_docs_as_homepage: bool
wall_time_limit: float
class judge0.base_types.Encodeable(*args, **kwargs)
encode()

Serialize the object to bytes.

Return type:

bytes

class judge0.base_types.Flavor(value)

Judge0 flavor enumeration.

CE = 0
EXTRA_CE = 1
class judge0.base_types.Language(*args, **kwargs)
compile_cmd: Optional[str] = None
id: int
is_archived: Optional[bool] = None
name: str
run_cmd: Optional[str] = None
source_file: Optional[str] = None
class judge0.base_types.LanguageAlias(value)

Language enumeration.

CPP = 1
CPP_CLANG = 4
CPP_GCC = 3
JAVA = 2
PYTHON = 0
PYTHON_FOR_ML = 5
class judge0.base_types.Status(value)

Status enumeration.

ACCEPTED = 3
COMPILATION_ERROR = 6
EXEC_FORMAT_ERROR = 14
INTERNAL_ERROR = 13
IN_QUEUE = 1
PROCESSING = 2
RUNTIME_ERROR_NZEC = 11
RUNTIME_ERROR_OTHER = 12
RUNTIME_ERROR_SIGABRT = 10
RUNTIME_ERROR_SIGFPE = 9
RUNTIME_ERROR_SIGSEGV = 7
RUNTIME_ERROR_SIGXFSZ = 8
TIME_LIMIT_EXCEEDED = 5
WRONG_ANSWER = 4
class judge0.base_types.TestCase(input=None, expected_output=None)
expected_output: Optional[str] = None
classmethod from_record(test_case)

Create a TestCase from built-in types.

Return type:

Optional[TestCase]

input: Optional[str] = None