Skip to content

Mash

pybeerxml.mash.Mash

Bases: BeerXmlModel

A mash profile, including temperature steps.

Attributes:

Name Type Description
name str | None

Profile name.

grain_temp LenientFloat

Initial grain temperature in °C. Non-numeric XML values (e.g. "unknown") are kept as strings.

sparge_temp LenientFloat

Sparge water temperature in °C.

ph LenientFloat

Target mash pH.

notes str | None

Free-text notes.

tun_temp LenientFloat

Mash tun temperature in °C.

tun_weight LenientFloat

Mash tun weight in kg.

tun_specific_heat LenientFloat

Specific heat of the mash tun material in Cal/(g·°C).

equip_adjust bool | None

Whether mash temperatures are adjusted for equipment heat capacity.

steps list[MashStep]

Ordered list of mash temperature steps.

MashStep

pybeerxml.mash_step.MashStep

Bases: BeerXmlModel

A single temperature step within a mash profile.

Attributes:

Name Type Description
name str | None

Step name (e.g. "Dough In", "Conversion", "Mash Out").

type str | None

Step type — "Infusion", "Temperature", or "Decoction".

infuse_amount LenientFloat

Volume of water infused in litres (infusion steps only).

step_temp LenientFloat

Target step temperature in °C.

end_temp LenientFloat

Final temperature at end of step in °C.

step_time LenientFloat

Step duration in minutes.

decoction_amt str | None

Volume of mash removed for decoction (decoction steps only).

water_ratio property

Water-to-grain ratio for this step. Not yet implemented.