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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for boox-annotation-parser-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ba26c64be3d6552df98a00ff4b56ab2a9246971d8e01d0c58d7366041bef2d1 |
|
MD5 | 880c7ec5c577ecec2d4f4cacb6303b6e |
|
BLAKE2b-256 | 029ffa1a33fdb66c816f6bd322758655ed28d333b3d79ea38ceb40e5f1482870 |
Hashes for boox_annotation_parser-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 747b7b48f9d5c89de9eba050eaaf6612cc10fa1e8283121cdf90dddcc1732859 |
|
MD5 | 4ca92c951ed5cdeaaa1203b060a50ed1 |
|
BLAKE2b-256 | 93409869e5dc9a36b2a4673aa168b09d54c61c979309a9331b5e6c22400724d1 |