Registry / web-framework / flask-babelex

flask-babelex

JSON →
library0.9.4pypypiunverified

Adds i18n/l10n support to Flask applications, based on Flask-Babel but updated for newer dependencies. Current version is 0.9.4, maintained sporadically. No fixed release schedule.

pip install flask-babelex
INSTALL
IMPORT
SIG · FLASK-BABELEX
F
flask-babelex
web-frameworkpythonv0.9.4
Install
3.6s avg
Import
Disk
55MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.9.4 · 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 · 56.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.6s · import 0.000s · 57MB
55MB installed
● package 55MB
Code
Verified usage

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

Babel
from flask_babelex import Babel
from flask_babelex import Babel

Minimal Flask app with BabelEx for internationalization.

from flask import Flask from flask_babelex import Babel app = Flask(__name__) app.config['BABEL_DEFAULT_LOCALE'] = 'en' babel = Babel(app) from flask_babelex import gettext as _ @app.route('/') def index(): return _('Hello World') if __name__ == '__main__': app.run()
Debug
Known issues
breakingWerkzeug 1.0.0 compatibility fix required; older versions may break with modern Werkzeug.
fix
Upgrade to flask-babelex >= 0.9.4.
affects: < 0.9.4
gotchaFlask-BabelEx is a fork of Flask-Babel. Many Flask-Babel examples use 'flask.ext.babel' which no longer works; use 'flask_babelex' instead.
fix
Always import from flask_babelex (with underscore).
affects: all
deprecatedSupport for Python 2 is dropped; only Python 3 is tested.
fix
Ensure Python 3.6+ environment.
affects: >= 0.9.4
Upgrade
Version history
0.9.4latest on PyPI · released Feb 7, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
flask-babelex — pip install flask-babelex · libregistry