• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rero / rero-invenio-thumbnails / 21352238109
96%

Build:
DEFAULT BRANCH: master
Ran 26 Jan 2026 09:14AM UTC
Jobs 1
Files 20
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Jan 2026 09:14AM UTC coverage: 95.9% (+0.1%) from 95.755%
21352238109

push

github

rerowep
initial: add rero-invenio-thumbnails extension

Lightweight Invenio extension for discovering book thumbnail URLs from multiple providers.

Features:
- Multi-provider architecture with fallback chain
- 6 built-in providers: Files, OpenLibrary, BNF, DNB, GoogleBooks, GoogleAPI
- Plugin-based system via entry points for custom providers
- Redis-based caching with configurable TTL
- RESTful JSON API: GET /thumbnails-url/<isbn>
- HTTP retry logic with exponential backoff
- Comprehensive test suite: 112 tests, 97% coverage

Providers:
- FilesProvider: Serve from local filesystem directory
- OpenLibraryProvider: Community-driven book cover database
- BnfProvider: Bibliothèque nationale de France covers
- GoogleBooksProvider: Google Books preview service
- GoogleApiProvider: Official Google Books API

Architecture:
- URL discovery only (no image serving/manipulation)
- Chainable provider pattern with first-match-wins strategy
- Configurable provider order and retry behavior
- Full Sphinx documentation with API reference

Co-Authored-by: Peter Weber <peter.weber@rero.ch>

421 of 439 new or added lines in 13 files covered. (95.9%)

421 of 439 relevant lines covered (95.9%)

0.96 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.88
0.0% rero_invenio_thumbnails/modules/files/api.py
1
97.14
0.17% rero_invenio_thumbnails/modules/google_books/api.py
2
85.71
0.0% rero_invenio_thumbnails/__init__.py
2
71.43
0.0% rero_invenio_thumbnails/modules/api.py
3
91.43
0.25% rero_invenio_thumbnails/modules/bnf/api.py
3
95.59
0.0% rero_invenio_thumbnails/modules/utils.py
6
91.78
0.0% rero_invenio_thumbnails/views.py
Jobs
ID Job ID Ran Files Coverage
1 21352238109.1 26 Jan 2026 09:14AM UTC 20
95.9
GitHub Action Run
Source Files on build 21352238109
  • Tree
  • List 20
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21352238109
  • c6d539c6 on github
  • Prev Build on master (#21253567480)
  • Next Build on master (#21354744980)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc