Converts course material to naucse.python.cz API
Project description
naucse_render
Helper for converting course material in YAML/Markdown/Jupyter to naucse.python.cz JSON API.
Version 0
naucse_render 0.x should successfully render courses hosted on naucse.python.cz prior to 2019.
The format of the source files grew organically, so there is no attempt here to document it.
Entrypoints
There are two public entrypoints: one for getting general course information; the other for a subset of lessons.
(This separation means the content doesn't need to be rendered to get course info.)
naucse_render.get_course(course_slug, *, path='.', version=None)
naucse_render.get_lessons(lesson_slugs, vars=None, path='.')
The path
specifies the local filesystem path to the root of the repository
(i.e. parent directory of courses
, runs
and lessons
).
Installation & Usage
You can run naucse_render from the command line:
python -m naucse_render get-course courses/mi-pyt
python -m naucse_render get-lessons beginners/install beginners/venv-setup
By default, data is retreived from the current working directory.
Use the --path
option to point naucse_render elsewhere.
Tests
To tests, install pipenv
, and install dependencies:
$ pipenv install --dev
then run the tests:
$ pipenv run test
License
The code is licensed under the terms of the MIT license, see LICENSE.MIT file for full text. By contributing code to this repository, you agree to have it licensed under the same license.
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
File details
Details for the file naucse_render-0.1.tar.gz
.
File metadata
- Download URL: naucse_render-0.1.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66a36b29141d37398a2608e1f9718e850bc36908d1aae653531906b039b3ad58 |
|
MD5 | d9e8fca6770387067c8eeae5f2a3dd0f |
|
BLAKE2b-256 | 19effc5af9a0ea0648ced9ca4c7009211857b29def6368580271c4e6627dc103 |
File details
Details for the file naucse_render-0.1-py3-none-any.whl
.
File metadata
- Download URL: naucse_render-0.1-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38730174ab499182a0a915c210060fceaa0be49ced88677e50865d6365ef9d34 |
|
MD5 | 15d88d38f4c658c3f6b4864e9a0cca47 |
|
BLAKE2b-256 | 799beadde30486d79f10fb9d7d4da680e1f6f73cc4d7c758d4f456ba2cfbe75f |