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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f750e722c749c9b27c6ffb26d485b8e00925090882c3c3f0b111b091702aaf7b |
|
MD5 | 7bb1cee03bf527dd61a61ee90c1db43e |
|
BLAKE2b-256 | 2007899d048bb7ab703e4473a55f878e6c95f4f601c2566c0e48f54307821b05 |
Close
Hashes for librelingo_json_export-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71f468e738a4b34405f0099bc772038a494db86a626c2aa4a03aead9c0400b46 |
|
MD5 | a93f9961612a3c87d65ddf04b943c920 |
|
BLAKE2b-256 | 6ed0a4196567e4e4f2079ee0aae10f4d87b126a82e794a1abef1dd648bb8f4c6 |