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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8a09bda0c11e68f9328a9ea7d3943c92cfa37dc32e8f2eba023782c8db9e583 |
|
MD5 | eab61fd968a7d56befc3a85dbe4bc44f |
|
BLAKE2b-256 | dba427a5eb019511d9ab14aa0a20b4eda17de5bf5cf0fbe5861bbe9a95b9ebf5 |
Close
Hashes for librelingo_json_export-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fd2022f66fe2e210b501abca7242251512030cfdcfa0a3fe4bf6468153f20ba |
|
MD5 | 3344e2147fe2f25b4acceb9a331bb7f5 |
|
BLAKE2b-256 | ea5a36e3406c73a4dea449a4a594b2613ce820fb1dfcb2abf43c3184078d482a |