Skip to main content

Pydantic data validation support for Django API View

Project description


Python 3.6+

Djanticapi stands on the shoulders of giants:


$ pip install djanticapi

---> 100%


Create it

  • Create a file with:
from django.http import HttpRequest
from djanticapi import BaseFormModel, BaseAPIView

class TestForm(BaseFormModel):
    name: str

class TestView(BaseAPIView):
    def post(self, request: HttpRequest):
        form_data = TestForm.from_request(request=request)
        return form_data

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

djanticapi-0.0.6.tar.gz (10.4 kB view hashes)

Uploaded source

Built Distribution

djanticapi-0.0.6-py3-none-any.whl (14.3 kB view hashes)

Uploaded py3

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