Metadata-Version: 2.1
Name: readwise
Version: 1.0.5
Summary: Readwise api client
Home-page: https://github.com/rwxd/pyreadwise
Author: rwxd
Author-email: rwxd@pm.me
License: MIT
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
License-File: LICENSE

# 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

```bash
pip install -U readwise
```

## Quickstart

### Readwise API

```python
from readwise import ReadwiseClient

client = ReadwiseClient('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

```python
from readwise import ReadwiseReaderClient

client = ReadwiseReaderClient('token')

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

## Documentation

### Readwise API

The Readwise API is documented [here](readwise-api.md).

The Readwise Reader API is documented [here](readwise-reader-api.md).
