Fermentable¶
pybeerxml.fermentable.Fermentable
dataclass
¶
A fermentable ingredient — grain, extract, sugar, or adjunct.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str | None
|
Ingredient name. |
amount |
float | None
|
Weight in kilograms. |
color |
float | None
|
Colour contribution in degrees Lovibond (°L). |
type |
str | None
|
Ingredient type (e.g. |
origin |
str | None
|
Country of origin. |
supplier |
str | None
|
Supplier or maltster name. |
notes |
str | None
|
Free-text notes. |
coarse_fine_diff |
float | None
|
Difference between coarse and fine grind yield (%). |
moisture |
float | None
|
Moisture content (%). |
diastatic_power |
float | None
|
Diastatic power in degrees Lintner. |
protein |
float | None
|
Protein content (%). |
max_in_batch |
float | None
|
Maximum recommended percentage of the grain bill. |
ibu_gal_per_lb |
float | None
|
IBU contribution per gallon per pound (for adjuncts). |
add_after_boil
property
writable
¶
Whether this fermentable is added after the boil (e.g. honey in secondary).
addition
property
¶
When this fermentable is added during the brewing process.
Returns one of "mash", "steep", or "boil", determined by
matching the ingredient name against known patterns. Explicit keywords
in the name ("mash", "steep", "boil") take precedence over
pattern matching. Unknown ingredients default to "mash".
ppg
property
¶
Points per pound per gallon, derived from the BeerXML YIELD field.
Returns None when YIELD is not set.
recommend_mash
property
writable
¶
Whether mashing is recommended for this fermentable.
gu(liters=1.0)
¶
Gravity units contributed at 100 % efficiency for the given volume.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
liters
|
float
|
Batch volume in litres. |
1.0
|
Returns:
| Type | Description |
|---|---|
float | None
|
Gravity units as a float, or |
float | None
|
is not set. |