judge0

Robust, fast, scalable, and sandboxed open-source online code execution system for humans and AI.

What is judge0?

Robust, fast, scalable, and sandboxed open-source online code execution system for humans and AI.

Overview of judge0

What it is

Judge0 is an open-source online code execution system established in August 2016. It is designed to provide robust, fast, scalable, and sandboxed execution of code, suitable for both human users and AI agents. The system supports self-hosting or a fully managed SaaS option and is used in various applications such as AI agents, competitive programming platforms, e-learning platforms, and online IDEs.

Key features

  • Self-hostable or fully managed (SaaS)
  • Quick and easy self-hosting installation
  • Rich and verbose API documentation
  • Simple HTTP JSON API for easy integration
  • Official Python SDK for easy integration
  • Scalable architecture for handling high loads
  • Sandboxed compilation and execution of untrusted code
  • Support for 90+ languages
  • Compilation and execution of multi-file programs (i.e., projects)
  • Support for additional files alongside the single-file user's program
  • Support for custom user-defined compiler options, command-line arguments, and time and memory limits
  • Detailed execution results
  • Webhooks (HTTP callbacks)

Use cases

Judge0 can be used to build applications that require online code execution, including AI agents, competitive programming platforms, e-learning platforms, candidate assessment and recruitment platforms, online code editors, online IDEs, and more.

Getting started

To get started with Judge0, you can use the HTTP JSON API or the official Python SDK. Example commands are provided below.bashcurl -H 'Content-Type: application/json' -d '{'language_id': 109, 'source_code': 'print(f'hello, {input()}')', 'stdin': 'Alice'}' 'https://ce.judge0.com/submissions?wait=true'``````python# pip install judge0import judge0result = judge0.run(source_code='print(f'hello, {input()}')', stdin='Alice', language=judge0.PYTHON)print(result.stdout)

License and pricing

The license is GPL-3.0. The pricing type is open source.

這是什麼

Judge0 是一個開源的線上程式碼執行系統,成立於 2016 年 8 月。它旨在提供穩健、快速、可擴展且沙箱化的程式碼執行,適用於人類使用者和 AI 代理。該系統支援自架或完全託管的 SaaS 選項,並用於各種應用,例如 AI 代理、競賽程式設計平台、電子學習平台和線上 IDE。

主要功能

  • 可自架或完全託管(SaaS)
  • 快速簡便的自架安裝
  • 豐富且詳細的 API 文件
  • 簡單的 HTTP JSON API,便於整合
  • 官方 Python SDK,便於整合
  • 可擴展的架構,可處理高負載
  • 沙箱化編譯和執行不受信任的程式碼
  • 支援 90 多種語言
  • 編譯和執行多檔案程式(即專案)
  • 支援使用者程式的單一檔案旁的附加檔案
  • 支援自訂使用者定義的編譯器選項、命令列引數以及時間和記憶體限制
  • 詳細的執行結果
  • Webhook(HTTP 回呼)

使用情境

Judge0 可用於建構需要線上程式碼執行的應用程式,包括 AI 代理、競賽程式設計平台、電子學習平台、候選人評估與招募平台、線上程式碼編輯器、線上 IDE 等。

快速開始

要開始使用 Judge0,您可以使用 HTTP JSON API 或官方 Python SDK。以下提供範例指令。bashcurl -H 'Content-Type: application/json' -d '{'language_id': 109, 'source_code': 'print(f'hello, {input()}')', 'stdin': 'Alice'}' 'https://ce.judge0.com/submissions?wait=true'``````python# pip install judge0import judge0result = judge0.run(source_code='print(f'hello, {input()}')', stdin='Alice', language=judge0.PYTHON)print(result.stdout)

授權與價格

授權為 GPL-3.0。價格類型為開源。

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/judge0judge0.svg)](https://yunodb.com/tools/judge0judge0?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/judge0judge0?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/judge0judge0.svg" alt="Featured on YunoDB" height="20"></a>