Skip to main content

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

Uploaded Source

Supported by

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