djanticapi 0.0.6

Creator: danarutscher

Last updated:

Add to Cart

Description:

djanticapi 0.0.6

Requirements
Python 3.6+
Djanticapi stands on the shoulders of giants:

Django for the web parts.
Pydantic for the data parts.

Installation

$ pip install djanticapi

---> 100%


Example
Create it

Create a file api.py 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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.