angelos.document.envelope

Module docstring.

class angelos.document.envelope.Envelope(nd: dict = {}, strict: bool = True)

Bases: angelos.document.document.Document, angelos.document.document.OwnerMixin

Short summary.

type

Description of attribute type.

Type

TypeField

expires

Description of attribute expires.

Type

DateField

message

Description of attribute message.

Type

BinaryField

header

Description of attribute header.

Type

DocumentField

posted

Description of attribute posted.

Type

DateTimeField

apply_rules() → bool

Short summary.

Returns

Description of returned object.

Return type

type

period() → float

The Delta period to expiry date.

Returns (datetime.timedelta):

The Delta period.

class angelos.document.envelope.Header(nd: dict = {}, strict: bool = True)

Bases: angelos.document.model.BaseDocument

Short summary.

op

Description of attribute op.

Type

StringField

issuer

Description of attribute issuer.

Type

UuidField

timestamp

Description of attribute timestamp.

Type

DateTimeField

signature

Description of attribute signature.

Type

SignatureField

class Op

Bases: object

Short summary.

RECEIVE = 'RECV'
ROUTE = 'RTE'
SEND = 'SEND'