Skip to main content

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

Project description

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

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

kohilites-0.0.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kohilites-0.0.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file kohilites-0.0.1.tar.gz.

File metadata

  • Download URL: kohilites-0.0.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for kohilites-0.0.1.tar.gz
Algorithm Hash digest
SHA256 583bb3eae18792e7ca0c058315d9975654b3b293b73f9db5b54aa70fe83b0f7c
MD5 7792e00394956fcc8e9193baca1b59be
BLAKE2b-256 f108f24da1405d624d186b76a1a127eda00ab37d1eb0d6b2bf82330b4f23eee9

See more details on using hashes here.

File details

Details for the file kohilites-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: kohilites-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for kohilites-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db6d2da6f63989b99cc8616570bee399816c2c80c8e8040feea2c97af746f9b0
MD5 e365738fddc0167538bc1b577f6ec3f5
BLAKE2b-256 4f8cf36b0e5757f901abe7dc9159ff05c5e105f7c11f457bfec1109187c121e0

See more details on using hashes here.

Supported by

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