gwsumm.mode Module

Job modes

Functions

get_base(date[, mode])

Determine the correct base attribute for the given date and mode.

get_mode([m])

Return the enum for the given mode, defaults to the current mode.

set_mode(m)

Set the current mode.

unique(enumeration)

Class decorator for enumerations ensuring unique member values.

Classes

Enum(value[, names, module, qualname, type, ...])

Create a collection of name/value pairs.

Mode(value[, names, module, qualname, type, ...])

Enumeration of valid processing 'modes'

OrderedEnum(value[, names, module, ...])

Class Inheritance Diagram

digraph inheritance32686c8ec0 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "Enum" [URL="https://docs.python.org/3/library/enum.html#enum.Enum",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Create a collection of name/value pairs."]; "Mode" [URL="api/gwsumm.mode.html#gwsumm.mode.Mode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Enumeration of valid processing 'modes'"]; "OrderedEnum" -> "Mode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "OrderedEnum" [URL="api/gwsumm.mode.html#gwsumm.mode.OrderedEnum",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Enum" -> "OrderedEnum" [arrowsize=0.5,style="setlinewidth(0.5)"]; }