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, Request
router = APIRouter()
@router.route("/")
def index(request: Request):
return "Hello, Django APIRouter!"
urlpatterns = router.urls
TODO:
- Documentation
- Custom request / response classes
- 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
Close
Hashes for django-apirouter-0.1.0.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2769c60567d9d63cfb259ca9cd5932ac28d3a9f5dfc5d9fe61aa64f5228b76a1 |
|
MD5 | d1ca58936a50068f358690545143ccfe |
|
BLAKE2b-256 | a4fafbfb98dc854df3276d58bfa712154381efe7586f3fc15e775a35a7aee542 |
Close
Hashes for django_apirouter-0.1.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce5d0083afce2b1be2c773256fa2670583813c3c9f95994fc896519342f8dcd0 |
|
MD5 | 790fa5c4e2c04508c07b55e53c95e5a9 |
|
BLAKE2b-256 | e24bf1608113101066cdb60b44203e0f5054adb676f0b2741b2fc3a78b329ebe |