📚

digital_standards Building Science as Python

ISO and EN building-science standards as importable Python modules. Every equation, every table, every annex — written so you can read the law alongside the code. Zero runtime dependencies. ISO 52016 hourly RC-network solver validated to machine precision against the EPB Center reference.

🐍 Python 3 0 deps Coming Soon

The Standard, Not a Wrapper Around It

Most building-science software uses standards — but the calculation is buried inside black-box solvers and the link back to the published equation is whatever a paying customer of TRNSYS / IDA / EnergyPlus chooses to document. digital_standards inverts that: every module is named after its standard (iso_6946, iso_52016, en_16798), every equation is one Python function with the standard's clause number, every reference table is a typed constant. The library IS the audit trail.

Want a U-value? Read the equation directly:

from iso_6946.equations import R, R_tot, U

R_layers = [R(0.015, 0.70), R(0.250, 0.77), R(0.150, 0.040), R(0.020, 0.87)]
print(f"U = {U(R_tot(R_layers)):.3f} W/(m²·K)")

Standards Coverage

Thermal & EnergyISO 6946, 13789, 12831, 13790, 52016, 52010, 13788, 10211, 13370, 15099, 10077, EN 16798, ISO 52003, 52000
Radiant Heating & CoolingEN 1264, ISO 11855
HVAC & VentilationEN 15242, EN 16798-7/-9, EN 15316-1, EN 12831-3, ASHRAE Fundamentals (psychrometrics)
Building InstallationsEN 12056-2 (drainage), EN 1775 (gas), EN 1717 (backflow), PN-HD 60364 (electrical), PN-B-02151 (acoustics)
RegulationsPolish WT2021 (U-limits, EP-limits, climate zones)

How Each Module Is Organised

equations.pyThe law. One pure function per equation, named for the clause it implements.
tables.pyReference data — constants, lookup tables, climate values — straight from the annexes.
types.pyDataclasses describing the data the standard talks about (Construction, Layer, Zone, …).
methodology.pyEngineering classes that compose the equations into the calculation flow the standard prescribes.

Same structure across every standard, so once you've read one module you can read any of them.

Validation

The ISO 52016 hourly RC-network solver is validated to machine precision against the EPB Center reference spreadsheet for the ASHRAE 140 BEST940 case under the Denver DRYCOLD TMY climate. Every other module ships with unit tests against worked examples in the published standard.

Want a heads-up at release?

digital_standards is in pre-release. Public availability and licensing terms will be announced via the ModelTok newsletter.