# encode/django-rest-framework

> Django REST framework is a toolkit for building Web APIs in Django projects. It adds serialization, authentication and permission handling to Django, and it provides a browsable API that developers can open in a web browser. The project is written in Python and is installed from PyPI as djangorestframework.

Source: https://github.com/encode/django-rest-framework
Indexed: commit d24442d on 2026-07-22 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Library
- Language: Python
- Stars: 30,229 at index time
- Code health: 6.9/10, Fair
- Last commit: 2026-06-25
- Contributors: 1,443

## How it works

The rest_framework directory is the package that is added to INSTALLED_APPS and contains the framework code. Serialization handles both ORM and non-ORM data sources, and authentication policies are provided, including optional packages for OAuth1a and OAuth2. Permissions and other behavior are set through the REST_FRAMEWORK settings dictionary, such as DEFAULT_PERMISSION_CLASSES. The project depends on Django, and pyproject.toml is the manifest that declares the package. The docs directory holds the documentation source, with docs/index.md as its entry point, and the tests directory holds the test suite. The .github/workflows/main.yml file defines the main GitHub workflow.

- .github/workflows/main.yml: entry point
- docs/index.md: entry point
- .github/FUNDING.yml: central file
- .github/ISSUE_TEMPLATE/config.yml: central file
- .github/dependabot.yml: central file
Modules: tests, rest_framework, docs, root, .github, licenses. 250 files, 46,099 lines, 3,863 symbols.

## Code health

- Score: 6.9/10 (Fair)
- Rank: #125 of 4,000+ indexed repos
- Hotspots: none
- Lowest file: rest_framework/fields.py
- Dead code: 5 findings

## Maintenance

- Last commit 2026-06-25, first commit 2010-12-29, 9,012 commits
- 1,443 contributors, bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/encode/django-rest-framework/security

## More

- Page: https://repowise.dev/repo/encode/django-rest-framework
- Ask this codebase: https://repowise.dev/repo/encode/django-rest-framework/chat
- Docs: https://repowise.dev/repo/encode/django-rest-framework/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/encode/django-rest-framework
