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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a7a4264b09d7e565585a595e95d68497085c32f384fbbbc4c70b96b12da2498 |
|
MD5 | 4404ab9d88a5497ad553f61c1f538274 |
|
BLAKE2b-256 | 7f39d2f8ac9e93cdc604334d2cd36d6c584af8cc8a3488bea262aad052895e8c |
Close
Hashes for librelingo_json_export-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d50c68294b5d1ea920d1c0d96262b432ed19126c89bac89e4e0e21978f64405f |
|
MD5 | 68882c335ba13f5f03dd3a367fb5efe9 |
|
BLAKE2b-256 | 3f2585d90090c0fe587515fb93b304b68b8aacec13bb7f18f8018ad939208e12 |