Metadata-Version: 2.1
Name: django-rest-framework-async
Version: 0.1.0
Summary: 
Author: frownyface
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: django (>=4.1,<5.0)
Requires-Dist: djangorestframework (>=3.14.0,<4.0.0)
Description-Content-Type: text/markdown

# 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."})
```
