Skip to main content

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()

Metadata

Release files for django-lazy-json 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-lazy-json 0.1.1
File Size Uploaded
django_lazy_json-0.1.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-lazy-json 0.1.1
File Interpreter ABI Platform
django_lazy_json-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / django_lazy_json-0.1.1.tar.gz

Download URL django_lazy_json-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
77ced6cc95a0e846f4a56eefc3240268ed04e30981f350c4fd8556226b007094
BLAKE2b-256 checksum
How to use checksums
afedbab8a017a20933fefd49898f5abce6dc7c81f1b24cbfded1719143f4fc93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.6 Linux/5.15.0-94-generic

Release files / django_lazy_json-0.1.1-py3-none-any.whl

Download URL django_lazy_json-0.1.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f65736f4b46ec5e6f3c478d86951e9bae4cc5dc3b7e4d4608127caf501f0db23
BLAKE2b-256 checksum
How to use checksums
fd327d8953bcfefaa8cae21256c05dac7052fa659dc4ddbc337a028750120a8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.6 Linux/5.15.0-94-generic

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page