Skip to main content

Bookshare API wrapper

Project description

Bookshare API Wrapper

Tests Python 3.8+

A Python wrapper for the Bookshare API that provides access to accessible books and educational materials.

Installation

uv add bookshare

Usage

from bookshare import BookshareAPI

# Initialize with API key
api = BookshareAPI(API_key="your_api_key")

# Search for books
results = api.title_search("python programming")

# Get book details
book = api.isbn_lookup("9780134685991")

API Methods

  • category_list() - Get available book categories
  • grade_list() - Get available grade levels
  • title_search(query) - Search books by title
  • author_search(query) - Search books by author
  • isbn_lookup(isbn) - Get book by ISBN
  • book_lookup(book_id) - Get book by Bookshare ID
  • latest() - Get latest books
  • popular() - Get popular books
  • download(book_id, version) - Download book content

Development

# Clone and setup
git clone https://github.com/accessibleapps/bookshare.git
cd bookshare
uv sync --extra dev

# Run tests
uv run pytest

# Run linting
uv run ruff check .
uv run ruff format .

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

bookshare-0.11.0.tar.gz (141.7 kB view details)

Uploaded Source

Built Distribution

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

bookshare-0.11.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file bookshare-0.11.0.tar.gz.

File metadata

  • Download URL: bookshare-0.11.0.tar.gz
  • Upload date:
  • Size: 141.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for bookshare-0.11.0.tar.gz
Algorithm Hash digest
SHA256 47de31411c894de7a458f6b41abec8cc8c93742f1be110bca4f781dfd8a31da5
MD5 d8ab2f91e1f2c93df190e08e2f77768d
BLAKE2b-256 9923edfd178c6ca846644d74e4abbdb0ae5686732bfc65c4710900d3a8e57a14

See more details on using hashes here.

File details

Details for the file bookshare-0.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bookshare-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a124df7705e00b5bb44a41288860951df165fff5ebf7857433e8031374bb3411
MD5 2c10b6d266df3f0259e434cd221417fa
BLAKE2b-256 0711ad89c093356b2c88eb96901f4168996e0c3d7a8f36bb928f72cfa93840dc

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