Extract highlights from your ReMarkable tablet.
Project description
Remarking
About
Remarking is a command line tool for extracting highlights from documents on your reMarkable tablet.
Remarking makes it as easy as possible to extract highlights from your annotated documents.
Remarking serves to be the first part of a highlight extraction pipeline.
This means, you can use Remarking to extract your highlights for then futher processing such as:
- Sending it to a service
- Combining it with another collection of highlights
- Further filtering of highlights with more tooling
I found that there was no easy way of extracting highlights from the reMarkable. There were quite a few tools that focussed solely on extracting the highlights from the downloaded pdfs. However, nothing made the process as easy as specifiying the folder to scan for documents.
Installation
Requirements
You will need at least:
- Python 3.7+
- Pip
Install
To get started you can install the package from pip with:
pip3 install remarking
The remarking
command should then be available for you to use.
Usage
Check out the docs for help, or run remarking --help
.
Token
Before you start you will need to grab a one-time authorization key from https://my.remarkable.com/device/connect/desktop. This code is used to access the reMarkable cloud.
rmapy is used to access the reMarkable Cloud. After authorizing the first time, the tool will store an auth
token in ~/.rmapi
for future use. You won't need to re-authorize by providing the token again until you deauthorize
the key.
You can specify the token through the REMARKING_TOKEN
env var in addition to via command line with --token
.
Modes
There are two main modes of usage of Remarking: run and persist.
run
remarking run
will run the default extractors on all passed documents and folders. Highlights extracted
are then output using the writer subcommand passed.
remarking run json books
This command will run the default extractors on all documents in the books folder and output the highlights as json.
persist
remarking persist
performs the same extraction on documents as run, however it maintains state
of previously seen documents and highlights.
By default it creates a remarking_database.sqlite3
database file in the current working directory that keeps track of
seen highlights and documents.
You can also use your own database by providing the --sqlalchemy
argument with a sqlalchemy connection string.
remarking persist json books
This command will run the default extractors on all documents in the books folder and output the highlights as json.
All documents and their highlights found would also be added to the sqlite3 database remarking_database.sqlite3
.
A second run would return no new highlights if the documents in the books folder are not modified.
Examples
You can check out some examples in the examples section of the docs.
Roadmap
See the open issues for a list of proposed features (and known issues).
Built With
- Python 3
- rmapy
- click
- sqlalchemy
Support
Reach out to the maintainer at one of the following places:
- GitHub issues
- The email which is located in this GitHub profile
Contributing
First off, thanks for taking the time to contribute! Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.
We have set up a separate document containing our contribution guidelines.
Thank you for being involved!
Authors & contributors
The original setup of this repository is by Samy Abidib.
For a full list of all authors and contributors, check the contributor's page.
Security
Remarking follows good practices of security, but 100% security can't be granted in software. Remarking is provided "as is" without any warranty. Use at your own risk.
For more info, please refer to security.
License
This project is licensed under the GPL v3 license.
See LICENSE for more information.
Acknowledgements
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
Built Distribution
File details
Details for the file remarking-0.1.4.tar.gz
.
File metadata
- Download URL: remarking-0.1.4.tar.gz
- Upload date:
- Size: 39.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be6516829969af6a23cb1fb33e6c082b14afa8d2fc12b00139959b21020ebfe9 |
|
MD5 | 4e889f43207dd1f182e3c123fbae544e |
|
BLAKE2b-256 | 0f35354035b62047e6b3e45feb5597ac588c383dbfbac382f3844ae9afbf0071 |
File details
Details for the file remarking-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: remarking-0.1.4-py3-none-any.whl
- Upload date:
- Size: 45.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40f7228af1f6a94ee70eac2b061750a53609e8b961752ab63ee75c0d632a94b7 |
|
MD5 | 737adf5b91cc3ae6c0a715e61918e0b5 |
|
BLAKE2b-256 | 27e0d08a441622b2730a0ec1e2ed136954b0b016d4b8ac3f23f0f7f8cc46ab97 |