​python_modules /
module-06 / alchemy / grimoire / light_validator.py
106 commits
20-05-2026
9 lines 319 B
1from .light_spellbook import light_spell_allowed_ingredients
2
3
4def validate_ingredients(ingredients: str) -> str:
5    allowed = light_spell_allowed_ingredients()
6    lower = ingredients.lower()
7    if any(item in lower for item in allowed):
8        return f"{ingredients} - VALID"
9    return f"{ingredients} - INVALID"