Hop¶
pybeerxml.hop.Hop
¶
A hop addition in a beer recipe.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str | None
|
Hop variety name. |
alpha |
float | None
|
Alpha acid percentage. |
amount |
float | None
|
Weight in kilograms. |
use |
str | None
|
When the hop is added — |
form |
str | None
|
Physical form — |
time |
float | None
|
Contact time in minutes (boil time, dry-hop duration, etc.). |
type |
str | None
|
Hop type — |
beta |
float | None
|
Beta acid percentage. |
origin |
str | None
|
Country of origin. |
notes |
str | None
|
Free-text notes. |
bitterness(ibu_method, early_og, batch_size)
¶
Calculate the IBU contribution of this hop addition.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ibu_method
|
str
|
Formula to use — |
required |
early_og
|
float
|
Original gravity at the start of the boil (e.g. |
required |
batch_size
|
float
|
Batch volume in litres. |
required |
Returns:
| Type | Description |
|---|---|
float
|
IBU contribution as a float. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
ValueError
|
If |
utilization_factor()
¶
Utilization multiplier for hop form.
Pellet hops are approximately 15 % more efficient than whole hops.
Returns:
| Type | Description |
|---|---|
float
|
|