Source code for fetchez.recipes.modifiers.base

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
fetchez.recipes.modifiers.base
~~~~~~~~~~~~~~

Generic Modifier Registry for the Fetchez Recipe Engine.
Allows external domains (like Globato) to register
custom recipe mutators.

:copyright: (c) 2010-2026 Regents of the University of Colorado
:license: MIT, see LICENSE for more details.
"""

import logging

logger = logging.getLogger(__name__)


[docs] class BaseModifier: """The generic base class for all recipe modifiers.""" name = "base"
[docs] def __init__(self, **kwargs): self.kwargs = kwargs
# @classmethod
[docs] def apply(self, config): """Mutates and returns the recipe config. Subclasses must override this to inject their domain-specific rules. """ return config