(self, **kwargs)
Constructs a new field object.  See how fields are used by looking at example
        resources like opsmop.types.package.Package
Constructs a new field object.  See how fields are used by looking at example
        resources like opsmop.types.package.Package
Constructs a new field object . See how fields are used by looking at example resources like opsmop . types . package . Package
def __init__(self, **kwargs):

        """
        Constructs a new field object.  See how fields are used by looking at example
        resources like opsmop.types.package.Package
        """
        
        self.kwargs = kwargs

        for (k,v) in kwargs.items():
            if k not in self.__slots__:
                raise Exception("unknown Field parameter: %s" % k)

        # kind is the type of the field, this should be a valid Python type
        self.kind = kwargs.get('kind', None)
        # for kinds of list or dict, this asserts type checks on the contents thereof
        self.of = kwargs.get('of', None)
        # default is the default value for scalar parameters if values are not supplied
        self.default = kwargs.get('default', None)
        # if empty is True, not providing a value to a dict() or list[] variable will provide an empty dict or list
        self.empty = kwargs.get('empty', None)
        # if loader is set to a callable, instead of using a default passed to the field, use the value from this function instead
        self.loader = kwargs.get('loader', None)
        # if validatior is set, call this function.  It should raise an exception if the field does not validate.
        self.validator = kwargs.get('validator', None)
        # if kind is set, whether to allow None as a type
        self.allow_none = kwargs.get('allow_none', True)
        # describe what the field does
        self.help = kwargs.get('help', '')
        # if set, do not resolve the field immediately, it will be evaluated further down at runtime
        self.lazy = kwargs.get('lazy', False)
def __init__ ( self , * * kwargs ) : self . kwargs = kwargs for ( k , v ) in kwargs . items ( ) : if k not in self . __slots__ : raise Exception ( "unknown Field parameter: %s" % k ) # kind is the type of the field, this should be a valid Python type self . kind = kwargs . get ( 'kind' , None ) # for kinds of list or dict, this asserts type checks on the contents thereof self . of = kwargs . get ( 'of' , None ) # default is the default value for scalar parameters if values are not supplied self . default = kwargs . get ( 'default' , None ) # if empty is True, not providing a value to a dict() or list[] variable will provide an empty dict or list self . empty = kwargs . get ( 'empty' , None ) # if loader is set to a callable, instead of using a default passed to the field, use the value from this function instead self . loader = kwargs . get ( 'loader' , None ) # if validatior is set, call this function.  It should raise an exception if the field does not validate. self . validator = kwargs . get ( 'validator' , None ) # if kind is set, whether to allow None as a type self . allow_none = kwargs . get ( 'allow_none' , True ) # describe what the field does self . help = kwargs . get ( 'help' , '' ) # if set, do not resolve the field immediately, it will be evaluated further down at runtime self . lazy = kwargs . get ( 'lazy' , False )