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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4816eb9a292fd918269e6fd4e223362a4d422c48d4aa24cbf542c15851e2679e |
|
MD5 | 2187e4d192163ba5c11de15ecd48bb92 |
|
BLAKE2b-256 | bd1b2857e0fa330a21220011043ffbb3b9171e6b602fec7db4b7715aa8093516 |
Close
Hashes for librelingo_json_export-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a2e064c5e938c187d4154c4a8476509bfcddc26d4cf7cc2f340c4070c74828 |
|
MD5 | 033d28e2cc5badb4ff544e48ac72451e |
|
BLAKE2b-256 | a4f614439ca3ad18f50ce06a5a219689a67bfe8bdaf8b5ce09fa6a981f00540f |