llama-index readers joplin integration
Project description
Joplin (Markdown) Loader
pip install llama-index-readers-joplin
Joplin is an open source note-taking app. Capture your thoughts and securely access them from any device.
This readme covers how to load documents from a Joplin
database.
Joplin
has a REST API for accessing its local database. This reader uses the API to retrieve all notes in the database and their metadata. This requires an access token that can be obtained from the app by following these steps:
- Open the
Joplin
app. The app must stay open while the documents are being loaded. - Go to settings / options and select "Web Clipper".
- Make sure that the Web Clipper service is enabled.
- Under "Advanced Options", copy the authorization token.
You may either initialize the reader directly with the access token, or store it in the environment variable JOPLIN_ACCESS_TOKEN.
An alternative to this approach is to export the Joplin
's note database to Markdown files (optionally, with Front Matter metadata) and use a Markdown reader, such as ObsidianReader, to load them.
Usage
Here's an example usage of the JoplinReader.
import os
from llama_index.readers.joplin import JoplinReader
documents = JoplinReader(
access_token="<access_token>"
).load_data() # Returns list of documents
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 llama_index_readers_joplin-0.4.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_joplin-0.4.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8afda709bcdfbc68a4d26390abf6e25cf3e581e7cd9c01ed23cccbad5d305743 |
|
MD5 | 979916dd793fae25c6abc68c14e06cd7 |
|
BLAKE2b-256 | b7115a7269723581f958fe42d3526da5e414a7622b0a1891da2e9ae460181cff |
File details
Details for the file llama_index_readers_joplin-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_joplin-0.4.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3edfa18f7c614c6d03012c37f6d14de73776c60a723277058e616c3ee430d76e |
|
MD5 | 29c574cab703d418a2371793bb8faf12 |
|
BLAKE2b-256 | 5e1c80b0a253003b256e488d61caebac2bf9f6d1694eaa166ceb3a96113d41e9 |