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 extendsBlobField, transparently storing a compressed representation ofthe data in the database.

  • class PickleField
  • Stores arbitrary Python data by transparently pickling and un-pickling datastored in the field. This field extends BlobField. If thecPickle module is available, it will be used.