{"repo":"yezz123/pyngo","free":true,"listed":false,"github":"https://github.com/yezz123/pyngo","clone":"git clone https://github.com/yezz123/pyngo.git","description":"Pydantic model support for Django & Django-Rest-Framework ✨","language":"Python","stars":88,"topics":["pydantic","django","django-rest-framework","python","typed","openapi","fastapi","python3"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Pyngo :snake: Utils to help integrate pydantic into Django projects --- Installation You can add pyngo in a few easy steps. First of all, install the dependency: --- Features 🎉 - Using Pydantic to Build your Models in Django Project. - Using OpenAPI utilities to build params from a basic model. - using QueryDictModel to build Pydantic models from a QueryDict object. - propagate any errors from Pydantic in Django Rest Framework. - Tested in Python 3.10 and up. Examples 📚 OpenAPI - pyngo.openapi params() can build params from a basic model - pyngo.ParameterDict.required is set according to the type of the variable Other fields can be set through the field’s info: Django - pyngo.querydict to dict() and pyngo.QueryDictModel are conveniences for building a pydantic.BaseModel from a django.QueryDict . Note: Don't forget to Setup the Django Project. Django Rest Framework - pyngo.drf error details() will propagate any errors from Pydantic. Errors descend into nested fields: Development 🚧 Setup environment 📦 Install uv from https://docs.astral.sh/uv/ and just from your OS package manager or https://just.systems. And then install the development dependencies: Run tests 🌝 You can run all the tests with: Note: You can also generate a coverage report with: Format the code 🍂 Execute the following command to apply pre-commit formatting: Execute the following command to apply mypy type checking: License 🍻 This project is licensed under the terms of the MIT license.","default_branch":null,"files":null,"tree":[],"storefront":"/r/yezz123","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yezz123/pyngo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}