nornir.core.processor

class nornir.core.processor.Processor(\args, **kwds*)

This defines the Processor interface. A processor plugin needs to implement each method with the same exact signature. It’s not necessary to subclass it.

A processor is a plugin that gets called when certain events happen.

class nornir.core.processor.Processors(iterable=(), /)

Processors is a wrapper class that holds a list of Processor. Each method will just iterate over all the the Processor objects in self and call its method. For instance:

  1. >>> def my_method(...):
  2. >>> for p in self:
  3. >>> p.my_method(...)