Skip to main content

No project description provided

Project description

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-field

Usage

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

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

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_lazy_json-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

django_lazy_json-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file django_lazy_json-0.1.0.tar.gz.

File metadata

  • Download URL: django_lazy_json-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.6 Linux/5.15.0-94-generic

File hashes

Hashes for django_lazy_json-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2fc0c9209dd86cdbbc8c61cac3716da08f0ef55283bf57ed83009c8dac213a0e
MD5 40834e7fafa2a9a2b960bdfa13a1579c
BLAKE2b-256 72c0cb7181607b832d94a6214ebe079d1d157afe768dd35b5c97751495e761d4

See more details on using hashes here.

File details

Details for the file django_lazy_json-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_lazy_json-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.6 Linux/5.15.0-94-generic

File hashes

Hashes for django_lazy_json-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b068703380e7e254119903109500931866bff025ecda4c6d230db8054ce45d9b
MD5 a7e0631b1956316b4ef250e3930684fb
BLAKE2b-256 922bcadaf7c8706b1cf977938ee0de931d959328d99bd5e6123c57a3754cf546

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page