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

rero / rero-invenio-thumbnails / 21244454545
96%

Build:
DEFAULT BRANCH: master
Ran 22 Jan 2026 10:11AM 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

22 Jan 2026 10:11AM UTC coverage: 93.817% (-0.3%) from 94.082%
21244454545

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>

349 of 372 new or added lines in 13 files covered. (93.82%)

349 of 372 relevant lines covered (93.82%)

0.94 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
83.33
0.0% rero_invenio_thumbnails/modules/api.py
1
96.97
0.0% rero_invenio_thumbnails/modules/google_books/api.py
2
85.71
0.0% rero_invenio_thumbnails/__init__.py
2
95.35
4.61% rero_invenio_thumbnails/api.py
3
91.18
0.0% rero_invenio_thumbnails/modules/bnf/api.py
3
93.18
rero_invenio_thumbnails/modules/dnb/api.py
3
91.43
0.0% rero_invenio_thumbnails/modules/files/api.py
3
88.46
-11.54% rero_invenio_thumbnails/views.py
5
92.86
-1.43% rero_invenio_thumbnails/modules/utils.py
Jobs
ID Job ID Ran Files Coverage
1 21244454545.1 22 Jan 2026 10:11AM UTC 20
93.82
GitHub Action Run
Source Files on build 21244454545
  • Tree
  • List 20
  • Changed 6
  • Source Changed 6
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21244454545
  • 3408c38a on github
  • Prev Build on master (#21209562051)
  • Next Build on master (#21245479952)
  • 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