Registry / devops / edx-i18n-tools

edx-i18n-tools

JSON →
library2.0.0pypypi✓ verified 86d ago

edX Internationalization Tools is a Python library providing utilities for extracting, generating, and managing translation files (PO, MO, XLIFF) in edX projects. It wraps Babel, polib, and lxml. Current version 2.0.0 drops Python 3.11 support. Release cadence is irregular, with major versions driven by Python version drops.

pip install edx-i18n-tools
INSTALL
IMPORT
SIG · EDX-I18N-TOOLS
E
edx-i18n-tools
devopspythonv2.0.0
Install
4.1s avg
Import
—
Disk
81MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v2.0.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.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 80.9MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 4.1s · import 0.000s · 82MB
81MB installed
● package 81MB
Code
Verified usage

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

Runner
✓ from i18n import Runner
✗ from i18n_tools import extract_i18n

Extract translatable strings from Python source files into a PO file.

from i18n_tools import extract_i18n # Extract translatable strings from source files extract_i18n( source_paths=['./my_project'], output_file='./locale/messages.po', keywords=['_', 'gettext', 'ngettext:1,2'] ) print('Translation extraction complete.')
i18n_tools --version
Debug
Known issues
breakingVersion 2.0.0 drops support for Python 3.11. Only Python 3.12+ is supported.
fix
Upgrade Python environment to 3.12 or later.
affects: >=2.0.0
deprecatedThe 'extract' command-line entry point has been removed in v2.0.0. Use the Python API instead.
fix
Replace shell script calls to 'extract' with Python code using i18n_tools.extract_i18n().
affects: >=2.0.0
gotchaThe library depends on lxml which may require system libraries (libxml2, libxslt). Pip install may fail on minimal systems.
fix
Install system dependencies: apt-get install libxml2-dev libxslt1-dev (Debian/Ubuntu) or brew install libxml2 libxslt (macOS).
affects: all
Upgrade
Version history
2.0.0latest on PyPI · released Mar 10, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
edx-i18n-tools — pip install edx-i18n-tools · libregistry