🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

django-lazy-json

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-lazy-json

Wrapper for Django's JSONField that allows for lazy loading of the JSON object.

0.1.1
100

Supply Chain Security

100

Vulnerability

99

Quality

100

Maintenance

100

License

Maintainers
1

Django Lazy JSON Field

Wrapper for Django's JSONField that allows for lazy loading of the JSON object.

Why?

Django's JSONField is great, but it's not lazy. This means that if you have a large JSON object, it will be loaded into memory every time you access the field. This can be a problem if you have a large number of records with large JSON objects.

This package provides a LazyJSONField that only loads the JSON object when it's accessed.

Installation

pip install django-lazy-json

Usage

from django.db import models
from lazy_json_field.fields import LazyJSONField

class MyModel(models.Model):
    data = LazyJSONField()

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts