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.1.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for django_apirouter-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28c8a758693e983865d14bc88b204e011b2d7ada6c97ef2d023e30c48231b4c8 |
|
MD5 | 2961126c2f55e25a97a8ab6cc374d99a |
|
BLAKE2b-256 | b80ad33d4621544b74c0bc8193dbc2537cc22446c71149779898501d6a536938 |