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
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
.
Project details
Release history Release notifications | RSS feed
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.1.0.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file readwise-1.1.0.tar.gz
.
File metadata
- Download URL: readwise-1.1.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e133ca64d6f82472cab0539fa69296bf317e8e0b46e9e6d95de4c0e51eb506c |
|
MD5 | 7b3ad49a849ef7ce297d87ef109243e9 |
|
BLAKE2b-256 | 5242cf1bbaeffb4815a7aab14d0de5fbbf251b7221f9f0dbb75602d4567683f1 |
File details
Details for the file readwise-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: readwise-1.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 090ea52f0c09b80f028f3f459d08a2d2c5b3eacf70f973ecd13026450c6eb2ef |
|
MD5 | 96a13d8b0c9827a9984e24421a37abc1 |
|
BLAKE2b-256 | 5f2059f879d527657ca3562e317dc43e895bfc14d3705f4537921de59efef7e5 |