Skip to main content

Python Module to use the Readwise API

This module is a wrapper for the Readwise API.

It allows you to easily access your Readwise data in Python.

Installation

pip install -U readwise

How to use

Readwise API

from readwise import Readwise

client = Readwise('token')

books = client.get_books(category='articles')

for book in books:
	highlights = client.get_book_highlights(book.id)
	if len(highlights) > 0:
		print(book.title)
		for highlight in highlights:
			print(highlight.text)

Readwise Readwise API

from readwise import ReadwiseReader

client = ReadwiseReader('token')

response = client.create_document('https://www.example.com')
response.raise_for_status()

Documentation

The latest documentation can be found at https://rwxd.github.io/pyreadwise/

If you've checked out the source code (for example to review a PR), you can build the latest documentation by running make serve-docs.

Metadata

Release files for readwise 1.1.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 readwise 1.1.0
File Size Uploaded Provenance Actions
readwise-1.1.0.tar.gz 7.0 kB Without provenance Details for readwise-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for readwise 1.1.0
File Interpreter ABI Platform Actions
readwise-1.1.0-py3-none-any.whl Python 3 none any Details for readwise-1.1.0-py3-none-any.whl

Total release size: 13.9 kB

Release files / readwise-1.1.0.tar.gz

Download URL readwise-1.1.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8e133ca64d6f82472cab0539fa69296bf317e8e0b46e9e6d95de4c0e51eb506c
BLAKE2b-256 checksum
How to use checksums
5242cf1bbaeffb4815a7aab14d0de5fbbf251b7221f9f0dbb75602d4567683f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / readwise-1.1.0-py3-none-any.whl

Download URL readwise-1.1.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
090ea52f0c09b80f028f3f459d08a2d2c5b3eacf70f973ecd13026450c6eb2ef
BLAKE2b-256 checksum
How to use checksums
5f2059f879d527657ca3562e317dc43e895bfc14d3705f4537921de59efef7e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for readwise 1.1.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