$npx skillfedfor your agent

djangorestframework-types

Type stubs for Django Rest Framework

With conditionsPyPI Quality AssuranceReleased Oct 2024379.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — djangorestframework_types-0.9.0-py3-none-any.whl
v0.9.0 · released 2024-10-10 · Python <4.0,>=3.8 · 1 runtime deps: typing_extensions

Yes, if you use Django Rest Framework and want static type checking. The low install friction, permissive license, and multi-checker support make it practical. However, the aging maintenance status (673 days since last release) means you should verify that type coverage matches your Django Rest Framework version before committing to it in a new project.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or later; intended for use with a static type checker like mypy or pyright
  • Low install friction with a single lightweight dependency (typing_extensions).
  • Maintenance status is aging—last release was 673 days ago, though the repository remains active.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

last release 2024-10-10 (673 days) · last repo commit 2025-12-12 · 55 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 379,713 downloads/mo, #7,109 on PyPI

Verify before relying

pip install djangorestframework-types

import typing_extensions
# Type stubs are now available for Django Rest Framework type checking
  • Whether type coverage is comprehensive across all Django Rest Framework versions and APIs
  • Compatibility with the latest Django Rest Framework releases and whether stubs are kept in sync
  • Whether pyright and other non-mypy checkers work as well as claimed compared to the original version
Same gist for agents: .md · .json

What it is and what it does

This package provides type stubs for Django Rest Framework, the popular REST API toolkit for Django. Type stubs are interface definitions that allow static type checkers like mypy and pyright to understand the types of Django Rest Framework's classes and functions, enabling developers to catch type errors during development rather than at runtime.

The package was forked from djangorestframework-stubs specifically to remove the mypy plugin dependency, which could crash when Django configuration issues arose. By providing pure stubs instead, it works with multiple type checkers—not just mypy—and avoids the fragility of plugin-based type checking. It has a single runtime dependency on typing_extensions and supports Python 3.8 through 3.12.

Use it for

  • Add type checking to Django Rest Framework projects using mypy or pyright without installing a mypy plugin
  • Catch serializer, viewset, and API endpoint type errors during development before deployment
  • Enable IDE autocomplete and type hints for Django Rest Framework classes and methods
  • Migrate from an older type-stub package to a plugin-free alternative that works with multiple type checkers
  • Ensure type safety in REST API views and serializers across a team's codebase

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you use Django Rest Framework and want static type checking.

The low install friction, permissive license, and multi-checker support make it practical. However, the aging maintenance status (673 days since last release) means you should verify that type coverage matches your Django Rest Framework version before committing to it in a new project.

Install

djangorestframework-types on PyPI

Before you install

Low install friction with a single lightweight dependency (typing_extensions). Maintenance status is aging—last release was 673 days ago, though the repository remains active.

Requires Python 3.8 or later; intended for use with a static type checker like mypy or pyright

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install djangorestframework-types

import typing_extensions
# Type stubs are now available for Django Rest Framework type checking

Verify before relying

  • Whether type coverage is comprehensive across all Django Rest Framework versions and APIs
  • Compatibility with the latest Django Rest Framework releases and whether stubs are kept in sync
  • Whether pyright and other non-mypy checkers work as well as claimed compared to the original version

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
typing_extensions
MaintenanceAging 673 days since the last release
Last repo commit
First released
Downloads379,713 / month, #7,109 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: djangorestframework_types-0.9.0-py3-none-any.whl

Tags

Capabilities
django rest framework type stubsdjangorestframework typingdrf type hintsstatic type checking django restmypy django rest frameworkpyright django rest frameworktype annotations drf
Topics
type-stubsstatic-analysisdjango-ecosystem
PyPI keywords
djangodjangorestframeworktypesmypystubs

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 type stubs”

Give your agent the search over MCP, or paste the wish link into any chat.

More Quality Assurance packages

coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
ruff Worth it
PyPI · Python Modules · released Aug 2026

Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.

MITcompiled wheel · 3.7+
316.1Mdownloads / mo
pexpect With conditions
PyPI · Software Development · released Nov 2023

Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.

ISCpure Pythonaging
200.8Mdownloads / mo
black Worth it
PyPI · Python Modules · released May 2026

Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.

MITpure Python · 3.10+
179.9Mdownloads / mo
pytest-xdist Worth it
PyPI · Utilities · released Jul 2025

pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.

Install it if your test suite takes long enough that parallelization would save meaningful time.

MITpure Python · 3.9+
177.1Mdownloads / mo
cfn-lint Worth it
PyPI · Quality Assurance · released Aug 2026

Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.

Install it if you work with CloudFormation templates.

MIT-0pure Python
114.9Mdownloads / mo

See also django-types · djangorestframework-stubs · celery-types · django-stubs · django-stubs-ext · pandas-stubs · types-mypy-extensions · types-boltons · types-cffi · msgpack-types