axnsan12/drf-yasg
Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code. observed · 2026-10-08
Health v2 · maintenance only
94/100
- Activity 98
- Release rhythm 86
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 40
- age_days: 3247
- days_rel: 16
- days_push: 16
- n_releases_24m: 8
Adoption not part of the score
3544 stars · 440 forks observed · 2026-10-08
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
drf-yasg is a Python library that automatically generates real Swagger/OpenAPI 2.0 specifications from Django REST Framework code. It bundles Swagger UI and ReDoc for interactive API documentation and supports nested serializers, codegen-compatible model definitions, and customization hooks.
Use cases
- generate OpenAPI 2.0 schema from Django REST Framework API
- serve interactive Swagger UI docs for a DRF API
- document DRF endpoints with nested serializer schemas
- produce codegen-compatible model definitions from DRF code
- validate generated Swagger schema automatically
- export API spec in JSON or YAML
When to choose
- your project is locked to OpenAPI/Swagger 2.0
- you need mature, battle-tested schema generation for an existing DRF codebase
- you want bundled Swagger UI and ReDoc out of the box
When to avoid
- you need OpenAPI 3.0 or 3.1 support - use drf-spectacular instead
- you are starting a new DRF project and can pick a more actively developed alternative
- your API does not use Django REST Framework
Facets
library · maturity maintenance
api-documentation documentation serialization web-development apis documentation backend python django django-rest-framework openapi swagger swagger-ui redoc schema-generation
2 sources
- readme: https://github.com/axnsan12/drf-yasg · fetched 2026-10-08 · 307e91855438
- registry_pypi: https://pypi.org/pypi/drf-yasg/json · fetched 2026-08-29 · a0f3c2b8f7dd
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| axnsan12/drf-yasg | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="axnsan12/drf-yasg")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem