djangorestframework-filters
Better filtering for Django REST Framework
Decision gist · record as of 2026-08-14
Yes, if you are using Django and DRF versions from the 2015–2019 era and need relationship-aware filtering without custom code. No, if you are on modern Django/DRF versions—compatibility is unverified, the package is dormant, and django-filter itself has absorbed many of the original features. Check whether django-filter's current capabilities meet your needs before adopting this package.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires djangorestframework and django-filter to be installed; package is dormant and targets older Django/DRF versions, so compatibility with modern versions is unverified.
- Low install friction with a pure-Python wheel.
- Maintenance is dormant—last release was 2019-03-21 and last commit 2023-11-25—so expect no active bug fixes or feature development, though the package remains stable for existing Django/DRF versions it targets.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
last release 2019-03-21 (2703 days) · last repo commit 2023-11-25 · 853 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 347,792 downloads/mo, #7,346 on PyPI
Alternatives
Verify before relying
pip install djangorestframework-filters
from djangorestframework_filters import FilterSet
class ProductFilter(FilterSet):
class Meta:
model = Product
fields = {'name': ['exact', 'icontains']}
# In Django settings:
REST_FRAMEWORK = {
'DEFAULT_FILTER_BACKENDS': (
'rest_framework_filters.backends.DjangoFilterBackend',
),
}- Compatibility with Django and DRF versions released after 2019.
- Whether the package's features have been superseded by django-filter or djangorestframework since 2019.
- Active maintenance or community support status beyond the last commit date.
What it is and what it does
djangorestframework-filters is an extension to Django REST Framework and django-filter that simplifies filtering across model relationships in API endpoints. Instead of writing complex query logic, you can traverse foreign keys and reverse relations using double-underscore syntax (e.g., `/api/articles?author__first_name__icontains=john`) and apply exclusion filters with a `!=` operator. The package wraps FilterSet and provides a DRF-compatible backend.
The package's main appeal is relationship traversal and method-based filtering, though the description notes that many of its original features have been merged back into django-filter itself. It depends on both djangorestframework and django-filter as runtime dependencies. The codebase is dormant—no releases since 2019-03-21 and last activity in 2023-11-25—so it is stable but receives no active maintenance or updates for newer versions.
Use it for
- Filter API results by nested model fields without writing custom filter logic (e.g., find articles by author's first name).
- Build exclusion filters using `!=` syntax to exclude records matching a condition in a single query parameter.
- Traverse multiple relationship levels in a single filter call (e.g., company → department → manager).
- Support method-based filtering across relationships, allowing custom logic to apply to related querysets.
- Restrict related object querysets dynamically based on request context (e.g., show only departments in the user's company).
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are using Django and DRF versions from the 2015–2019 era and need relationship-aware filtering without custom code.
No, if you are on modern Django/DRF versions—compatibility is unverified, the package is dormant, and django-filter itself has absorbed many of the original features. Check whether django-filter's current capabilities meet your needs before adopting this package.
Install
djangorestframework-filters on PyPI
Before you install
Low install friction with a pure-Python wheel. Maintenance is dormant—last release was 2019-03-21 and last commit 2023-11-25—so expect no active bug fixes or feature development, though the package remains stable for existing Django/DRF versions it targets.
Requires djangorestframework and django-filter to be installed; package is dormant and targets older Django/DRF versions, so compatibility with modern versions is unverified.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install djangorestframework-filters
from djangorestframework_filters import FilterSet
class ProductFilter(FilterSet):
class Meta:
model = Product
fields = {'name': ['exact', 'icontains']}
# In Django settings:
REST_FRAMEWORK = {
'DEFAULT_FILTER_BACKENDS': (
'rest_framework_filters.backends.DjangoFilterBackend',
),
}
Verify before relying
- Compatibility with Django and DRF versions released after 2019.
- Whether the package's features have been superseded by django-filter or djangorestframework since 2019.
- Active maintenance or community support status beyond the last commit date.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesdjangorestframeworkdjango-filter |
| Maintenance | Dormant 2,703 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 347,792 / month, #7,346 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Internet :: WWW/HTTP |
Evidence: djangorestframework_filters-0.11.1-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django rest framework filtering”
- djangorestframework-filtersExtends Django REST Framework with advanced filtering capabilities,…
- django-elasticsearch-dsl-drfProvides Django REST framework views, serializers, and filter…
- django-filterDjango-filter adds dynamic QuerySet filtering to Django views and…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also django-filter · magic-filter · djangorestframework-jsonapi · djangorestframework-datatables · djangorestframework-role-filters · django-mock-queries · django-datatables-view · djangorestframework-bulk · django-admin-list-filter-dropdown · djangorestframework-guardian