axnsan12/drf-yasg
Automated generation of real Swagger/OpenAPI 2.0 schemas from Django REST Framework code. observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 99
- Release rhythm 72
- 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-09-03. Adoption (stars, forks) is never an input.
- gap_med: 21.0
- age_days: 3199
- days_rel: 190
- days_push: 7
- n_releases_24m: 9
Adoption not part of the score
3545 stars · 442 forks observed · 2026-08-28
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-08-28 · 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 | 90 |
For agents
markdown · JSON · MCP: product_card(name="axnsan12/drf-yasg")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem