Add Python as a language #7
Merged
Merged
Conversation
…ite recursion loop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for Python challenge variants alongside the existing JavaScript ones. The main changes include adding a Python code runner as a new service, updating the backend and frontend to handle multi-language support, and seeding the database with Python variants for all challenges. The frontend now allows users to select between JavaScript and Python for each challenge, and the backend is updated to serve and process these variants.
Multi-language challenge support:
ChallengeVariantentity and repository to support multiple language variants (e.g., Python) for each challenge, including fields for starter code and harness templates. [1] [2]Challengemodel to include a list ofChallengeVariantobjects, and refactored data seeding to add Python variants for all challenges using appropriate harness templates and starter code. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Python runner service:
runnerservice (Dockerized Flask app) that safely executes submitted Python code in a sandboxed environment, receiving code and input via HTTP and returning results as JSON. [1] [2] [3]docker-compose.ymland frontend Nginx config to include and route requests to the new runner service. [1] [2]Frontend enhancements:
These changes collectively enable users to solve challenges in either JavaScript or Python, with full backend and frontend support for both languages.