Comparison
django-middleware-global-request vs django-threadlocals
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Django middleware that keep request instance for every thread.
Low maintenance activity. Last release 13 months ago. Weaker on commit activity and recent releases.
$
pip install django-middleware-global-requestContains utils for storing and retreiving values from threadlocals, and middleware for placing the current Django request in threadlocal storage.
Likely abandoned. No release or commit for years (last release over 7 years ago).
$
pip install django-threadlocalsIn short
- django-threadlocals looks abandoned: avoid it for new projects.
- django-middleware-global-request is the most used: 71.3K downloads a month.
- django-middleware-global-request also has the best Pythie’s Index (37).
Side by side
| Metric | django-middleware-global-request | django-threadlocals |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 37 | 18 |