Keys Python Module

Contains the model for metadata keys.

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

Keys model class for metadata.

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

alias of KeysDoesNotExist

_meta = <peewee.Metadata object>
_schema = <peewee.SchemaManager object>
created = <ExtendDateTimeField: Keys.created>
deleted = <ExtendDateTimeField: Keys.deleted>
encoding = <CharField: Keys.encoding>
from_hash(obj)[source]

Convert the hash to the object.

id = <AutoField: Keys.id>
key = <CharField: Keys.key>
to_hash(**flags)[source]

Convert the object to a hash.

updated = <ExtendDateTimeField: Keys.updated>
classmethod where_clause(kwargs)[source]

PeeWee specific where clause used for search.