Skip to content

diljithbalakrishnan/goodreads-api-client-python

 
 

Repository files navigation

goodreads_api_client

A lightweight wrapper around the Goodreads API

PyPi page link -- version

image

PyPi page link -- MIT license

PyPi page link -- Python versions

Code Climate

RTD Docs

Installation

$ pip install goodreads_api_client

Usage

>>> import goodreads_api_client as gr
>>> client = gr.Client(developer_key='<YOUR_DEVELOPER_KEY>')
>>> book = client.Book.show('1128434')
>>> keys_wanted = ['id', 'title', 'isbn']
>>> reduced_book = {k:v for k, v in book.items() if k in keys_wanted}
>>> reduced_book
{'id': '1128434', 'title': 'The Last Wish (The Witcher, #1)', 'isbn': '0575077832'}

Resources

Rationale

There are a number of Goodreads API wrapper libraries out there, but most are either abandoned or the code is some combination of odd, undocumented, untested, or incomplete in its API coverage.

Contributing

To install locally

$ make install

And to test

$ make test

About

A lightweight Python wrapper around the Goodreads API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.4%
  • Makefile 3.0%
  • Dockerfile 0.6%