qmetrics.net

Django REST framework

Toolkit for building web APIs on Django

Django REST framework screenshot

Django REST framework adds serializers, views, routers, and authentication helpers so Django projects can expose browsable HTTP APIs. It supports ORM-backed and non-ORM data sources with optional OAuth packages.

Overview

Django REST framework is a Python toolkit that sits on top of Django to define REST-style HTTP APIs. Developers describe resources with serializer classes, attach viewsets or function views, and wire routes through routers that generate URL configuration from registered endpoints.

A distinctive feature is the browsable API HTML interface, which lets developers explore, create, and edit resources from a browser when the login views are enabled. Global behavior is controlled through a RESTFRAMEWORK settings dictionary, including default permission classes such as Django model permissions or anonymous read-only access.

Authentication support includes optional integrations for OAuth 1a and OAuth 2 mentioned in the overview, and serialization is designed to work with Django models as well as arbitrary data. The project documents quickstart flows using manage.py runserver and shows curl examples for listing and creating users.

Optional packages extend schema generation, markdown rendering for the browsable API, filtering, and object-level permissions. Installation is pip-based, with rest_framework added to INSTALLED_APPS on an existing Django project.

Key features

  • Serializers for API request and response shapes
  • ViewSets and routers for automatic URL routing
  • Browsable web API for interactive testing
  • Configurable permission and authentication policies
  • ORM and non-ORM serialization support
  • Optional OAuth, filtering, and schema packages
  • Hyperlinked and model-backed API patterns

Use cases

  • Exposing Django models as JSON HTTP APIs
  • Building internal APIs with browser-based exploration
  • Prototyping CRUD endpoints with viewsets and routers
  • Integrating third-party clients via standard HTTP methods

Tags

Similar software

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

OkHttp

HTTP client for JVM, Android, and GraalVM

OkHttp is an HTTP client library tuned for efficient networking on Android, Java, and GraalVM native images. It offers synchronous and asynchronous call APIs with a fluent request builder.

★ 47.1k⟳ yesterdayApache-2.0
Frameworks & PlatformsDesktop/CLI app

gRPC

Cross-language remote procedure call framework

gRPC is an RPC framework that lets client and server programs communicate transparently and supports building connected, multi-language systems.

★ 45.5k⟳ todayApache-2.0

tRPC

End-to-end typesafe TypeScript APIs without code generation

tRPC helps teams define server procedures and call them from clients with full TypeScript types for inputs, outputs, and errors—no schemas or codegen step.

★ 40.9k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

go-zero

Cloud-native Go microservices and RPC framework

go-zero is a Go web and RPC framework with code generation, built-in resilience middleware, and tooling aimed at stable high-traffic services.

★ 33.5k⟳ 9 days agoMIT