No description
Find a file
2026-04-16 14:58:18 +02:00
examples feat: Enhance Booklooker client with webhook signature verification, idempotency handling, and retry logic 2026-04-16 14:58:18 +02:00
src/booklooker_client feat: Enhance Booklooker client with webhook signature verification, idempotency handling, and retry logic 2026-04-16 14:58:18 +02:00
tests feat: Enhance Booklooker client with webhook signature verification, idempotency handling, and retry logic 2026-04-16 14:58:18 +02:00
.gitignore feat: Add Booklooker client configuration and exception handling 2026-04-16 14:42:19 +02:00
openapi.yaml feat: Add Booklooker client configuration and exception handling 2026-04-16 14:42:19 +02:00
pyproject.toml feat: Add Booklooker client configuration and exception handling 2026-04-16 14:42:19 +02:00
README.md feat: Add Booklooker client configuration and exception handling 2026-04-16 14:42:19 +02:00

booklooker-client

A Python client for the Booklooker REST API designed for middleware and connector-hub scenarios.

Highlights

  • Generated API contract derived from openapi.yaml
  • Sync and async client entrypoints
  • Pydantic models for normalized responses
  • Token auto-refresh handling
  • Webhook helper toolbox for Push-API style events
  • FastAPI example receiver and enrichment workflow

Installation

pip install -e .[dev,webhooks]

Quick start

from booklooker_client import BooklookerConfig, SyncBooklookerClient

config = BooklookerConfig(api_key="YOUR_API_KEY")
client = SyncBooklookerClient(config)

token = client.authenticate()
articles = client.get_article_list()
print(token.token)
print(articles.items)

Notes

Booklooker wraps nearly all responses into a generic envelope with status and returnValue. This package normalizes those responses into typed Pydantic models so downstream middleware can work with stable structures.