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.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9d85d1e9517cfdf33f8026b19b8037c5228f6180c557365a17f0aa79361954c |
|
MD5 | 1f4396949258a5c5b5ac75f5fbdc2e62 |
|
BLAKE2b-256 | 097995dad20c2df885e13be4286cec1d45cf6b2f6379ec645614abd0a11fad55 |
Close
Hashes for librelingo_json_export-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c35561dcebb37684712e79465598b352b8416d0f34e9069d4a6fe52efa630a2f |
|
MD5 | f5fc8e9f68e1eb62a4fc1709a5a3e0f8 |
|
BLAKE2b-256 | a27a150e59a6634de1195fc937d6c03fb26d720b2823275ccfcc90b99baa6a77 |