django-aiodrf documentation

django-aiodrfdjango-aiodrf

aiodrf adds awaitable views, serializer operations and policy hooks to Django REST framework. Existing DRF components keep working. Synchronous code that aiodrf cannot prove free of I/O runs in a worker thread, so an async view never blocks the event loop on it; an async view does not, however, make a synchronous dependency such as the database driver asynchronous.

Getting started

  1. Install the package and write a first view: see the README.
  2. Run the basics or CRUD and filtering example.
  3. When adapting an existing project, follow the DRF integration guide.
  4. Test your API with the testing guide.

Reference

Building applications

Integrations

Performance

Deployment

Migration

Design

Project