UNKNOWN
Project description
Fields for storing serializable data.
What makes this different from other implementations available?
This implementation deserializes only when necessary. Deserializing is done on field access rather than on model instance creation. Serializing is done right before saving the model instance.
There is a test suite
Requirements
2.5 <= Python < 3
Django
Installation
pip install django-cerial
JSONField
Serializes data as JSON. Example:
from django.db import models from cerial import JSONField class Entry(models.Model): data = JSONField()
PickleField
Serializes data using cPickle. Example:
from django.db import models from cerial import PickleField class Entry(models.Model): data = PickleField()
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-cerial-0.0.4.tar.gz
(6.4 kB
view details)
File details
Details for the file django-cerial-0.0.4.tar.gz
.
File metadata
- Download URL: django-cerial-0.0.4.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68b4eac92ded0f96e66a4b5f6efbef74f05d56c2ecefb7ddc3db9b7e9d8f455a |
|
MD5 | 1a4af4275f2df09e75e4aa8461c56938 |
|
BLAKE2b-256 | 9734eaf6ece9f445c6d0ff9e47abe9e1d627a1bca124d395c6c134726847214d |