Skip to main content

Readwise Reader

pip install llama-index-readers-readwise

Use Readwise's export API to fetch your highlights from web articles, epubs, pdfs, Kindle, YouTube, and load the resulting text into LLMs.

Setup

  1. Get your Readwise API key from readwise.io/access_token.

Usage

Here is an example usage of the Readwise Reader:

import os
from llama_index.core import VectorStoreIndex, download_loader

from llama_index.readers.readwise import ReadwiseReader

token = os.getenv("READWISE_API_KEY")
loader = ReadwiseReader(api_key=token)
documents = loader.load_data()
index = VectorStoreIndex.from_documents(documents)

index.query("What was the paper 'Attention is all you need' about?")

You can also query for highlights that have been created after a certain time:

import os
import datetime
from llama_index.core import VectorStoreIndex, download_loader

from llama_index.readers.readwise import ReadwiseReader

token = os.getenv("READWISE_API_KEY")
loader = ReadwiseReader(api_key=token)
seven_days_ago = datetime.datetime.now() - datetime.timedelta(days=7)
documents = loader.load_data(updated_after=seven_days_ago)
index = VectorStoreIndex.from_documents(documents)

index.query("What has Elon Musk done this time?")

This loader is designed to be used as a way to load data into LlamaIndex.

Metadata

Release files for llama-index-readers-readwise 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-readers-readwise 0.6.0
File Size Uploaded Provenance Actions
llama_index_readers_readwise-0.6.0.tar.gz 4.1 kB Without provenance Details for llama_index_readers_readwise-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-readers-readwise 0.6.0
File Interpreter ABI Platform Actions
llama_index_readers_readwise-0.6.0-py3-none-any.whl Python 3 none any Details for llama_index_readers_readwise-0.6.0-py3-none-any.whl

Total release size: 7.8 kB

Release files / llama_index_readers_readwise-0.6.0.tar.gz

Download URL llama_index_readers_readwise-0.6.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c1e119ae3802dd432a19276ca696e2e90dc1c0992198d8f9c4f517f407b6bee3
BLAKE2b-256 checksum
How to use checksums
d7a474351054a88bcac88b1274c8eb6be146a376538efb926e454b49572bdea6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_readers_readwise-0.6.0-py3-none-any.whl

Download URL llama_index_readers_readwise-0.6.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8abd3858aa174d363a000a916b3bb6c3530375f7c7cec77ec2b00c8cbab2f9c
BLAKE2b-256 checksum
How to use checksums
ad9bead9920245254f9ebb64f906ea913fc55aa1c45abe099cb3d0fb65a136f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for llama-index-readers-readwise 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page