Skip to main content

A simple and easy to use wrapper around the Google Books Web API.

Project description

Google Books API Wrapper for Python

This package wraps the Google Books API in an easy to use Python interface. Use it to find comprehensive data on all books that peak your interest.

Begin by installing the package:

pip install google-books-api-wrapper

then import the required configuration object,

from google_books_api_wrapper.api import GoogleBooksAPI

You can now use this object to search and retreive books,

>>> client = GoogleBooksAPI()

>>> client.get_book_by_title("IT")
Book(title=It, authors=['Stephen King'])

>>> client.get_book_by_isbn13("9780670813025")
Book(title=It, authors=['Stephen King'])

>>> client.get_book_by_isbn10("0670813028")
Book(title=It, authors=['Stephen King'])

>>> simon_schuster_books = client.get_books_by_publisher("Simon & Schuster")
>>> simon_schuster_books.get_all_results()[:3]
[Book(title=Simon & Schuster's Guide to Dogs, authors=['Gino Pugnetti']), Book(title=Frankenstein, authors=['Mary Shelley']), Book(title=Why We Buy, authors=['Paco Underhill'])]

>>> fiction_books = client.get_books_by_subject("Fiction")
>>> fiction_books.get_all_results()[:3]
[Book(title=Lord of the Flies, authors=['William Golding']), Book(title=Amish Snow White, authors=['Rachel Stoltzfus']), Book(title=The Odyssey of Homer, authors=['Richmond Lattimore'])]

>>> stephen_king_books = client.get_books_by_author("Stephen King")
>>> stephen_king_books.total_results #Read Below about book return limit
40

>>> stephen_king_books.get_all_results()[:3]
[Book(title=It, authors=['Stephen King']), Book(title=1922, authors=['Stephen King']), Book(title=Elevation, authors=['Stephen King'])]

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

google_books_api_wrapper-1.0.5.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_books_api_wrapper-1.0.5-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file google_books_api_wrapper-1.0.5.tar.gz.

File metadata

  • Download URL: google_books_api_wrapper-1.0.5.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for google_books_api_wrapper-1.0.5.tar.gz
Algorithm Hash digest
SHA256 33108ab507543412d645201cc7ee722c39def4fd4edadba709b8f99b538bbd4c
MD5 58b189b06539ff21ea7487fad968c0a8
BLAKE2b-256 5b030422521d943d5347daabb863a3127bb492668eccf2a390e60f8b0d966e0b

See more details on using hashes here.

File details

Details for the file google_books_api_wrapper-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for google_books_api_wrapper-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b60051afe5428e3d5013445d247def794493638f95932d5c812b051181a46c6a
MD5 830c3ac8a24db49e89d6c621bcbe718b
BLAKE2b-256 47a4cb8c716bd14e912a9e60990687aa03bddea8bf25c5dc2a7c67c4d9add047

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page