Changelog¶
1.0.0 — 2026-11-21¶
Breaking / behavior changes¶
ideal_gas('T', ...)now returns a number; it used to return the tuple(T, 2).- Celsius is converted with 273.15 (was 273.5).
- Intermediate values are no longer rounded, so some results change slightly.
moles_to_gramsnow rounds to 2 decimals, like the other conversions.compositionandpercent_compositionlist each element once, even when it appears more than once in the formula (e.g.CH3COOH).- Invalid input raises
ValueErrorwith a clear message instead of aKeyErrororTypeError.
Added¶
- A full documentation site: getting started, a guide to every function, tutorials, a cookbook, a periodic table page, FAQ and migration notes.
tools/docs_examples.py, which runs every example in the docs and README and checks its output.- Formulas with parentheses and brackets:
Ca(OH)2,Al2(SO4)3,K4[Fe(CN)6]. compounds.parse_formula.ideal_gas: pressure inmmHgandkPa; thedecimalsargument now works.chemhelper.__version__.- NumPy-style docstrings for every public function; documentation site.
- Test suite and CI.
Fixed¶
- Printed solutions show moles, volumes and molarities to four significant
figures, so small amounts no longer appear as
0.00. - Technetium's symbol (
'TC'→'Tc'). - Spelling of Beryllium, Holmium and Protactinium.
ideal_gas_stepsprinted a wrongly rounded torr→atm value.
Packaging¶
- Requires Python 3.10 or newer.
pyproject.tomlwith asrc/layout replacessetup.py. The previous layout shipped no code becausechemhelper/did not exist in the repository.- Old per-version folders (
chemhelper.0.1…chemhelper.0.4) removed; they remain in git history.
0.4¶
Last release before 1.0.