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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e04e9b88f782218832d6882abbef2b12b4573026fd832498ec9c6333ff8e470 |
|
MD5 | b99ba46e786a85a6aeb4901197d477aa |
|
BLAKE2b-256 | 63610d20f9e92eedb3016e80086ea7f451e24482a8837e050c80e92f3936d2f4 |
Close
Hashes for librelingo_json_export-0.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb1aade03f370125d48ba2c18ec60d8e7d31d92a7b55e5e1296f59ffabc176ae |
|
MD5 | 48d0391d0fe6bbcfe5d1ae9cb8ed2d32 |
|
BLAKE2b-256 | e7438ed273dad09d7e724edb23d29b7bf73da0eac6ca8943b7f4aec6b56f730d |