Skip to main content

KOHilites

A lightweight command line tool to extract and save highlights and notes made on KOReader.

KOHilites takes metadata.*.lua files, extracts the content of each highlight or note, and saves them as formatted markdown files.

Installation

Install this package from PyPi using

pip install kohilites

Quick Start

KOHilites is run from the command line. It can import and process multiple metadatafiles from a directory or single files if a specific path is given. The options available are:

  • --input: Path to a single document's metadata or a directory containing metadata from several documents.
  • --output: Directory to save parsed document metadata. If not given, outputs are saved to the root input directory. Defaults to blank.

Examples

When given a directory input, KOHilites will search that directory and all its subdirectories for metadata files and parse them. It will save all of the outputs to the output directory (not copying any nested structure).

$ kohilites --input directory/containing/multiple/metadata/files --output directory/to/save/highlights

When given the path to a file, KOHilites will parse only that file. If no output directory is given, the output is saved to the same directory that contained the input file.

$ kohilites --input path/to/metatdata.epub.lua

Metadata

Release files for kohilites 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kohilites 0.0.1
File Size Uploaded
kohilites-0.0.1.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kohilites 0.0.1
File Interpreter ABI Platform
kohilites-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / kohilites-0.0.1.tar.gz

Download URL kohilites-0.0.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
583bb3eae18792e7ca0c058315d9975654b3b293b73f9db5b54aa70fe83b0f7c
BLAKE2b-256 checksum
How to use checksums
f108f24da1405d624d186b76a1a127eda00ab37d1eb0d6b2bf82330b4f23eee9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / kohilites-0.0.1-py3-none-any.whl

Download URL kohilites-0.0.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db6d2da6f63989b99cc8616570bee399816c2c80c8e8040feea2c97af746f9b0
BLAKE2b-256 checksum
How to use checksums
4f8cf36b0e5757f901abe7dc9159ff05c5e105f7c11f457bfec1109187c121e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page