Skip to main content

Parse annotation file exports from your Boox device, and transform them into JSON, YAML, or whatever you want.

Project description

Parse annotation file exports from your Onyx Boox device, and transform them into JSON, YAML, or whatever you want.

  • Free software: MIT license

Installation

pip install boox-annotation-parser

You can also install the in-development version with:

pip install https://github.com/coddingtonbear/boox-annotation-parser/archive/master.zip

Documentation

To use the project from the command-line

Options:

  • --input: (Default: ‘stdin’) The path to your Boox annotation export file. If unspecified, reads from stdin.

  • --output: (Default: ‘stdout’) The path to where you’d like your output written to. If unspecified, writes to stdout.

  • --format: (Default: ‘yaml’) The format you’d like your annotations written out in. Options include: - yaml - json - nljson

boox-annotation-parser --input=/path/to/boox/export.txt --output=/path/to/write/output/to --format=yaml

To use the project as a library

from boox_annotation_parser import parser

with open('/path/to/boox/export.txt', 'r') as inf:
    parsed = parser.get_annotations(inf)

Development

To run the tests run:

pytest

Changelog

0.1.0 (2021-08-19)

  • First release on PyPI.

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

boox-annotation-parser-0.1.1.tar.gz (12.5 kB view hashes)

Uploaded Source

Built Distribution

boox_annotation_parser-0.1.1-py2.py3-none-any.whl (7.0 kB 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