Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coddingtonbear/boox-annotation-parser
Parse annotation file exports from your Onyx Boox device, and transform them into JSON, YAML or whatever you want
https://github.com/coddingtonbear/boox-annotation-parser
Last synced: 2 months ago
JSON representation
Parse annotation file exports from your Onyx Boox device, and transform them into JSON, YAML or whatever you want
- Host: GitHub
- URL: https://github.com/coddingtonbear/boox-annotation-parser
- Owner: coddingtonbear
- License: mit
- Created: 2021-08-19T03:00:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-23T00:30:09.000Z (over 3 years ago)
- Last Synced: 2024-10-03T08:17:22.587Z (3 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
======================
Boox Annotation Parser
======================.. start-badges
.. list-table::
:stub-columns: 1* - tests
- |
|
* - package
- | |version| |wheel| |supported-versions| |supported-implementations|
| |commits-since|.. |version| image:: https://img.shields.io/pypi/v/boox-annotation-parser.svg
:alt: PyPI Package latest release
:target: https://pypi.org/project/boox-annotation-parser.. |wheel| image:: https://img.shields.io/pypi/wheel/boox-annotation-parser.svg
:alt: PyPI Wheel
:target: https://pypi.org/project/boox-annotation-parser.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/boox-annotation-parser.svg
:alt: Supported versions
:target: https://pypi.org/project/boox-annotation-parser.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/boox-annotation-parser.svg
:alt: Supported implementations
:target: https://pypi.org/project/boox-annotation-parser.. |commits-since| image:: https://img.shields.io/github/commits-since/coddingtonbear/boox-annotation-parser/v0.1.2.svg
:alt: Commits since latest release
:target: https://github.com/coddingtonbear/boox-annotation-parser/compare/v0.1.2...master.. end-badges
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
-------------------------------.. code-block:: python
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