Wrapper for Django's JSONField that allows for lazy loading of the JSON object.
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
Usage
from django.db import models
from lazy_json_field.fields import LazyJSONField
class MyModel(models.Model):
data = LazyJSONField()
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
File details
Details for the file django_lazy_json-0.1.1.tar.gz
.
File metadata
- Download URL: django_lazy_json-0.1.1.tar.gz
- Upload date:
- Size: 3.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77ced6cc95a0e846f4a56eefc3240268ed04e30981f350c4fd8556226b007094 |
|
MD5 | 1293c0c080768e395d3aad0aeda4a359 |
|
BLAKE2b-256 | afedbab8a017a20933fefd49898f5abce6dc7c81f1b24cbfded1719143f4fc93 |
File details
Details for the file django_lazy_json-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: django_lazy_json-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f65736f4b46ec5e6f3c478d86951e9bae4cc5dc3b7e4d4608127caf501f0db23 |
|
MD5 | c0ea32803b77a83653670f777d96ac0d |
|
BLAKE2b-256 | fd327d8953bcfefaa8cae21256c05dac7052fa659dc4ddbc337a028750120a8a |