Skip to main content

Download and distribute Khan content

Project description

.. image:: https://travis-ci.org/aeby/localkhan.svg?branch=master
:target: https://travis-ci.org/aeby/localkhan
localkhan
---------

localkhan is a tool to download and distribute
Khan content for offline usage.

Install
```````

.. code:: bash

$ pip install git+git://github.com/aeby/localkhan.git

Run
```

.. code:: bash

$ localkhan get --lang=es early-math/cc-early-math-counting-topic
Downloading topics...
[################################] 1/1 - 00:02:52
Downloading media assets...
[### ] 50/466 - 00:16:44

$ localkhan serve
****************************************************************
Visit http://10.10.1.100:5000 on the devices to be synchronized.
****************************************************************
(Press CTRL+C to quit)


Help
````

.. code:: bash

Usage:
localkhan get [--base=<path>] [--media-only] [--lang=<code>] <topic>
localkhan serve [--base=<path>] [--host=<ipaddr>] [--port=<number>]
localkhan clean [--base=<path>]
localkhan -h | --help
localkhan --version

Commands:
get - Download topic structure and media assets
serve - Serve the content with a simple exercise viewer
clean - Clean all downloaded content

Options:
--lang=<code> Language code [default: en].
--host=<ip> IP [default: 0.0.0.0].
--port=<number> Port number [default: 5000].
--base=<path> Download content to this directory [default: ~/.lkhan]
--media-only Download only media assets only. Requires a downloaded topic structure.
-h --help Show this screen.
--version Show version.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

localkhan-0.6.2.tar.gz (3.2 MB view hashes)

Uploaded Source

Built Distribution

localkhan-0.6.2-py2.py3-none-any.whl (3.2 MB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page