Modern REST framework for Django with types and async support!
This guide will walk you through all the details of how to install, use,
and extend django-modern-rest framework.
Testimonials
The one thing I really love about django-modern-rest is its pluggableserializers and validators. Frameworks that are tightly coupledwith pydantic can be really painful to work with.—Kirill Podoprigora, CPython core developer
Usingdjango-modern-resthas been a game-changerfor my productivity. The strict type safety and schema validationfor both requests and responses mean I spend less time debuggingand more time building.—Josiah Kaviani, Django core developer
Main features include:
Semantic REST APIs with 100% typed API and strict schema validation for both requests and responses.
You would never miss an important status code in the docs anymore!
Built with performance in mind. Import time optimizations,
only one validation per request, best json parsing tools in class.
And msgspec support allows users to have
x5-15 times faster
APIs than the alternatives.
Fully utilizes best of the both worlds in django.
Create your APIs as sync or async, your choice.
Both wsgi and asgi are supported.
Of course, OpenAPI schema generation and modification are available out of the box.
But, there’s more: we also provide validation and testing tools for your schema! Powered by schemathesis
We don’t reinvent the wheel, this is just good old Django.
We only add fast json parsing and schema for requests and responses.
And that’s it. You can still use all packages and features from regular Django apps. No new concepts to learn, no new APIs to be compatible with.
Just drop this package into any existing Django application!
Every part of the framework can be customized and extended.
Since, there’s no magic happening, it would be really easy to do. Our docs and tests provide multiple examples of that.
Public API stability is guaranteed from 1.0.0 release.
Contributors¶
Here are our amazing people who made this project possible.