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
Built Distribution
File details
Details for the file django-apirouter-0.2.1.tar.gz
.
File metadata
- Download URL: django-apirouter-0.2.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.2 Darwin/17.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be630f19a35faf7f7f6f52a0af24de48dbd3fe88567fda1aaa9138afed6724c9 |
|
MD5 | 925db13f80f688b3f37b501bb8148f6e |
|
BLAKE2b-256 | adcf5973628cee56a7d7a5a2aba72a675a0165caca86893468c2d4f0ce312752 |
File details
Details for the file django_apirouter-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: django_apirouter-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.2 Darwin/17.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81b40bbb1c036756e87581b8d1d09b6aa98088b48e808d189e9410dd78ee58b3 |
|
MD5 | 021240ed2803752a5951d72ec0d0b393 |
|
BLAKE2b-256 | 6278cca5ac008dd384b6be71fbf553e3c68c4ecd8cdc3ce1b7107dad01893c4e |