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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openlibraryapi_peterinjapan1-0.1.0.tar.gz.
File metadata
- Download URL: openlibraryapi_peterinjapan1-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9a6bd5665f686dce5447b194e91337c549261b2d53b88d2221dbd3405f25c89
|
|
| MD5 |
62c4bc4eb225bcc593336f60ff411f0d
|
|
| BLAKE2b-256 |
895217bd824e0ddc1897da815966a0637453407563cf7c865025aef6aa0fe593
|
File details
Details for the file openlibraryapi_peterinjapan1-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openlibraryapi_peterinjapan1-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 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 |
c031cad964e69affec856731db355e806d91aaca924a8d3c5b95b3a0ae549a4a
|
|
| MD5 |
d2b69bf3040643557c78e719b0b78980
|
|
| BLAKE2b-256 |
9cb3a333319631a7381ab3d488edd18572d49f7ea46557c6bbf11bd8df091672
|