Skip to main content

Django API router

Project description

Django APIRouter (in progress)

Django API router component.

Inspired by FastAPI and Django Rest Framework.

tests codecov Documentation Status Code style: black version license


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


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.1.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

django_apirouter-0.2.1-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page