exopy.tasks.filters module¶
Modules defining the basic filters.
The filter available by default are declared in the manager manifest.
-
class
exopy.tasks.filters.TaskFilter(parent=None, **kwargs)[source]¶ Bases:
exopy.utils.declarator.DeclaratorBase class for all task filters.
-
id¶ Unique id of this filter (also used as a name).
-
-
class
exopy.tasks.filters.SubclassTaskFilter(parent=None, **kwargs)[source]¶ Bases:
exopy.tasks.filters.TaskFilterFilter keeping only the python tasks which are subclass of subclass.
-
subclass¶ Class from which the task must inherit.
-
-
class
exopy.tasks.filters.MetadataTaskFilter(parent=None, **kwargs)[source]¶ Bases:
exopy.tasks.filters.TaskFilterFilter keeping only the python tasks with the right class attribute.
-
meta_key¶ Metadata key to match.
-
meta_value¶ Metadata value to match.
-
-
class
exopy.tasks.filters.GroupTaskFilter(parent=None, **kwargs)[source]¶ Bases:
exopy.tasks.filters.MetadataTaskFilterFilter keeping only the python tasks from the right group.
-
group¶ Group to which the tasks must belong.
-
meta_key¶ A value of type str.
Under Python 2 this is a byte string and behaves as Bytes with respect to promotion, under Python 3 it is a unicode string and behaves as Unicode with respect to promotion.
The use of this member is discouraged in Python 2/3 compatible codebase as Bytes and Unicode provide a more homogeneous behavior.
-
meta_value¶ A Member which behaves similar to a Python property.
-