--- id: edx-django-utils version: "8.0.1" license: unclear license_treatment: permissive maintenance: active --- # edx-django-utils — EdX utilities for Django Application development. License: permissive · Maintenance: active · Downloads: 110.1K/mo ## What it is and what it does edx-django-utils is a collection of reusable utilities built for the Open edX platform to support common Django application patterns. It provides modular tools for request-scoped caching via RequestCache and TieredCache, user and group management helpers, IP address extraction and handling, structured logging with encryption support, monitoring middleware with multiple backend support (including Datadog), a plugin system for enhanced Django extensibility, Content Security Policy middleware, and management commands for generating test data from model factories. The package is designed as a shared library where each utility exposes its public API through module __init__.py files. It targets Django 4.2 and 5.2 on Python 3.12, with active maintenance that recently removed the newrelic dependency to let users install monitoring backends independently. Most utilities are optional in nature—you import only what you need—making it suitable for both small and large Django projects that want to avoid reimplementing common patterns. Use it for: - Add request-scoped caching to Django views without managing cache lifecycle manually. - Implement multi-tier caching strategies combining in-memory and distributed caches. - Extract and normalize client IP addresses from requests, handling proxies and forwarding headers. - Add encrypted logging for sensitive data in production Django applications. - Integrate application monitoring with Datadog or other backends via the monitoring middleware. - Build extensible Django applications using the plugin infrastructure for third-party integrations. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a collection of shared utilities for Django applications, including caching, user/group management, IP handling, logging, monitoring, plugin infrastructure, security headers, and data generation. Yes, if you are building or maintaining a Django application and want to avoid reimplementing common utilities like request caching, monitoring middleware, or plugin infrastructure. The package is actively maintained, has no known vulnerabilities, and uses a permissive license. Install it if you need one or more of its utilities; the modular design means you only pay for what you use. Not necessary if your project has already solved these problems with other libraries or internal code. ## Install pip install edx-django-utils uv add edx-django-utils poetry add edx-django-utils ## Installing edx-django-utils Before you install: Low install friction with a pure-Python wheel. Active maintenance as of 2026-08-10 with recent updates addressing deprecated dependencies (newrelic removed in 8.0.0). Depends on 7 runtime packages including Django, PyNaCl, click, django-crum, django-waffle, psutil, and stevedore. License in practice: Licensed under Apache License 2.0 (permissive). No restrictions on commercial or private use; modifications and redistribution are permitted under the same license terms. Quickstart: pip install edx-django-utils from edx_django_utils.cache import RequestCache from edx_django_utils.monitoring import set_monitoring_transaction_name cache = RequestCache() cache.set('key', 'value') set_monitoring_transaction_name('transaction_name') Requires Django and Python 3.12; package dropped support for Python versions below 3.12 as of version 6.0.0. Verify before relying: - Whether all 7 runtime dependencies are required for all utilities or if some are optional/conditional. - Specific Django 4.2 and 5.2 compatibility details and any known issues with those versions. - Performance characteristics or scalability limits of the caching and monitoring utilities. - Whether the plugin infrastructure supports dynamic loading at runtime or only at startup. ## Package facts - License: not declared (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 110.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django utilities library, django caching helpers, django monitoring middleware, django plugin infrastructure, django security utilities, django logging utilities, django user group management, django-utilities, monitoring-middleware, plugin-system [View on SkillFed](https://skillfed.io/packages/edx-django-utils) · [View on PyPI](https://pypi.org/project/edx-django-utils/)