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.1.0.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for django_apirouter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2774202f9d824bad1ec55acf891c17a2b6d39cb29b549e1c46bc06365bbb04d7 |
|
MD5 | 7222bbad025323da5b5e07864bdf5821 |
|
BLAKE2b-256 | f834a9c24cbb07d622402c78de90481aeb43c39284b8a515483c8f14ba6ee6d1 |