django-filter-stubs
PEP-484 stubs for django-filter
What it is and what it does
django-filter-stubs is a type stub package that adds PEP-484 type annotations for the django-filter library, allowing static type checkers like mypy to understand and validate code that uses django-filter. It acts as a bridge between the untyped django-filter library and Python's static type-checking ecosystem, working alongside mypy, django-stubs, and djangorestframework-stubs to provide type safety for Django filter operations.
However, this package is archived and abandoned as of March 2023. The maintainers explicitly recommend using types-django-filter instead, which is the active successor. Installing this package will provide type stubs but will not receive bug fixes, compatibility updates, or support for newer versions of its dependencies.
Use it for:
- Add type checking to existing Django projects using django-filter without waiting for upstream type support.
- Enable IDE autocomplete and type hints for django-filter QuerySet filtering operations in typed codebases.
- Integrate django-filter into a mypy-checked codebase to catch filter-related type errors at development time.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides PEP-484 type stubs for django-filter to enable static type checking with mypy and other type checkers.
No. The package is archived and abandoned; the maintainers recommend types-django-filter as the active replacement. Installing this will provide type stubs but receive no maintenance, bug fixes, or updates. Use types-django-filter instead.
Install
django-filter-stubs on PyPI
pip
pip install django-filter-stubsuv
uv add django-filter-stubspoetry
poetry add django-filter-stubsInstalling django-filter-stubs
Before you install
Low install friction, but the package is archived and abandoned as of 2023-03-28. The repository is marked archived and the maintainers recommend using types-django-filter instead.
License in practice
MIT license permits commercial and private use with minimal restrictions, though the package's abandoned status means no future license updates or clarifications will be provided.
Quickstart
pip install django-filter-stubs
import django_filter
from mypy import api
# Type checking now available for django-filter code
Package is archived and no longer maintained; types-django-filter is the recommended replacement.
Verify before relying
- Whether types-django-filter provides equivalent or superior type coverage compared to this archived package.
- Compatibility with modern versions of mypy, django-stubs, and djangorestframework-stubs beyond what the fact sheet indicates.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — mypy, django-stubs, djangorestframework-stubs, typing-extensions |
| Maintenance | abandoned — 1,235 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 286,303/month — #8,045 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django_filter_stubs-0.1.3-py3-none-any.whl
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
types-django-filterProvides type hints for django-filter, enabling…
permissive · top 15,000 on PyPI
sqlalchemy2-stubsProvides PEP-484 typing stubs for SQLAlchemy…
permissive · top 5,000 on PyPI
djangorestframework-stubsProvides PEP-484 type stubs for Django REST…
permissive · top 5,000 on PyPI
homeassistant-stubsProvides PEP 484 type stubs for Home Assistant…
permissive · top 15,000 on PyPI
types-SQLAlchemyProvides PEP 561 type stubs for SQLAlchemy,…
permissive · top 15,000 on PyPI
grpc-stubsProvides type stubs for gRPC Python, enabling…
permissive · top 5,000 on PyPI
lxml-stubsProvides type annotations for the lxml package…
permissive · top 5,000 on PyPI
django-stubsProvides type stubs and a mypy plugin to enable…
permissive · top 5,000 on PyPI
pika-stubsProvides type stubs for the pika RabbitMQ…
permissive · top 15,000 on PyPI
sqlalchemy-stubsProvides type stubs and a mypy plugin to enable…
permissive · top 5,000 on PyPI