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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_rest_framework_async-0.1.0.tar.gz.
File metadata
- Download URL: django_rest_framework_async-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0f2eec140106fb4b86681dc72b13eb27ef50b6988224062dba87c39597a0b20
|
|
| MD5 |
b9ea9aa03901957e654c7deb36057d46
|
|
| BLAKE2b-256 |
e9a5e9f1ea06c527c4c393ac2aa0583202ae2535ba53f4cf9c0d52c1fe8b41df
|
File details
Details for the file django_rest_framework_async-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_rest_framework_async-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6a07a689b82887af5a603a3d50c3c44ec0659c9d2a9fecbcc9d76215f78bd5d
|
|
| MD5 |
dc6676e613af99caabb44c41650e1f0b
|
|
| BLAKE2b-256 |
9bf22c189dd2ab8f103d9208603d5181a819ca97f38976fb0dfb59a20fb5da62
|