finds.dev

chibisov/drf-extensions

DRF-extensions is a collection of custom extensions for Django REST Framework

View on GitHubHomepage ↗

★ 1,548PythonMITupdated Aug 2026

// the take

A grab-bag of DRF add-ons for the things vanilla DRF leaves out: response caching with conditional requests (ETags), a key-construction system for cache keys, nested routers, and bulk create/update/delete mixins. Useful for anyone running a DRF API who keeps re-implementing one of these by hand.

The cache_response decorator paired with conditional-request (ETag) support is a genuinely useful combo - most people bolt on caching and ETags separately and get the interaction wrong. The key constructor system lets you compose cache keys from request params, headers, user, etc. instead of hardcoding a key function. Nested routers fill a real hole in DRF's default router that people otherwise hand-roll with third-party packages. Wide, actively maintained compatibility matrix (Django 3.2-6.0, DRF 3.12-3.16, Python up to 3.14) means it won't be the thing blocking your next upgrade.

Cache invalidation is still on you - the decorator caches responses but there's no automatic bust-on-write, so it's easy to serve stale data after a mutation if you don't wire that up yourself. The bulk operation mixins (list_update, list_destroy) bypass the normal per-object permission and validation flow unless you're careful, which is an easy way to let a client bulk-delete or bulk-update things it shouldn't touch. It's effectively a single-maintainer project - the version matrix testing shows upkeep, but there's no sign of new feature work, just keeping pace with Django/DRF releases. Documentation lives on a separate GitHub Pages site rather than inline, so you're context-switching to understand any non-trivial feature like the key constructor bits.

We read the README, the directory tree and a key source file in November 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,548
Forks
210
Language
Python
License
MIT
Last commit
6 Aug 2026

// nearby

If drf-extensions isn't quite it.

All repos →