Skip to main content

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:

  1. Open the Joplin app. The app must stay open while the documents are being loaded.
  2. Go to settings / options and select "Web Clipper".
  3. Make sure that the Web Clipper service is enabled.
  4. 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

llama_index_readers_joplin-0.4.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_readers_joplin-0.4.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_joplin-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8afda709bcdfbc68a4d26390abf6e25cf3e581e7cd9c01ed23cccbad5d305743
MD5 979916dd793fae25c6abc68c14e06cd7
BLAKE2b-256 b7115a7269723581f958fe42d3526da5e414a7622b0a1891da2e9ae460181cff

See more details on using hashes here.

File details

Details for the file llama_index_readers_joplin-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_joplin-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3edfa18f7c614c6d03012c37f6d14de73776c60a723277058e616c3ee430d76e
MD5 29c574cab703d418a2371793bb8faf12
BLAKE2b-256 5e1c80b0a253003b256e488d61caebac2bf9f6d1694eaa166ceb3a96113d41e9

See more details on using hashes here.

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