django-memoize
An implementation of memoization technique for Django.
What it is and what it does
django-memoize implements function-level result caching for Django applications. It wraps functions or methods with a decorator that stores their return values, returning cached results on subsequent calls with identical arguments instead of recomputing. This is useful for expensive operations like database queries or API calls that produce the same output for the same inputs.
The package has no runtime dependencies beyond Django itself, making it lightweight to add to existing projects. However, it has been abandoned since 2020 and shows no signs of active maintenance. The classifiers indicate support for Django 1.11 and 2.0 with Python 2.7 and 3.4–3.6, but these versions are now obsolete, and compatibility with current Django and Python releases is unverified.
Use it for:
- Cache results of expensive database queries within a Django view to avoid repeated lookups
- Memoize API client calls or third-party service responses to reduce external request volume
- Store computed values from complex calculations or data transformations for reuse
- Reduce load on slow external services by caching their responses at the application layer
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Caches function and method results in Django applications using memoization, reducing redundant computation by storing and reusing previously computed outputs.
No. The package is abandoned (no updates since 2020) and high install friction suggests unresolved dependency issues. Modern Django and Python versions are unsupported and untested. Consider Django's built-in cache framework or a maintained alternative instead.
Install
django-memoize on PyPI
pip
pip install django-memoizeuv
uv add django-memoizepoetry
poetry add django-memoizeInstalling django-memoize
Before you install
High install friction and abandoned maintenance status (last release 2020-04-27, no activity for 2300 days) make this a risky choice for new projects. The package is marked Production/Stable but receives no updates.
License in practice
BSD License (permissive) places no restrictions on use, modification, or redistribution in commercial or private projects.
Quickstart
pip install django-memoize==2.3.1
from memoize import memoize
@memoize()
def expensive_function(arg):
return result
Requires Django; classifiers indicate support for Django 1.11 and 2.0, but no explicit requires_python or modern version compatibility information is published.
Verify before relying
- Actual compatibility with Django versions beyond 2.0 and modern Python 3.x releases
- Whether high install friction is due to missing wheels or unmet system dependencies
- Active alternatives or forks that maintain this functionality
- Whether timeout configuration is supported and how it is specified
Package facts
| License | BSD License (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,300 days since the last release |
| First released | |
| Downloads | 105,065/month — #12,722 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django-memoize-2.3.1.tar.gz
Tags
More Dynamic Content packages
MarkupSafe provides a text object that escapes…
permissive · top 100 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
soupsieveSoupsieve is a CSS selector library designed to…
permissive · top 100 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI
MakoMako compiles Python-embedded templates into…
permissive · top 1,000 on PyPI
dbt-statedbt-state is a dbt plugin that caches model…
permissive · top 15,000 on PyPI
django-cache-memoizeA decorator that caches function results using…
copyleft · top 15,000 on PyPI
django-cachalotAutomatically caches Django ORM queries and…
permissive · top 15,000 on PyPI
cached_methodProvides a method-level caching decorator that…
permissive · top 15,000 on PyPI
cacheyCachey provides intelligent caching for…
permissive · top 15,000 on PyPI
dj-inmemorystorageAn in-memory storage backend for Django that…
permissive · top 15,000 on PyPI
memoizationDecorator-based function result caching with…
permissive · top 5,000 on PyPI
py-memoizeCaching library for async Python applications…
permissive · top 15,000 on PyPI
cache-to-diskA decorator that caches function results to…
permissive · top 15,000 on PyPI
django-picklingSpeeds up Django model pickling by 2-3 times…
permissive · top 15,000 on PyPI