{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http"},{"label":"Documentation","url":"https://skillfed.io/packages/category/documentation"},{"label":"Code Generators","url":"https://skillfed.io/packages/category/software-development-code-generators"}],"enrichment":{"capability":"Generates OpenAPI 3.0.3, 3.1, and 3.2 schemas automatically from Django REST framework APIs, with extensive customization options for real-world use cases.","skillfed_tags":["api-documentation","code-generation","django-extension"],"use_cases":["Generate and serve interactive API documentation (Swagger UI or Redoc) directly from your Django REST framework code.","Export OpenAPI schemas for use with code generators (client SDKs, mock servers) or third-party API tools.","Document complex APIs with nested serializers, polymorphic responses, and custom authentication without manual schema writing.","Validate API schemas during CI/CD pipelines using the --validate CLI flag.","Customize schema output per-endpoint using @extend_schema decorators to override auto-detected types or add examples."],"what_it_does":"drf-spectacular is an OpenAPI schema generator for Django REST framework that extracts API structure directly from your code and produces valid OpenAPI 3.0.3, 3.1, or 3.2 specifications. It replaces the basic schema generation built into DRF with a more capable alternative that handles real-world API patterns: nested and recursive serializers, polymorphic responses, custom authentication schemes, and vendor extensions. The package works out of the box with sensible defaults but offers deep customization through the @extend_schema decorator and settings, allowing you to override serializers, add examples, control operation IDs, and adjust how components are split.\n\nThe tool integrates with popular DRF extensions (SimpleJWT, django-filter, Pydantic, django-polymorphic) and provides built-in views to serve the schema via Swagger UI or Redoc. You can generate schemas via CLI (./manage.py spectacular) or serve them live from your API. It depends on Django, djangorestframework, uritemplate, PyYAML, jsonschema, inflection, and typing-extensions\u2014all lightweight, widely-used libraries.","worth_installing":"Yes. drf-spectacular is actively maintained, has no known vulnerabilities, installs with low friction, and is licensed permissively. It solves a real problem\u2014generating accurate OpenAPI documentation from Django REST framework code\u2014and is widely used (top 5000 PyPI packages). Install it if you need OpenAPI schemas for a DRF API and want automation over manual maintenance."},"id":"drf-spectacular","links":{"html":"https://skillfed.io/packages/drf-spectacular","md":"https://skillfed.io/packages/drf-spectacular.md","pypi":"https://pypi.org/project/drf-spectacular/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-06","license_spdx":"BSD-3-Clause","license_treatment":"permissive","name":"drf-spectacular","python_support":"supports_current","summary":"Sane and flexible OpenAPI 3 schema generation for Django REST framework"},"popularity":{"monthly_downloads":13905521,"position":1258,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.30.0"}
