Export LibreLingo courses in the JSON format used by the web app
Project description
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)
librelingo_json_export.cli
main
@click.command()
@click.argument("input_path")
@click.argument("output_path")
@click.option("--dry-run/--no-dry-run", default=DEFAULT_SETTINGS.dry_run)
main(input_path, output_path, dry_run)
Convert a YAML course into JSON files to be consumed by the web app.
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.9.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cdb30175ebc9a6e1f21f2e2961c335eb45bf2fb5e7df8c85309827f48fd59ba |
|
MD5 | 0cd5425fb469c7e8eddca5a523d6309d |
|
BLAKE2b-256 | a146d393661dae3deb36766ac84e894ebd5fda72ca3c9f11599226508cd3b694 |
Close
Hashes for librelingo_json_export-0.9.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f55f58a744b87cb71a5a5211feee63e6f37de58a3f0336667ab2e4abb2a5550 |
|
MD5 | 9096fef6e8456c5248c3eaa826d2f104 |
|
BLAKE2b-256 | 6b85cc9e032f7ea1eff530eb180a614abef9dd933b66f071eb28a285149c18e6 |