bradunov / shkola

Shkola is a web framework for math exercises for primary school kids.
https://www.tatamata.org/
Other
2 stars 0 forks source link
cherrypy education layout-language lua-scripts math-questions mathematics portal primary-school school-kids

Shkola

Shkola is a web framework for exercising math for primary school kids. It is used to run tatamata.org web site. Its current focus is on Serbian language and curriculum, but it can be easily extended to other countries and languages (please reach out if you are interested in helping).

RS: Video prezentaciju o Shkoli/Tatamati mozete pogledati ovde.

Structure

Shkola has five main parts:

Shkola supports multiple languages. It is designed so that the layout for each language is expressed in a separate file, and the scripts are shared among languages.

Shkola language

Shkola language is desinged as a mix of Lua scripts used to create randomized questions and a very simple layout language that can output text and simple vector graphic and provide basic inputs.

Each question is expressed through several files:

In addition to this, there are global Lua scripts that are placed in the global directory. These are executed at the beginning of every questions. Script files with name <name>.<language>.lua are executed only when <language> is selected.

The layout language is a simple markup language that encapsulate special commands and Lua scripts inside @@ quotes. There is a library module that implements Lua wrappers for many basic visualisation elements, such as HTML inputs and SVG vector elements. Vector graphics can be displayed by creating a canvas and adding basic elements (squares, triangles, etc) onto the canvas. The following document has a brief summary of supported quotes, library functions and other useful elements.

Each question is rendered as a HTML with some JavaScript. The JavaScript is most notably used to clear inputs or to submit them to the web site for checking.

Testing framework

Questions can be organized in lists according to years and themes. These lists are stored as JSON files in lists directory. One question can be placed into multiple lists and assigned different attributes, such as subtheme, topic, and difficulty. There are a few special question attributes. Attributes rank_* define question ordering within * category. Different questions have different level of randomness and attribute random defines up to how many times should a question appear in a test before repeating itself.

It is also possible to define lists in an XLS file, and use the following script to convert it into JSON lists. Note that new versions of xlrd do not support XLSX files. To install a supported version, type

pip3 uninstall xlrd
pip3 install xlrd==1.2.0

The testing framework also provides a basic logic for selecting questions from a list. It can randomly select questions from a given theme, subtheme or topic, with different difficulties. It also consider previously asked questions and takes care to repeat questions according to the value of random attribute.

Web apps

The above frameworks can be used in any Python based web app. However, Shkola provides its own web app. This is a web app that can be exposed to children to practice math. It includes Google authentication, basic session management, and logging of responses. To learn how to install it, please check Install document.

The web app also has a developer mode. In this mode the app lists all the questions and lists. It can be used to visualise all questions, and also to try out new questions. However, it does not provide online question management system - it does not store new or modified questions. These should be copied to an editor and manually stored locally.

Math questions

Probably the most valuable part of Shkola is a large list of curated and tested math questions for primary school kids, listed according to years and themes.

Contributions

Shkola is an open source project released under MIT license and open to contributions.