Skip to main content

Python package to generate common strings used in moodle for users (not admin level) and manage exported files from moodle and generate files for import.

Project description

Moodle String Generator Documentation Status Updates

Python package to generate common strings used in moodle for users (not admin level) and manage exported files from moodle and generate files for import.


MoodleSG (Moodle String Generator) is a python package with the purpose of help to generate common strings using for users (not admin level) when manage a course in moodle, e.g. answer formulas, grade formulas and question generation in markdown or XML.

This package is not intended to use as admin level and is developed because management of some formulas are very uncomfortable because not variable is available as user level (some universities has very strange methods for grade calculation and vary each semester or some math problems has many substitutions). So, you finish with a longer formula with pattern repetitions that you add manually and many brackets and then your math expression for grade or answer formula is very susceptible to fail.

Also, you can think in some automatic question generation that Moodle not support but you can create and export as a question database of questions (not calculated questions that support numeric or text variables only -not both in the same question-) or import from a question database backup and modify that.


n: null support

b: basic support

p: partial support

f: full support


This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.


0.3.1 (2018-05-17)

  • Define changes according to mmParams.

  • Remove sdist distribution from travis deployment.

  • Update classifiers.

  • Support moodle math setting: decimal and list separator, math type.

0.3.0 (2018-05-13)

  • Fix installation wheels: Removed wheels for python2.7.

  • Caps convention for constant: pi → PI.

  • Better documentation.

  • Full support of common functions between grade and answer calculations.

0.2.2 (2018-05-11)

  • Fix docstrings.

  • Added new math functions and docstrings (common and extended module).

0.2.0 (2018-05-06)

  • Full implementation of moodle math expressions.

  • Added pi constant.

  • Some math functions common between grade and answer calculation.

0.1.2 (2018-03-14)

  • Use super method for init of derived classes.

  • Removed support of python 3.3.

  • Added basic definition of moodle mathematical variable classes (since 0.1.1).

0.1.0 (2018-03-08)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

moodlesg-0.3.1-py3-none-any.whl (9.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page