Registry / web-framework / edx-django-release-util

edx-django-release-util

JSON →
library1.5.0pypypiunverified

A Django utility library for Open edX to manage release-specific operations, such as feature gating, version comparison, and release cookie handling. Version 1.5.0 is the latest; maintained by the Open edX community.

pip install edx-django-release-util
INSTALL
IMPORT
SIG · EDX-DJANGO-RELEASE
E
edx-django-release-util
web-frameworkpythonv1.5.0
Install
3.6s avg
Import
Disk
68MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.5.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 · 68.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.6s · import 0.000s · 70MB
68MB installed
● package 68MB
Code
Verified usage

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

ReleaseCookieMiddleware
from release_util import ReleaseCookieMiddleware
from release_util.middleware import ReleaseCookieMiddleware

Quickstart: check feature gating and compare versions.

import os from django.http import HttpResponse from edx_django_release_util import version, feature_gating # Example: check if a feature is gated feature_name = 'my_new_feature' if feature_gating.is_feature_enabled(feature_name): response = HttpResponse('Feature enabled') else: response = HttpResponse('Feature disabled') # Example: compare versions current_version = '1.0.0' minimum_version = '1.0.1' if version.is_release_version_gt(minimum_version, current_version): print('Upgrade required.')
Debug
Known issues
gotchaThe `is_feature_enabled` function requires a properly configured release cookie middleware. Ensure `ReleaseCookieMiddleware` is added to `MIDDLEWARE` in Django settings.
fix
Add 'edx_django_release_util.middleware.ReleaseCookieMiddleware' to MIDDLEWARE in settings.py.
affects: all
gotchaVersion comparison functions expect semantic versioning (e.g., '1.0.0'). Non-standard version strings may cause errors.
fix
Always use strict semver format: MAJOR.MINOR.PATCH.
affects: all
deprecatedThe old import path `from edx_django_release_util import ...` works for top-level submodules, but import from explicit modules (e.g., `edx_django_release_util.version`) is clearer.
fix
Use explicit module imports as shown in the imports section.
affects: >=1.0.0
Upgrade
Version history
1.5.0latest on PyPI · released Apr 23, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
edx-django-release-util — pip install edx-django-release-util · libregistry