Fields

These fields can be found in the playhouse.fields module.

class CompressedField([compression_level=6[, algorithm=’zlib’[, \*kwargs*]]])

Parameters:
  • compression_level (int) – A value from 0 to 9.
  • algorithm (str) – Either ‘zlib’ or ‘bz2’.

Stores compressed data using the specified algorithm. This field extends BlobField, transparently storing a compressed representation of the data in the database.

class PickleField

Stores arbitrary Python data by transparently pickling and un-pickling data stored in the field. This field extends BlobField. If the cPickle module is available, it will be used.