otupy.core.target.target

target(name, nsid=None)

The @target decorator

Use this decorator to declare a Target in otupy extensions.

Parameters:
  • name – The name of the target, as provided by the corresponding specification.

  • nsid – The Profile NameSpace identifier (must be the same as defined by the corresponding Profile specification.

Result:

The following class definition is registered as valid Target in otupy.