Skip to content

sorl/django-cerial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-cerial

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

About

Fields for storing serializable data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages