Export LibreLingo courses in the JSON format used by the web app
Project description
librelingo_json_export.challenges
make_challenges_using
make_challenges_using(callback, data_source, course)
Calls a callback function with an item (Word or Phrase) to create challenges. Each item in the data source will be used.
challenge_mapper
challenge_mapper(challenge_types)
Returns a function that applies challenge types to a certain item (Word or Phrase), using the settings of the given course.
get_challenges_data
get_challenges_data(skill, course)
Generates challenges for a certain Skill
librelingo_json_export.export
export_course
export_course(export_path, course, settings=None)
Writes the course to JSON files in the specified path.
Usage example:
from librelingo_yaml_loader import load_course
from librelingo_json_export.export import export_course
course = load_course("./courses/french-from-english")
export_course("./apps/web/src/courses/french-from-english", course)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for librelingo_json_export-0.6.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a20460c6d558734c745f889dddc68266ed44a9005173748e94ff6f3374de804f |
|
MD5 | 28119eb4e5c4fda01f1629a68224293d |
|
BLAKE2b-256 | a5cc512bc5102cc72b9b8b6fa0564b58865154d6f5278ea87bf37664f0ca6492 |
Close
Hashes for librelingo_json_export-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 286a8a5be67dda3962114633b64d47f7a484462088f18facbf1b5aa64275036c |
|
MD5 | de3d44d5aca498866be39864d622c8c6 |
|
BLAKE2b-256 | ec4055b7c351eb8629ddca9950ed54591ef4283d777e508b5b04f3622ed2157e |