Skip to main content

A Django JSONField extension using Pydantic for data validation.

Project description

Django Pydantic JSONField

Description

Django Pydantic JSONField is a Django app that extends Django's native JSONField by integrating Pydantic models for data validation. This package allows developers to leverage Pydantic's powerful data validation and schema enforcement capabilities within their Django models, ensuring that data stored in JSONFields is validated against predefined Pydantic models.

Features

  • Easy integration with existing Django models.
  • Support for complex data schemas using Pydantic models.
  • Customizable validation messages.
  • Improved data integrity and error handling for JSON fields.

Installation

To install Django Pydantic JSONField, run the following command in your virtual environment:

pip install django-pydantic-jsonfield

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-pydantic-jsonfield-0.1.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

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