Models Python Module

Models module.

This class contains the data structure models for the dispatcher.

class pacifica.dispatcher.models.PacificaModel[source]

Abstract base class for all Dispatcher models.

Contains method interface definitions for all model classes.

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 42
_abc_registry = <_weakrefset.WeakSet object>
classmethod from_cloudevents_model(event: cloudevents.model.Event) → Union[pacifica.dispatcher.models.PacificaModel, List[pacifica.dispatcher.models.PacificaModel]][source]

Abstract method for creating a model from a cloud event.

class pacifica.dispatcher.models.File(**attrs)[source]

File model class.

This holds all information about a file from a cloud event.

__init__(**attrs) → None[source]

Build the file attributes from the dictionary keywords.

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 42
_abc_registry = <_weakrefset.WeakSet object>
_id = None
ctime = None
encoding = None
classmethod from_cloudevents_model(event: cloudevents.model.Event) → List[pacifica.dispatcher.models.File][source]

Factory creating instances of File from a cloud event.

hashsum = None
hashtype = None
mimetype = None
mtime = None
name = None
path

Path property accessor.

size = None
subdir = None
suspense_date = None
class pacifica.dispatcher.models.Transaction(**attrs)[source]

Transaction model clas.

This class holds all the information about a transaction from a cloud event.

__init__(**attrs) → None[source]

Build the transaction from the attrs in keywords.

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 42
_abc_registry = <_weakrefset.WeakSet object>
_id = None
analytical_tool = None
description = None
classmethod from_cloudevents_model(event: cloudevents.model.Event) → pacifica.dispatcher.models.Transaction[source]

Factory creating a transaction class from a cloud event.

instrument = None
project = None
submitter = None
suspense_date = None
class pacifica.dispatcher.models.TransactionKeyValue(**attrs)[source]

Transaction key value model.

This holds the transaction key value pairs from a cloud event.

__init__(**attrs) → None[source]

Construct the attributes from keywords.

_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 42
_abc_registry = <_weakrefset.WeakSet object>
classmethod from_cloudevents_model(event: cloudevents.model.Event) → List[pacifica.dispatcher.models.TransactionKeyValue][source]

Factory creating all the key value pairs for a cloud event.