djangorestframework-yaml
YAML support for Django REST Framework
Decision gist · record as of 2026-08-14
No, unless you are locked to an older Django and REST Framework stack. The package is abandoned (last release 2020-04-27, no commits since), making it a liability for any modern Django project. If you need YAML support in a current REST Framework setup, investigate maintained alternatives or implement a custom parser/renderer instead of adopting unmaintained code.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django and Django REST Framework to be installed separately; package is abandoned and may not work with current versions of either framework.
- Low install friction with a single runtime dependency (PyYAML).
- However, the package is abandoned—last release was 2020-04-27, over 2300 days ago, with no recent commits.
License · maintenance · safety
BSD (permissive) — BSD license is permissive, imposing no restrictions on commercial or private use. You may use, modify, and distribute this package freely as long as you include the original license notice.
last release 2020-04-27 (2300 days) · last repo commit 2023-04-26 · 31 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 77,801 downloads/mo, #14,493 on PyPI
Alternatives
Verify before relying
pip install djangorestframework-yaml
# In Django settings.py:
REST_FRAMEWORK = {
'DEFAULT_PARSER_CLASSES': (
'rest_framework_yaml.parsers.YAMLParser',
),
'DEFAULT_RENDERER_CLASSES': (
'rest_framework_yaml.renderers.YAMLRenderer',
),
}- Compatibility with Django versions released after 2020-04-27 and current REST Framework releases.
- Whether PyYAML security updates are sufficient for production use given the package's abandonment.
- Active community forks or maintained alternatives for YAML support in modern Django REST Framework.
What it is and what it does
djangorestframework-yaml is a third-party extension that integrates YAML format support into Django REST Framework. It provides a YAMLParser to deserialize incoming YAML request bodies and a YAMLRenderer to serialize API responses as YAML, built on top of PyYAML. This allows developers to configure their REST APIs to accept and return YAML instead of (or alongside) JSON or other formats.
The package was extracted from Django REST Framework's official codebase as a standalone module. It integrates at the framework level through Django's settings configuration, letting you set YAML as the default parser and renderer globally or per-view. However, the package has been abandoned since April 2020 with no active maintenance, meaning it may not be compatible with recent versions of Django or REST Framework.
Use it for
- Serve legacy clients or systems that expect YAML-formatted API responses instead of JSON.
- Build internal tools or microservices where YAML is preferred for human readability in request/response bodies.
- Support bidirectional YAML serialization in REST APIs for teams already using YAML in their infrastructure.
- Migrate from older Django REST Framework versions that had built-in YAML support before it was extracted.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you are locked to an older Django and REST Framework stack.
The package is abandoned (last release 2020-04-27, no commits since), making it a liability for any modern Django project. If you need YAML support in a current REST Framework setup, investigate maintained alternatives or implement a custom parser/renderer instead of adopting unmaintained code.
Install
djangorestframework-yaml on PyPI
Before you install
Low install friction with a single runtime dependency (PyYAML). However, the package is abandoned—last release was 2020-04-27, over 2300 days ago, with no recent commits. Use only if your Django and REST Framework versions are locked to older releases or if you can maintain a fork.
Requires Django and Django REST Framework to be installed separately; package is abandoned and may not work with current versions of either framework.
License in practice
BSD license is permissive, imposing no restrictions on commercial or private use. You may use, modify, and distribute this package freely as long as you include the original license notice.
Quickstart
pip install djangorestframework-yaml
# In Django settings.py:
REST_FRAMEWORK = {
'DEFAULT_PARSER_CLASSES': (
'rest_framework_yaml.parsers.YAMLParser',
),
'DEFAULT_RENDERER_CLASSES': (
'rest_framework_yaml.renderers.YAMLRenderer',
),
}
Verify before relying
- Compatibility with Django versions released after 2020-04-27 and current REST Framework releases.
- Whether PyYAML security updates are sufficient for production use given the package's abandonment.
- Active community forks or maintained alternatives for YAML support in modern Django REST Framework.
Package facts
| License | BSD permissive |
| Python support | Supports the current Python release >=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagePyYAML |
| Maintenance | Abandoned 2,300 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 77,801 / month, #14,493 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Internet :: WWW/HTTP |
Evidence: djangorestframework_yaml-2.0.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django rest framework yaml”
- djangorestframework-yamlAdds YAML parsing and rendering support to Django REST Framework,…
- django-tastypiedjango-tastypie provides a REST API framework for Django that…
- drf-yasgGenerates Swagger/OpenAPI 2.0 specifications automatically from…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also adrf · djangorestframework-xml · djangorestframework-csv · djangorestframework · PyYAML · drf-extra-fields · yamlable · drf-orjson-renderer · drf-yasg · djangorestframework-role-filters