Django API router
Project description
Django APIRouter (in progress)
Django API router component.
Inspired by FastAPI and Django Rest Framework.
Documentation: https://django-apirouter.readthedocs.io/
Installing
Install using pip
:
pip install django-apirouter
Quick Example
project/urls.py
from apirouter import APIRouter, Response, Request
router = APIRouter()
@router.route("/")
def index(request: Request):
return Response("Hello, Django APIRouter!")
urlpatterns = router.urls
TODO:
- Documentation
- OpenAPI support (Swagger, ReDoc)
- Pydantic support
- Async views support (with Django 3.1)
- etc.
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
django-apirouter-0.2.0.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for django_apirouter-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb942c2d055e6e5e4f38ba90a1b04dcff500ee8087f5efc42ee933121c24f951 |
|
MD5 | 4adbc4b3a78f737caf5b49e41c99e345 |
|
BLAKE2b-256 | 4e0cd16ae377187bd0beee16685d232d7c1a3d698e688698020d867cf0cc6c98 |