Skip to main content

A Python library for interacting with the Open Library API

Project description

OpenLibraryApi

OpenLibraryapi is a Python library for interacting with the Open Library API. It allows you to search for books and retrieve information about them.

Features

Search for books using the Open Library API. Retrieve information about each book, including title, cover URL, ISBN, edition count, authors, and first publish year.

Installation

pip install openlibraryapi

#Usage Example:

from openlibrarypy import OpenLibraryApi

Create an instance of OpenLibraryApi with a search term

search_term = "The Lord of the Rings" open_library_instance = OpenLibraryApi(search_term)

Search for books

search_results = open_library_instance.search_books()

if search_results: # Parse and print information about each book parsed_results = open_library_instance.parse_results(search_results)

if parsed_results:
    for book in parsed_results:
        print("Book Information:")
        print(book)
        print("\n")
else:
    print("No books found.")

else: print("Failed to retrieve search results.")

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

openlibraryapi_peterinjapan1-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

openlibraryapi_peterinjapan1-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file openlibraryapi_peterinjapan1-0.1.0.tar.gz.

File metadata

File hashes

Hashes for openlibraryapi_peterinjapan1-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a9a6bd5665f686dce5447b194e91337c549261b2d53b88d2221dbd3405f25c89
MD5 62c4bc4eb225bcc593336f60ff411f0d
BLAKE2b-256 895217bd824e0ddc1897da815966a0637453407563cf7c865025aef6aa0fe593

See more details on using hashes here.

File details

Details for the file openlibraryapi_peterinjapan1-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openlibraryapi_peterinjapan1-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c031cad964e69affec856731db355e806d91aaca924a8d3c5b95b3a0ae549a4a
MD5 d2b69bf3040643557c78e719b0b78980
BLAKE2b-256 9cb3a333319631a7381ab3d488edd18572d49f7ea46557c6bbf11bd8df091672

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