Registry / web-framework / enmerkar-underscore

enmerkar-underscore

JSON →
library2.4.0pypypiunverified

A Django extension that implements an underscore extractor for django-babel, enabling translation of JavaScript underscore templates. Version 2.4.0 supports Django 5.2 and Python 3.9+. Released as needed by the Open edX project.

pip install enmerkar-underscore
INSTALL
IMPORT
SIG · ENMERKAR-UNDERSCOR
E
enmerkar-underscore
web-frameworkpythonv2.4.0
Install
4.0s avg
Import
Disk
99MB
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 · 100.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.0s · import 0.000s · 101MB
99MB installed
● package 99MB
Code
Verified usage

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

Extractor
from enmerkar_underscore.extract import Extractor
from enmerkar_underscore.extract import Extractor

Minimal setup to use the extractor with django-babel.

# In your Django app's Babel extraction config (setup.cfg or pyproject.toml): # [extractors] # underscore = enmerkar_underscore.extract:Extractor import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') from enmerkar_underscore.extract import Extractor extractor = Extractor("underscore", [], {}) # Extractor is used by django-babel during extraction.
Debug
Known issues
breakingDropped Python 3.8 support in version 2.4.0. Upgrade to Python 3.9+.
fix
Use Python 3.9 or higher.
affects: >=2.4.0
gotchaDo not confuse with 'enmerkar' (which extracts Django templates). enmerkar-underscore is for underscore.js templates only.
fix
Ensure you install and import from 'enmerkar_underscore' not 'enmerkar'.
affects: all
Upgrade
Version history
2.4.0latest on PyPI · released May 6, 2025
Audit
Dependencies
django-babelrequiredRequired for Babel extraction integration.
DjangorequiredRequired as the web framework.
Agent activity
17 hits · last 30 days
node
16
Resources
enmerkar-underscore — pip install enmerkar-underscore · libregistry