brew.styles¶
-
class
brew.styles.
Style
(style, category=u'', subcategory=u'', og=None, fg=None, abv=None, ibu=None, color=None)¶ A beer style
Parameters: - category (str) – The style category
- subcategory (str) – The style subcategory
- style (str) – The style name
- og (list(float)) – The lower and upper original gravity
- fg (list(float)) – The lower and upper final gravity
- abv (list(float)) – The lower and upper alcohol by volume
- ibu (list(float)) – The lower and upper IBU
- color (list(float)) – The lower and upper color (in SRM)
-
abv_errors
(abv)¶ Return list of errors if abv doesn’t match the style
Parameters: abv (float) – Alcohol by Volume Returns: List Return type: list
-
abv_matches
(abv)¶ Determine if abv matches the style
Parameters: abv (float) – Alcohol by Volume Returns: True if matches style, otherwise False Return type: bool
-
color_errors
(color)¶ Return list of errors if color doesn’t match the style
Parameters: color (float) – Color in SRM Returns: List Return type: list
-
color_matches
(color)¶ Determine if color matches the style
Parameters: color (float) – Color in SRM Returns: True if matches style, otherwise False Return type: bool
-
fg_errors
(fg)¶ Return list of errors if fg doesn’t match the style
Parameters: fg (float) – Final Gravity Returns: List Return type: list
-
fg_matches
(fg)¶ Determine if fg matches the style
Parameters: fg (float) – Final Gravity Returns: True if matches style, otherwise False Return type: bool
-
format
()¶
-
ibu_errors
(ibu)¶ Return list of errors if ibu doesn’t match the style
Parameters: ibu (float) – IBU Returns: List Return type: list
-
ibu_matches
(ibu)¶ Determine if ibu matches the style
Parameters: ibu (float) – IBU Returns: True if matches style, otherwise False Return type: bool
-
og_errors
(og)¶ Return list of errors if og doesn’t match the style
Parameters: og (float) – Original Gravity Returns: List Return type: list
-
og_matches
(og)¶ Determine if og matches the style
Parameters: og (float) – Original Gravity Returns: True if matches style, otherwise False Return type: bool
-
recipe_errors
(recipe)¶ Return list errors if the recipe doesn’t match the style
Parameters: recipe (Recipe) – A Recipe object Returns: Errors Return type: list
-
recipe_matches
(recipe)¶ Determine if a recipe matches the style
Parameters: recipe (Recipe) – A Recipe object Returns: True if recipe matches style, otherwise False Return type: bool
-
to_dict
()¶
-
to_json
()¶
-
classmethod
validate
(recipe)¶