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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for django-apirouter-0.2.1.tar.gz
Algorithm Hash digest
SHA256 be630f19a35faf7f7f6f52a0af24de48dbd3fe88567fda1aaa9138afed6724c9
MD5 925db13f80f688b3f37b501bb8148f6e
BLAKE2b-256 adcf5973628cee56a7d7a5a2aba72a675a0165caca86893468c2d4f0ce312752

See more details on using hashes here.

File details

Details for the file django_apirouter-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_apirouter-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81b40bbb1c036756e87581b8d1d09b6aa98088b48e808d189e9410dd78ee58b3
MD5 021240ed2803752a5951d72ec0d0b393
BLAKE2b-256 6278cca5ac008dd384b6be71fbf553e3c68c4ecd8cdc3ce1b7107dad01893c4e

See more details on using hashes here.

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