While the 1:1 mapping of output -> function implementation is powerful, we’ve implemented a few decorators to promote business-logic reuse, as well as to layer on extra capabilities. Source for these decorators can be found in the function_modifiers module.

For reference we list available decorators for Hamilton here. Note: use from hamilton.function_modifiers import DECORATOR_NAME to use these decorators: