Kolibri Zim plugin
This is a Kolibri plugin to add a Zim file viewer.
Usage
Install a release from pypi:
pip install kolibri-zim-plugin[full]
If you are using Kolibri 0.14.7, upgrade its bundled le-utils to the newest (unstable) version:
pip install git+https://github.com/learningequality/le-utils.git@master --target=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')/kolibri/dist --upgrade
Enable the plugin in Kolibri:
kolibri plugin enable kolibri_zim_plugin
Now, Zim content in Kolibri will be rendered using the Zim plugin.
For some example content, try adding the Wikipedia channel, either from Kolibri's user interface (you can use the channel token nurob-nikis) or with a management command:
kolibri manage importchannel network f62db29be20453c4a267132e93a9e602
kolibri manage importcontent network f62db29be20453c4a267132e93a9e602
Development
Getting started
Create a pipenv shell and then install additional dependencies using bootstrap.sh:
pipenv shell
./scripts/bootstrap.sh
Install kolibri-zim-plugin in editable mode:
pip install -e .
To build front end code:
yarn build
Refer to the Usage instructions to upgrade le-utils and enable the plugin.
Submitting changes
Before submitting changes, please be sure to run the pre-commit checks:
pre-commit run
If you can configure git to run these checks automatically:
pre-commit install -f --install-hooks
Creating a release
If you are releasing a new version, use bump-version with with major, minor, or patch. For example:
yarn bump-version patch
This creates a new commit and a git tag. Push this to the remote:
git push
git push --tags
Create a .whl file:
yarn dist
The file will be placed in the dist/ directory.
Finally, upload the .whl file to PyPi:
yarn release
Metadata
Release files for kolibri-zim-plugin 1.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kolibri_zim_plugin-1.4.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for kolibri_zim_plugin-1.4.2-py2.py3-none-any.whl |
Release files / kolibri_zim_plugin-1.4.2-py2.py3-none-any.whl
| Download URL | kolibri_zim_plugin-1.4.2-py2.py3-none-any.whl |
|---|---|
| Size | 182.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
659d3e5002a9aa9e2f4b9a7d2f548e61191d340d7ff6588f6ff06eeccfe76449
|
|
BLAKE2b-256 checksum How to use checksums |
131208c5e68cd3dacab7393e38b66a995c1795a679f5a8c87611d3d911ca3021
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for kolibri-zim-plugin 1.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.