Registry / auth-security / invenio-accounts

invenio-accounts

JSON →
library7.2.1pypypi✓ verified 83d ago

Invenio module for user management and authentication. Handles user registration, login, password reset, and session management. Current version 7.2.1 (requires Python >=3.7). Released under the MIT license. Maintenance mode; new features are being integrated into InvenioRDM.

pip install invenio-accounts
INSTALL
IMPORT
SIG · INVENIO-ACCOUNTS
I
invenio-accounts
auth-securitypythonv7.2.1
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.

InvenioAccounts
from invenio_accounts import InvenioAccounts
from invenio_accounts.models import InvenioAccounts
InvenioAccounts is the Flask extension class, not a model.
User
from invenio_accounts.models import User
The User model is in invenio_accounts.models.

Minimal Flask app with Invenio-Accounts initialized.

from flask import Flask from invenio_accounts import InvenioAccounts app = Flask(__name__) app.config['SECRET_KEY'] = 'change_this_key' InvenioAccounts(app) @app.route('/') def index(): return 'Hello' if __name__ == '__main__': app.run()
invenio --version
Debug
Known issues
breakingIn version 7.0, the default hashing algorithm for passwords changed from bcrypt to scrypt. Existing passwords stored with bcrypt will fail to verify unless migrated.
fix
Run the provided upgrade script `invenio accounts upgrade` or manually rehash passwords with scrypt.
affects: >=7.0
gotchaThe `invenio-accounts` package does not include a ready-to-use user interface. You must integrate with Flask-Security or build custom templates.
fix
Install `Flask-Security` and configure it alongside Invenio-Accounts, or implement your own login/registration views.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'invenio_accounts'
The package is not installed or is installed in a different environment.
fix
Run `pip install invenio-accounts` in your current environment.
ImportError: cannot import name 'InvenioAccounts'
Using an outdated import path. InvenioAccounts was previously located in invenio_accounts.ext or similar.
fix
Use `from invenio_accounts import InvenioAccounts`.
Upgrade
Version history
7.2.1latest on PyPI · released Apr 17, 2026
Audit
Dependencies
invenio-baserequiredCore framework integration
flask-securityoptionalLegacy dependency for some account views (may be removed in future versions)
Agent activity
8 hits · last 30 days
node
8
Resources
invenio-accounts — pip install invenio-accounts · libregistry