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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-pydantic-jsonfield-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83ea100b5115ad4b537ce8b51e5b1479454e97f61423dfd06d19220e52c8f3a2 |
|
MD5 | d0c99bb96d3aab27028790c4e8a6822b |
|
BLAKE2b-256 | 5d649e1c6b979c8a7e02f5fa4f9dbc585c8c3a62e4f709e836522768452952ca |
Close
Hashes for django_pydantic_jsonfield-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d3932ebceca6adfa952325d7e9ce2d48a8c8196968ec12e2af1b972db857fb8 |
|
MD5 | 2476ab270171fa01214fdd41f031cd82 |
|
BLAKE2b-256 | 9d59a14b0ba5ae0b107feb124e28ff705bb7962b638a7ce20f48e72626b94c0e |