Keys Python Module

Contains the model for metadata keys.

class pacifica.metadata.orm.keys.Keys(*args, **kwargs)

Keys model class for metadata.

Attributes:
Name Description
key generic metadata key
encoding encoding for the key
DoesNotExist

alias of KeysDoesNotExist

static elastic_mapping_builder(obj)

Build the elasticsearch mapping bits.

from_hash(obj)

Convert the hash to the object.

to_hash(**flags)

Convert the object to a hash.

classmethod where_clause(kwargs)

PeeWee specific where clause used for search.