Skip to main content

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

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)

Uploaded Source

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

Hashes for django-cerial-0.0.4.tar.gz
Algorithm Hash digest
SHA256 68b4eac92ded0f96e66a4b5f6efbef74f05d56c2ecefb7ddc3db9b7e9d8f455a
MD5 1a4af4275f2df09e75e4aa8461c56938
BLAKE2b-256 9734eaf6ece9f445c6d0ff9e47abe9e1d627a1bca124d395c6c134726847214d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page