示例#1
0
def GarlicCloves(quantity: Optional[float],
                 *,
                 does_scale=True,
                 is_first_in_section: bool = False,
                 section_name: str = ""):
    return Ingredient("Garlic", quantity, "cloves", does_scale,
                      is_first_in_section, section_name)
示例#2
0
def CayennePepper(quantity: Optional[float],
                  unit_of_measure="",
                  *,
                  does_scale=True,
                  is_first_in_section: bool = False,
                  section_name: str = ""):
    return Ingredient("Cayenne pepper", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#3
0
def PeanutButter(quantity: Optional[float],
                 unit_of_measure="",
                 *,
                 does_scale=True,
                 is_first_in_section: bool = False,
                 section_name: str = ""):
    return Ingredient("Peanut butter", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#4
0
def ChunkedChicken(quantity: Optional[float],
                   unit_of_measure="",
                   *,
                   does_scale=True,
                   is_first_in_section: bool = False,
                   section_name: str = ""):
    return Ingredient("Chicken, cut into chunks", quantity, unit_of_measure,
                      does_scale, is_first_in_section, section_name)
示例#5
0
def VegetableBroth(quantity: Optional[float],
                   unit_of_measure="",
                   *,
                   does_scale=True,
                   is_first_in_section: bool = False,
                   section_name: str = ""):
    return Ingredient("Vegetable broth", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#6
0
def SoySauce(quantity: Optional[float],
             unit_of_measure="",
             *,
             does_scale=True,
             is_first_in_section: bool = False,
             section_name: str = ""):
    return Ingredient("Soy sauce", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#7
0
def AppleCiderVinegar(quantity: Optional[float],
                      unit_of_measure="",
                      *,
                      does_scale=True,
                      is_first_in_section: bool = False,
                      section_name: str = ""):
    return Ingredient("Apple cider vinegar", quantity, unit_of_measure,
                      does_scale, is_first_in_section, section_name)
示例#8
0
def MincedGarlic(quantity: Optional[float],
                 unit_of_measure="",
                 *,
                 does_scale=True,
                 is_first_in_section: bool = False,
                 section_name: str = ""):
    return Ingredient("Garlic, minced", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#9
0
def DicedTomatoes(quantity: Optional[float],
                  unit_of_measure="",
                  *,
                  does_scale=True,
                  is_first_in_section: bool = False,
                  section_name: str = ""):
    return Ingredient("Diced tomatoes", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#10
0
def DriedFruit(quantity: Optional[float],
               unit_of_measure="",
               *,
               does_scale=True,
               is_first_in_section: bool = False,
               section_name: str = ""):
    return Ingredient("Dried fruit", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#11
0
def UnsweetenedCoconutFlakes(quantity: Optional[float],
                             unit_of_measure="",
                             *,
                             does_scale=True,
                             is_first_in_section: bool = False,
                             section_name: str = ""):
    return Ingredient("Unsweetened coconut flakes", quantity, unit_of_measure,
                      does_scale, is_first_in_section, section_name)
示例#12
0
def MixedBeans(quantity: Optional[float],
               unit_of_measure="",
               *,
               does_scale=True,
               is_first_in_section: bool = False,
               section_name: str = ""):
    return Ingredient("Mixed beans", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#13
0
def VanillaExtract(quantity: Optional[float],
                   unit_of_measure="",
                   *,
                   does_scale=True,
                   is_first_in_section: bool = False,
                   section_name: str = ""):
    return Ingredient("Vanilla extract", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#14
0
def ChocolateChips(quantity: Optional[float],
                   unit_of_measure="",
                   *,
                   does_scale=True,
                   is_first_in_section: bool = False,
                   section_name: str = ""):
    return Ingredient("Chocolate chips", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#15
0
def BrownSugar(quantity: Optional[float],
               unit_of_measure="",
               *,
               does_scale=True,
               is_first_in_section: bool = False,
               section_name: str = ""):
    return Ingredient("Brown sugar", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#16
0
def SunflowerSeeds(quantity: Optional[float],
                   unit_of_measure="",
                   *,
                   does_scale=True,
                   is_first_in_section: bool = False,
                   section_name: str = ""):
    return Ingredient("Sunflower seeds", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#17
0
def GroundFlaxSeed(quantity: Optional[float],
                   unit_of_measure="",
                   *,
                   does_scale=True,
                   is_first_in_section: bool = False,
                   section_name: str = ""):
    return Ingredient("Ground flaxseed", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#18
0
def OliveOil(quantity: Optional[float],
             unit_of_measure="",
             *,
             does_scale=True,
             is_first_in_section: bool = False,
             section_name: str = ""):
    return Ingredient("Olive oil", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#19
0
def AlmondMilk(quantity: Optional[float],
               unit_of_measure="",
               *,
               does_scale=True,
               is_first_in_section: bool = False,
               section_name: str = ""):
    return Ingredient("Almond milk", quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#20
0
def Cilantro(quantity: Optional[float],
             unit_of_measure="",
             *,
             is_fresh: bool,
             does_scale=True,
             is_first_in_section: bool = False,
             section_name: str = ""):
    name = get_name_fresh_or_dried("Cilantro", is_fresh)
    return Ingredient(name, quantity, unit_of_measure, does_scale,
                      is_first_in_section, section_name)
示例#21
0
def IngredientWithoutUnits(name: str,
                           quantity: float,
                           is_first_in_section: bool = False,
                           section_name: str = "") -> Ingredient:
    name_possibly_pluralized = name if quantity == 1 \
     else f"{name}s" if not name.endswith("o") \
     else f"{name}es"

    return Ingredient(name_possibly_pluralized,
                      quantity,
                      does_scale=True,
                      is_first_in_section=is_first_in_section,
                      section_name=section_name)