inginious.common.task_file_readers package

Managers for handling the different format of task files

Submodules

inginious.common.task_file_readers.abstract_reader module

Task file managers

class inginious.common.task_file_readers.abstract_reader.AbstractTaskFileReader[source]

Bases: object

Manages a type of task file

abstract dump(descriptor)[source]

Dump descriptor and returns the content that should be written to the task file

abstract get_ext()[source]

Returns the task file extension. Must be @classmethod!

abstract load(file_content)[source]

Parses file_content and returns a dict describing a task

inginious.common.task_file_readers.yaml_reader module

YAML task file manager

class inginious.common.task_file_readers.yaml_reader.TaskYAMLFileReader[source]

Bases: AbstractTaskFileReader

Read and write task descriptions in YAML

dump(data)[source]

Dump descriptor and returns the content that should be written to the task file

classmethod get_ext()[source]

Returns the task file extension. Must be @classmethod!

load(content)[source]

Parses file_content and returns a dict describing a task