Skip to main content

Readwise api client

Project description

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

Quickstart

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.

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

readwise-1.0.11.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

readwise-1.0.11-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file readwise-1.0.11.tar.gz.

File metadata

  • Download URL: readwise-1.0.11.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for readwise-1.0.11.tar.gz
Algorithm Hash digest
SHA256 18205df602c69e9ebdadfa56f24559c7cf19271d45d55eaa3b10db7d6fd5f634
MD5 2fd59817afe20ab59db0f208c0a9bf2e
BLAKE2b-256 b7fd62e648adace57645339eb711d64b6fa3be55a90110e99d0ecc1919249cbc

See more details on using hashes here.

File details

Details for the file readwise-1.0.11-py3-none-any.whl.

File metadata

  • Download URL: readwise-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for readwise-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 29671c390bb9531dc8b881f37e455386e998892cb2280fdf171d581910ec9604
MD5 da45f582a337f5d809b8a7348555ba7c
BLAKE2b-256 ca0c7cf1c5ef01c3b718385ab4290cd4ca23e82a515de42e2bdf52d49b767704

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