Metadata-Version: 2.1
Name: librelingo-json-export
Version: 0.9.3
Summary: Export LibreLingo courses in the JSON format used by the web app
License: AGPLv3
Author: Dániel Kántor
Author-email: git@daniel-kantor.com
Requires-Python: >=3.8,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Provides-Extra: hunspell
Requires-Dist: editdistance (>=0.6.0,<0.7.0)
Requires-Dist: hunspell (>=0.5.5,<0.6.0); extra == "hunspell"
Requires-Dist: librelingo-types (>=3.0.0,<4.0.0)
Requires-Dist: librelingo-utils (>=2.6.0,<3.0.0)
Requires-Dist: librelingo-yaml-loader (>=1.0.0,<2.0.0)
Requires-Dist: python-slugify (>=4.0.1,<5.0.0)
Description-Content-Type: text/markdown

<a name="librelingo_json_export.export"></a>
# librelingo\_json\_export.export

<a name="librelingo_json_export.export.export_course"></a>
#### export\_course

```python
export_course(export_path, course, settings=None)
```

Writes the course to JSON files in the specified path.

### Usage example:

```python
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)
```

<a name="librelingo_json_export.cli"></a>
# librelingo\_json\_export.cli

<a name="librelingo_json_export.cli.main"></a>
#### main

```python
@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.


