Introducing Django Ninja — Fast Django REST Framework
summary
Claims a Django-focused API layer uses Python type hints + Pydantic to auto-generate OpenAPI, validate input/output, and keep deep Django ORM integration while supporting async views via adapters. Prototype is 500 lines proof of concept, measures show parsing/validation is ~5% faster than Flask with Marshmallow and almost 2x faster than Django REST Framework. Demo builds models, Pydantic-like request/response schemas, creates and lists tasks, shows nested owner objects, and uses sync_to_async plus select_related to run DB work under ASGI (Uvicorn/Daphne).
AI-written summary · about
