Skip to main content

No project description provided

Project description

Overview

Adds async support to Django REST Framework.

Currently not production ready. Use at your own risk :)

Requirements

  • Python 3.10+
  • Django 4.1+

Installation

pip install django-rest-framework-async

Example

from drfa.decorators import api_view
from drfa.views import APIView

class AsyncView(APIView):
    async def get(self, request):
        return Response({"message": "This is an async class based view."})


@api_view(['GET'])
async def async_view(request):
    return Response({"message": "This is an async function based view."})

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_rest_framework_async-0.1.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page