Registry / web-framework / invenio-base

invenio-base

JSON →
library2.4.0pypypi✓ verified 79d ago

Base package for building Invenio application factories. Provides foundational utilities such as configuration loading, instance path setup, logging configuration, and Flask application factory. Current version 2.4.0, requires Python >=3.7. Invenio-Base follows semantic versioning with a stable release cadence.

pip install invenio-base
INSTALL
IMPORT
SIG · INVENIO-BASE
I
invenio-base
web-frameworkpythonv2.4.0
Install
2.5s avg
Import
Disk
22MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 24MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.5s · import 0.000s · 24MB
22MB installed
● package 22MB
Code
Verified usage

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

create_app_factory
from invenio_base import create_app_factory
from invenio_base import InvenioBase
create_cli
from invenio_base import create_cli
create_wsgi_factory
from invenio_base import create_wsgi_factory

Create a minimal Invenio application using InvenioBase and create_app.

from invenio_base.app import create_app from invenio_base import InvenioBase class MyApp(InvenioBase): pass app = create_app(MyApp) if __name__ == '__main__': app.run()
Debug
Known issues
breakingInvenio-Base dropped support for Python 3.6 and earlier. Requires Python >=3.7.
fix
Upgrade Python to 3.7+ or pin to invenio-base<2.0.0 if stuck on Python 2.7/3.6.
affects: >=2.0.0
breakingInvenio-Base 2.0.0 removed the deprecated invenio_base.helpers module. Code depending on helpers must be updated.
fix
Remove imports from invenio_base.helpers; use standard library or Flask helpers instead.
affects: >=2.0.0
gotchaThe create_app function requires an InvenioBase subclass, not an instance. Passing an instance will raise a TypeError.
fix
Ensure you pass the class (not an instance) to create_app.
affects: all
Upgrade
Version history
2.4.0latest on PyPI · released Dec 2, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
10
Resources
invenio-base — pip install invenio-base · libregistry