Comparison
django-rest-swagger vs drf-spectacular vs drf-yasg
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Swagger UI for Django REST Framework 3.5+
Archived. The repository is read-only: no more fixes or releases will come.
$
pip install django-rest-swaggerSane and flexible OpenAPI 3 schema generation for Django REST framework
Maintained. Last release 5 months ago, commits in 4 of the last 26 weeks. Weaker on commit activity and issue handling.
$
pip install drf-spectacularAutomated generation of real Swagger/OpenAPI 2.0 schemas from Django Rest Framework code.
Actively maintained. Last release 8 weeks ago, commits in 7 of the last 26 weeks. A safe choice.
$
pip install drf-yasgIn short
- django-rest-swagger is archived: avoid it for new projects.
- drf-spectacular is the most used: 17.1M downloads a month, 6.7× more than drf-yasg.
- drf-yasg is better maintained: Pythie’s Index 80 against 45.
- drf-yasg is growing fastest: downloads +14% over the last month.
Side by side
| Metric | django-rest-swagger | drf-spectacular | drf-yasg |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 3 | 45 |