Skip to content
Back to search

django-modern-rest

MarketplaceWorks with Claude CodeGitHub

Modern REST framework for Django with types and async support

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/wemake-services/django-modern-rest with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/wemake-services/django-modern-rest'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/wemake-services--django-modern-rest/badge.svg)](/listings/wemake-services--django-modern-rest)

HTML

<a href="/listings/wemake-services--django-modern-rest"><img src="/api/listings/wemake-services--django-modern-rest/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Works for: - CPython 3.11+ or PyPy 3.11+ - Django 5.0, 5.1, 5.2, 6.0, 6.1

pip install django-modern-rest

There are several included extras: - `'django-modern-rest[msgspec]'` provides [`msgspec`](https://github.com/msgspec/msgspec) support and the fastest json parsing, recommended to be **always** included - `'django-modern-rest[pydantic]'` provides [`pydantic`](https://github.com/pydantic/pydantic) support - `'django-modern-rest[attrs]'` provides [`attrs`](https://github.com/python-attrs/attrs) support - `'django-modern-rest[jwt]'` provides [`pyjwt`](https://github.com/jpadilla/pyjwt) auth support - `'django-modern-rest[openapi]'` provides `OpenAPI` [schema validation](https://github.com/python-openapi/openapi-spec-validator), `yaml` OpenAPI view, and generates better OpenAPI examples with [`polyfactory`](https://github.com/litestar-org/polyfactory)

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 108 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. {
  2. "name": "django-modern-rest",
  3. "version": "1.1.0",
  4. "description": "Modern REST framework for Django with types and async support",
  5. "owner": {
  6. "name": "wemake-services",
  7. "url": "https://github.com/wemake-services"
  8. },
  9. "plugins": [
  10. {
  11. "name": "dmr",
  12. "source": "./dmr/.agents/skills/dmr",
  13. "description": "Write the best DMR code possible with all the recommended best practices, avoiding common mistakes",
  14. "category": "development",
  15. "keywords": [
  16. "django",
  17. "rest",
  18. "api",
  19. "django-modern-rest"
  20. ],
  21. "license": "MIT",
  22. "homepage": "https://github.com/wemake-services/django-modern-rest",
  23. "repository": "https://github.com/wemake-services/django-modern-rest"
  24. },
  25. {
  26. "name": "dmr-from-drf",
  27. "source": "./dmr/.agents/skills/dmr-from-drf",
  28. "description": "Migrate Django REST Framework APIs to django-modern-rest",
  29. "category": "development",
  30. "keywords": [
  31. "django",
  32. "rest",
  33. "api",
  34. "djangorestframework",
  35. "migration"
  36. ],
  37. "license": "MIT",
  38. "homepage": "https://github.com/wemake-services/django-modern-rest",
  39. "repository": "https://github.com/wemake-services/django-modern-rest"
  40. },
  41. {
  42. "name": "dmr-from-django-ninja",
  43. "source": "./dmr/.agents/skills/dmr-from-django-ninja",
  44. "description": "Migrate Django Ninja APIs to django-modern-rest",
  45. "category": "development",
  46. "keywords": [
  47. "django",
  48. "rest",
  49. "api",
  50. "django-ninja",
  51. "migration"
  52. ],
  53. "license": "MIT",
  54. "homepage": "https://github.com/wemake-services/django-modern-rest",
  55. "repository": "https://github.com/wemake-services/django-modern-rest"
  56. },
  57. {
  58. "name": "dmr-from-dj-rest-auth",
  59. "source": "./dmr/.agents/skills/dmr-from-dj-rest-auth",
  60. "description": "Migrate dj-rest-auth APIs to django-modern-rest and django-allauth headless",
  61. "category": "development",
  62. "keywords": [
  63. "django",
  64. "rest",
  65. "api",
  66. "dj-rest-auth",
  67. "django-allauth",
  68. "migration"
  69. ],
  70. "license": "MIT",
  71. "homepage": "https://github.com/wemake-services/django-modern-rest",
  72. "repository": "https://github.com/wemake-services/django-modern-rest"
  73. },
  74. {
  75. "name": "dmr-openapi-skeleton",
  76. "source": "./dmr/.agents/skills/dmr-openapi-skeleton",
  77. "description": "Scaffold OpenAPI-compliant Django REST APIs with dmr",
  78. "category": "development",
  79. "keywords": [
  80. "django",
  81. "rest",
  82. "api",
  83. "openapi",
  84. "scaffolding"
  85. ],
  86. "license": "MIT",
  87. "homepage": "https://github.com/wemake-services/django-modern-rest",
  88. "repository": "https://github.com/wemake-services/django-modern-rest"
  89. },
  90. {
  91. "name": "dmr-upgrade",
  92. "source": "./dmr/.agents/skills/dmr-upgrade",
  93. "description": "Upgrade a project to a newer django-modern-rest release using the official migration prompts",
  94. "category": "development",
  95. "keywords": [
  96. "django",
  97. "rest",
  98. "api",
  99. "django-modern-rest",
  100. "upgrade",
  101. "migration"
  102. ],
  103. "license": "MIT",
  104. "homepage": "https://github.com/wemake-services/django-modern-rest",
  105. "repository": "https://github.com/wemake-services/django-modern-rest"
  106. }
  107. ]
  108. }
README.md · README · 174 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. <p align="center">
  2. <a href="https://django-modern-rest.readthedocs.io/en/latest/">
  3. <picture>
  4. <source srcset="https://raw.githubusercontent.com/wemake-services/django-modern-rest/master/docs/_static/images/logo-dark.svg" media="(prefers-color-scheme: dark)">
  5. <img src="https://raw.githubusercontent.com/wemake-services/django-modern-rest/master/docs/_static/images/logo-light.svg#gh-light-mode-only" alt="Modern REST Logo - Light" width="100%" height="auto" />
  6. </picture>
  7. </a>
  8. </p>
  9. <p align="center">
  10. <em>Modern REST framework for Django with types and async support!</em>
  11. </p>
  12. <div align="center">
  13. [![wemake.services](https://img.shields.io/badge/%20-wemake.services-green.svg?label=%20&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC%2FxhBQAAAAFzUkdCAK7OHOkAAAAbUExURQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP%2F%2F%2F5TvxDIAAAAIdFJOUwAjRA8xXANAL%2Bv0SAAAADNJREFUGNNjYCAIOJjRBdBFWMkVQeGzcHAwksJnAPPZGOGAASzPzAEHEGVsLExQwE7YswCb7AFZSF3bbAAAAABJRU5ErkJggg%3D%3D)](https://wemake-services.github.io)
  14. [![Modern REST](https://img.shields.io/badge/Modern%20REST-0C4B33?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTA4MCIgaGVpZ2h0PSIxMDgwIiB2aWV3Qm94PSIwIDAgMTA4MCAxMDgwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMiA3MDQuMDJMMTQ1LjQ1OSA0NjYuMTlMMjc3Ljg4MyA3MDQuMDJMMTQ1LjQ1OSA5NDEuODQ5TDIgNzA0LjAyWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTE0NS40NTkgOTQxLjg0OUwyIDcwNC4wMkgyNzcuODgzTDE0NS40NTkgOTQxLjg0OVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik02NzguOTQ4IDcwNC4wMzVMMzQxLjIzIDEzOEwyMjcuMDcxIDMyOC4yNjRMNDM2LjM2MiA3MDQuMDM1TDMwMy4xNzcgOTQxLjg2NEg1MzYuMjVMNjc4Ljk0OCA3MDQuMDM1WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTY3OC45MzcgNzA0LjAyNkg0MzYuMzVMMzAzLjE2NiA5NDEuODU2SDUzNi4yMzlMNjc4LjkzNyA3MDQuMDI2WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTEwNzguMTcgNzA0LjAzNUw3NDAuNDUxIDEzOEw2MjYuMjkzIDMyOC4yNjRMODM1LjU4MyA3MDQuMDM1TDcwMi4zOTkgOTQxLjg2NEg5MzUuNDcyTDEwNzguMTcgNzA0LjAzNVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xMDc4LjE3IDcwNC4wMzVIODM1LjU4M0w3MDIuMzk5IDk0MS44NjRIOTM1LjQ3MkwxMDc4LjE3IDcwNC4wMzVaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K&color=35544A)](https://github.com/wemake-services/django-modern-rest)
  15. [![Tests Result](https://github.com/wemake-services/django-modern-rest/actions/workflows/test.yml/badge.svg?event=push)](https://github.com/wemake-services/django-modern-rest/actions/workflows/test.yml)
  16. [![Codecov](https://codecov.io/gh/wemake-services/django-modern-rest/branch/master/graph/badge.svg)](https://codecov.io/gh/wemake-services/django-modern-rest)
  17. [![No AI slop](https://img.shields.io/badge/no-slop-purple.svg)](https://github.com/wemake-services/django-modern-rest/blob/master/.github/AI_POLICY.md)
  18. [![PyPI Downloads](https://static.pepy.tech/personalized-badge/django-modern-rest?period=total&units=INTERNATIONAL_SYSTEM&left_color=GREY&right_color=BRIGHTGREEN&left_text=downloads)](https://pepy.tech/projects/django-modern-rest)
  19. [![Supported Python Version](https://img.shields.io/pypi/pyversions/django-modern-rest.svg)](https://pypi.org/project/django-modern-rest/)
  20. [![Code Style](https://img.shields.io/badge/style-wemake-000000.svg)](https://github.com/wemake-services/wemake-python-styleguide)
  21. [![Ask DeepWiki](https://img.shields.io/badge/ask-deepwiki-blue)](https://deepwiki.com/wemake-services/django-modern-rest)
  22. [![Telegram group](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftg.chirizxc.workers.dev%2Fdjango_modern_rest&query=%24.members_summary_pretty&label=t.me%2Fdjango_modern_rest&color=272170&gradient=9D50BB%2C+6E48AA&valueColor=ffffff&labelTextColor=ff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SIwIiB4Mj0iMTEuOTkiIHkyPSIyMy44MSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiMyQUFCRUUiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMyMjlFRDkiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4K)](https://t.me/django_modern_rest)
  23. </div>
  24. ## Features
  25. - [x] [Blazingly fast](https://django-modern-rest.readthedocs.io/en/latest/pages/deep-dive/performance.html)
  26. - [x] Supports async Django without any `sync_to_async` / `async_to_sync` calls inside, tested to work with free-threading builds
  27. - [x] Supports `pydantic2`, `msgspec`, `attrs`, `dataclasses`, `TypedDict` as model schemas, but not bound to any of these libraries
  28. - [x] Fully typed and checked with `mypy`, `pyright`, `ty`, and `pyrefly` in strict modes
  29. - [x] Supports content negotiation, has default implementations for `json`, `msgpack`, SSE, Json Lines, and more
  30. - [x] Strict schema validation of both requests and responses, including errors
  31. - [x] Supports OpenAPI 3.1 / 3.2 semantic schema generation out of the box
  32. - [x] Supports all your existing `django` primitives and packages, no custom runtimes
  33. - [x] Great testing tools with [schemathesis](https://github.com/schemathesis/schemathesis), [polyfactory](https://github.com/litestar-org/polyfactory), [tracecov](https://django-modern-rest.readthedocs.io/en/latest/pages/testing/tracecov.html), bundled `pytest` plugin, and default Django's testing primitives
  34. - [x] 100% test coverage with 4000+ of carefully designed unit, integration, typing, and property-based tests on different databases and caches
  35. - [x] High [security standards](https://github.com/wemake-services/django-modern-rest/blob/master/.github/SECURITY.md)
  36. - [x] Built [by the community](https://github.com/wemake-services/django-modern-rest/graphs/contributors) for the community, not a single-person project
  37. - [x] Great [docs](https://django-modern-rest.readthedocs.io/en/latest/)
  38. - [x] No AI slop, but [built for the LLM era](https://django-modern-rest.readthedocs.io/en/latest/pages/getting-started.html#llms-support)
  39. - [x] No emojis 🌚️️
  40. ---------
  41. <p align="center">
  42. <a href="https://django-modern-rest.readthedocs.io/en/latest/pages/deep-dive/performance.html#sync"><picture>
  43. <source srcset="docs/_static/images/benchmarks/sync-dark.svg" media="(prefers-color-scheme: dark)">
  44. <img src="docs/_static/images/benchmarks/sync-light.svg#gh-light-mode-only" alt="Sync benchmark" width="49%" /></picture></a>
  45. <a href="https://django-modern-rest.readthedocs.io/en/latest/pages/deep-dive/performance.html#async"><picture>
  46. <source srcset="docs/_static/images/benchmarks/async-dark.svg" media="(prefers-color-scheme: dark)">
  47. <img src="docs/_static/images/benchmarks/async-light.svg#gh-light-mode-only" alt="Async benchmark" width="49%" /></picture></a>
  48. </p>
  49. ## Testimonials
  50. > The one thing I really love about `django-modern-rest` is its pluggable
  51. > serializers and validators. Frameworks that are tightly coupled
  52. > with `pydantic` can be really painful to work with.
  53. — **[Kirill Podoprigora](https://github.com/Eclips4)**, CPython core developer
  54. > Using `django-modern-rest` has been a game-changer for my productivity. The strict type safety and schema validation for both requests and responses mean I spend less time debugging and more time building.
  55. — **[Josiah Kaviani](https://github.com/proofit404)**, Django core developer
  56. > I rarely see frameworks that treat their OpenAPI schema as a first-class citizen. `django-modern-rest` not only generates a schema that accurately reflects your code, but also gives you the tools to verify it.
  57. — **[Dmitry Dygalo](https://github.com/Stranger6667)**, author of Schemathesis
  58. > `django-modern-rest` is a fantastic showcase of modern Python typing. When I need inspiration for typing in Python, I often refer to its codebase.
  59. — **[Sergey Miryanov](https://github.com/sergey-miryanov)**, CPython core developer
  60. ## Installation
  61. Works for:
  62. - CPython 3.11+ or PyPy 3.11+
  63. - Django 5.0, 5.1, 5.2, 6.0, 6.1
  64. ```bash
  65. pip install django-modern-rest
  66. ```
  67. There are several included extras:
  68. - `'django-modern-rest[msgspec]'` provides [`msgspec`](https://github.com/msgspec/msgspec) support
  69. and the fastest json parsing, recommended to be **always** included
  70. - `'django-modern-rest[pydantic]'` provides [`pydantic`](https://github.com/pydantic/pydantic) support
  71. - `'django-modern-rest[attrs]'` provides [`attrs`](https://github.com/python-attrs/attrs) support
  72. - `'django-modern-rest[jwt]'` provides [`pyjwt`](https://github.com/jpadilla/pyjwt) auth support
  73. - `'django-modern-rest[openapi]'` provides `OpenAPI` [schema validation](https://github.com/python-openapi/openapi-spec-validator),
  74. `yaml` OpenAPI view,
  75. and generates better OpenAPI examples with [`polyfactory`](https://github.com/litestar-org/polyfactory)
  76. ## Example
  77. The shortest example [(click here to copy the whole file)](https://github.com/wemake-services/django-modern-rest/blob/master/docs/examples/getting_started/pydantic_controller.py):
  78. ```python
  79. >>> import uuid
  80. >>> import pydantic
  81. >>> from dmr import Body, Controller, Headers
  82. >>> # Or use `dmr.plugins.msgspec` or write your own!
  83. >>> from dmr.plugins.pydantic import PydanticFastSerializer
  84. >>> class UserCreateModel(pydantic.BaseModel):
  85. ... email: str
  86. >>> class UserModel(UserCreateModel):
  87. ... uid: uuid.UUID
  88. ... consumer: str
  89. >>> class HeaderModel(pydantic.BaseModel):
  90. ... consumer: str = pydantic.Field(alias='X-API-Consumer')
  91. >>> class UserController(Controller[PydanticFastSerializer]):
  92. ... async def post( # <- can be sync as well!
  93. ... self,
  94. ... parsed_body: Body[UserCreateModel],
  95. ... parsed_headers: Headers[HeaderModel],
  96. ... ) -> UserModel:
  97. ... """All added props have the correct runtime and static types."""
  98. ... return UserModel(
  99. ... uid=uuid.uuid4(),
  100. ... email=parsed_body.email,
  101. ... consumer=parsed_headers.consumer,
  102. ... )
  103. ```
  104. And then route this controller in your `urls.py`:
  105. ```python
  106. >>> from django.urls import path
  107. >>> from dmr.routing import Router
  108. >>> router = Router(
  109. ... 'api/',
  110. ... [
  111. ... path('user/', UserController.as_view(), name='users'),
  112. ... ],
  113. ... )
  114. >>> urlpatterns = [
  115. ... router.to_urlpatterns(namespace='api'),
  116. ... ]
  117. ```
  118. Done! Now you have your shiny API with 100% type
  119. safe validation and interactive docs.
  120. Next steps:
  121. - [The full documentation](https://django-modern-rest.readthedocs.io/en/latest/) has everything you need to get started!
  122. - [wemake-django-template](https://github.com/wemake-services/wemake-django-template) can be used to jump-start your new project with `django-modern-rest`!
  123. - [awesome-django-modern-rest](https://github.com/kondratevdev/awesome-django-modern-rest) - a curated list of resources related to `django-modern-rest`!
  124. ## Contributors
  125. [![Contributors](https://contrib.rocks/image?repo=wemake-services/django-modern-rest)](https://github.com/wemake-services/django-modern-rest/graphs/contributors)
  126. ## License
  127. [MIT](https://github.com/wemake-services/django-modern-rest/blob/master/LICENSE)
  128. ## Credits
  129. This project was generated with [`wemake-python-package`](https://github.com/wemake-services/wemake-python-package). Current template version is: [e1fcf312d7f715323dcff0d376a40b7e3b47f9b7](https://github.com/wemake-services/wemake-python-package/tree/e1fcf312d7f715323dcff0d376a40b7e3b47f9b7). See what is [updated](https://github.com/wemake-services/wemake-python-package/compare/e1fcf312d7f715323dcff0d376a40b7e3b47f9b7...master) since then.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.