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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_rest_framework_async-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0f2eec140106fb4b86681dc72b13eb27ef50b6988224062dba87c39597a0b20 |
|
MD5 | b9ea9aa03901957e654c7deb36057d46 |
|
BLAKE2b-256 | e9a5e9f1ea06c527c4c393ac2aa0583202ae2535ba53f4cf9c0d52c1fe8b41df |
Close
Hashes for django_rest_framework_async-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6a07a689b82887af5a603a3d50c3c44ec0659c9d2a9fecbcc9d76215f78bd5d |
|
MD5 | dc6676e613af99caabb44c41650e1f0b |
|
BLAKE2b-256 | 9bf22c189dd2ab8f103d9208603d5181a819ca97f38976fb0dfb59a20fb5da62 |