Overview of django-modern-rest
masterdjango-modern-rest is a modern REST framework for Django that provides strict type safety, schema validation, and support for both synchronous and asynchronous APIs. It is designed to be a high-performance alternative that integrates seamlessly with existing Django applications without reinventing core Django concepts.
Key Features
- Semantic REST APIs: 100% typed APIs with strict schema validation for both requests and responses.
- High Performance: Optimized import times and single-pass validation. Supports
msgspecfor up to 15x faster performance compared to alternatives. - Sync and Async Support: Full support for both
wsgiandasgienvironments, allowing you to write APIs as sync or async. - First-class OpenAPI: Built-in OpenAPI schema generation, modification, and validation/testing tools (powered by
schemathesis). - Django Compatibility: Works with existing Django packages and features; it simply adds fast JSON parsing and schema enforcement.
- Extensibility: Every part of the framework is customizable and designed to be extended via a stable public API.