original_docstring: Adds a dynamic item to the Pipeline.
  
          Two calling conventions. For DynamicItem objects, just use:
          add_dynamic_item(dynamic_item)
          But otherwise, should use:
          add_dynamic_item(func, takes, provides)
  
          Arguments
          ---------
          func : callable, DynamicItem
              If a DynamicItem is given, adds that directly. Otherwise a
              DynamicItem is created, and this specifies the callable to use. If
              a generator function is given, then create a GeneratorDynamicItem.
              Otherwise creates a normal DynamicItem.
          takes : list, str
              List of keys. When func is called, each key is resolved to
              either an entry in the data or the output of another dynamic_item.
              The func is then called with these as positional arguments,
              in the same order as specified here.
              A single key can be given as a bare string.
          provides : str, list
              For regular functions, the key or list of keys that it provides.
              If you give a generator function, key or list of keys that it
              yields, in order. Also see the provides decorator.
              A single key can be given as a bare string.
          
docstring: Adds a dynamic item to the Pipeline.
  Two calling conventions.
  
  Arguments
  
  func : callable, DynamicItem
  If a DynamicItem is given, adds that directly. Otherwise a
  DynamicItem is created, and this specifies the callable to use. If
  a generator function is given, then create a GeneratorDynamicItem.
  Otherwise creates a normal DynamicItem.
  takes : list, str
  List of keys. When func is called, each key is resolved to
  either an entry in the data or the output of another dynamic_item.
  The func is then called with these as positional arguments,
  in the same order as specified here.
  A single key can be given as a bare string.
  provides : str, list
  For regular functions, the key or list of keys that it provides.
  If you give a generator function, key or list of keys that it
  yields, in order. Also see the provides decorator.
  A single key can be given as a bare string.
docstring_tokens: Adds a dynamic item to the Pipeline . Two calling conventions . Arguments func : callable DynamicItem If a DynamicItem is given adds that directly . Otherwise a DynamicItem is created and this specifies the callable to use . If a generator function is given then create a GeneratorDynamicItem . Otherwise creates a normal DynamicItem . takes : list str List of keys . When func is called each key is resolved to either an entry in the data or the output of another dynamic_item . The func is then called with these as positional arguments in the same order as specified here . A single key can be given as a bare string . provides : str list For regular functions the key or list of keys that it provides . If you give a generator function key or list of keys that it yields in order . Also see the provides decorator . A single key can be given as a bare string .
code: def add_dynamic_item(self, func, takes=None, provides=None):
          """Adds a dynamic item to the Pipeline.
  
          Two calling conventions. For DynamicItem objects, just use:
          add_dynamic_item(dynamic_item)
          But otherwise, should use:
          add_dynamic_item(func, takes, provides)
  
          Arguments
          ---------
          func : callable, DynamicItem
              If a DynamicItem is given, adds that directly. Otherwise a
              DynamicItem is created, and this specifies the callable to use. If
              a generator function is given, then create a GeneratorDynamicItem.
              Otherwise creates a normal DynamicItem.
          takes : list, str
              List of keys. When func is called, each key is resolved to
              either an entry in the data or the output of another dynamic_item.
              The func is then called with these as positional arguments,
              in the same order as specified here.
              A single key can be given as a bare string.
          provides : str, list
              For regular functions, the key or list of keys that it provides.
              If you give a generator function, key or list of keys that it
              yields, in order. Also see the provides decorator.
              A single key can be given as a bare string.
          """
          if isinstance(func, DynamicItem):
              if takes is not None or provides is not None:
                  raise ValueError(
                      "If providing a DynamicItem directly, don't "
                      "specify takes or provides"
                  )
              else:
                  self._add_dynamic_item_object(func)
                  return
          if isinstance(takes, str):
              takes = [takes]
          if isinstance(provides, str):
              provides = [provides]
          di = takes_decorator(*takes)(provides_decorator(*provides)(func))
          self._add_dynamic_item_object(di)
code_tokens: def add_dynamic_item ( self , func , takes = None , provides = None ) : if isinstance ( func , DynamicItem ) : if takes is not None or provides is not None : raise ValueError ( "If providing a DynamicItem directly, don't " "specify takes or provides" ) else : self . _add_dynamic_item_object ( func ) return if isinstance ( takes , str ) : takes = [ takes ] if isinstance ( provides , str ) : provides = [ provides ] di = takes_decorator ( * takes ) ( provides_decorator ( * provides ) ( func ) ) self . _add_dynamic_item_object ( di )
short_docstring: Adds a dynamic item to the Pipeline.
short_docstring_tokens: Adds a dynamic item to the Pipeline .
comment: """Adds a dynamic item to the Pipeline.
  
          Two calling conventions. For DynamicItem objects, just use:
          add_dynamic_item(dynamic_item)
          But otherwise, should use:
          add_dynamic_item(func, takes, provides)
  
          Arguments
          ---------
          func : callable, DynamicItem
              If a DynamicItem is given, adds that directly. Otherwise a
              DynamicItem is created, and this specifies the callable to use. If
              a generator function is given, then create a GeneratorDynamicItem.
              Otherwise creates a normal DynamicItem.
          takes : list, str
              List of keys. When func is called, each key is resolved to
              either an entry in the data or the output of another dynamic_item.
              The func is then called with these as positional arguments,
              in the same order as specified here.
              A single key can be given as a bare string.
          provides : str, list
              For regular functions, the key or list of keys that it provides.
              If you give a generator function, key or list of keys that it
              yields, in order. Also see the provides decorator.
              A single key can be given as a bare string.
          """