inginious.frontend.plugins package¶
Plugins for the webapp of INGInious
Subpackages¶
Submodules¶
inginious.frontend.plugins.client_test module¶
inginious.frontend.plugins.demo_page module¶
inginious.frontend.plugins.edx module¶
inginious.frontend.plugins.git_repo module¶
A plugin that allows to save submissions to a Git repository
-
class
inginious.frontend.plugins.git_repo.
SubmissionGitSaver
(plugin_manager, config)[source]¶ Bases:
threading.Thread
Thread class that saves results from submission in the git repo. It must be a thread as a git commit can take some time and because we extract archives returned by the Client. But it must also be launched only one time as our git operations are not really process/tread-safe ;-)
-
add
(submission, archive, _)[source]¶ Add a new submission to the repo (add the to queue, will be saved async)
-
run
()[source]¶ Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
-
inginious.frontend.plugins.simple_grader module¶
Allow the webapp to act as a simple POST grader
-
inginious.frontend.plugins.simple_grader.
init
(plugin_manager, course_factory, client, config)[source]¶ Init the external grader plugin. This simple grader allows only anonymous requests, and submissions are not stored in database.
Available configuration:
plugins: - plugin_module: inginious.frontend.plugins.simple_grader courseid : "external" page_pattern: "/external" return_fields: "^(result|text|problems)$"
The grader will only return fields that are in the job return dict if their key match return_fields.
Different types of request are available : see documentation