pollination_dsl.function.base module

class pollination_dsl.function.base.Function

Bases: _BaseClass

Baseclass for DSL Function classes.

Every Queenbee DAG must subclass from this class.

queenbee
_dependencies
_inputs
_outputs
_package
_python_package
property queenbee: Function

Convert this class to a Queenbee Function.

pollination_dsl.function.base.command(func)

Command decorator for a task.

A method that is decorated by a command must return a string. Use {{}} to template the command with command arguments (e.g. {{self.name}}).

pollination_dsl.function.base.script(func)

Script decorator for a script.

A method that is decorated by a script must return a string. Use {{}} to template the script with script arguments (e.g. {{self.name}}).