Registry / web-framework / invenio-theme

invenio-theme

JSON →
library4.7.0pypypi✓ verified 84d ago

Invenio standard theme for the Invenio digital library framework. It provides base templates, CSS/JS assets, and theming utilities. Version 4.7.0 requires Python >=3.7. Released infrequently; follows Invenio major releases.

pip install invenio-theme
INSTALL
IMPORT
SIG · INVENIO-THEME
I
invenio-theme
web-frameworkpythonv4.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

InvenioTheme
from invenio_theme import InvenioTheme

Initialize InvncioTheme on a Flask application.

from flask import Flask from invenio_theme import InvenioTheme app = Flask(__name__) InvenioTheme(app) @app.route('/') def index(): return '<h1>Hello Invenio Theme</h1>' if __name__ == '__main__': app.run()
Debug
Known issues
breakingFrom version 2.0, the import path changed from `invenio_theme.ext` to `invenio_theme`. Old imports will fail.
fix
Use `from invenio_theme import InvenioTheme` instead of `from invenio_theme.ext import InvenioTheme`.
affects: <2.0
deprecatedThe `theme.base` template no longer extends `invenio_theme/page.html`; it now extends `invenio_theme/page_admin.html`. Custom templates targeting the old base will break.
fix
Update your Jinja template inheritance to extend `invenio_theme/page_admin.html` or `invenio_theme/page_front.html` as appropriate.
affects: >=3.0
gotchaThe package silently requires Flask-BabelEx if you use translations. Missing it causes a `ModuleNotFoundError` at import.
fix
Install Flask-BabelEx: `pip install Flask-BabelEx`.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'invenio_theme.ext'
You are using an old import path from before version 2.0.
fix
Replace `from invenio_theme.ext import InvenioTheme` with `from invenio_theme import InvenioTheme`.
jinja2.exceptions.TemplateNotFound: invenio_theme/page.html
The base template was renamed or removed in a newer version.
fix
Check your template inheritance: use `invenio_theme/page_admin.html` for admin pages or `invenio_theme/page_front.html` for public pages.
Upgrade
Version history
4.7.0latest on PyPI · released Apr 23, 2026
Audit
Dependencies
FlaskrequiredWeb framework dependency
Flask-BabelExrequiredInternationalization support
Agent activity
6 hits · last 30 days
node
6
Resources
invenio-theme — pip install invenio-theme · libregistry