Registry / devops / bx-django-utils

bx-django-utils

JSON →
library97pypypiunverified

A collection of various Django utility functions, including automatic admin user impersonation, string tools, mail handling, and more. Latest PyPI version is 97, with releases roughly monthly. Requires Python 3.12-3.14 and Django 3.2+.

pip install bx-django-utils
INSTALL
IMPORT
SIG · BX-DJANGO-UTILS
B
bx-django-utils
devopspythonv97
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

generate_key
from bx_django_utils.crypto import generate_key
from bx_django_utils.crypto import generate_key

Generate a key and import the admin impersonate middleware.

from bx_django_utils.crypto import generate_key print(generate_key()) # Middleware example from bx_django_utils.admin_extra_views.middleware import AdminUserImpersonateMiddleware # Add to MIDDLEWARE as 'bx_django_utils.admin_extra_views.middleware.AdminUserImpersonateMiddleware'
Debug
Known issues
breakingIn v68, the admin_user_impersonate middleware was moved from bx_django_utils.middleware to bx_django_utils.admin_extra_views.middleware. Old imports break.
fix
Update import to from bx_django_utils.admin_extra_views.middleware import AdminUserImpersonateMiddleware
affects: >=68
deprecatedThe function 'generate_key' in bx_django_utils.crypto was deprecated in v80; use Python's secrets module directly instead.
fix
Replace with import secrets; secrets.token_hex(32)
affects: >=80
gotchaThe package name is 'bx-django-utils' on PyPI but 'bx_django_utils' when importing. Common typo using hyphen in import.
fix
Use import with underscores, e.g., from bx_django_utils import ...
affects: all
Upgrade
Version history
97latest on PyPI · released Apr 21, 2026
Audit
Dependencies
djangorequiredCore dependency for Django utilities
Agent activity
4 hits · last 30 days
node
4
Resources
bx-django-utils — pip install bx-django-utils · libregistry