Comparison
django-crequest vs django-middleware-global-request vs django-threadlocals
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Middleware that makes the current request available from anywhere.
Likely abandoned. No release or commit for years (last release over 8 years ago).
$
pip install django-crequestDjango middleware that keep request instance for every thread.
Low maintenance activity. Last release 13 months ago. Weaker on recent releases and release cadence.
$
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-crequest looks abandoned: avoid it for new projects.
- django-threadlocals looks abandoned: avoid it for new projects.
- django-middleware-global-request is the most used: 72K downloads a month.
- django-middleware-global-request also has the best Pythie’s Index (37).
Side by side
| Metric | django-crequest | django-middleware-global-request | django-threadlocals |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 16 | 37 |