chemistry — a reasoning module

Molecules read as a chemist reads a skeletal drawing, as a DKE Python module you compile into your own store. You record atoms and bonds; it gives every atom the hydrogens its valence leaves over, names an atom bonded past its valence, a molecule's formula and weight and the functional groups on it, and a reaction's enthalpy by Hess's law, withdrawing each answer when you correct the fact it rests on. It calculates a formula's molar mass, balances equations in exact integers, finds the pH of an acid and a titration curve, and integrates consecutive and reversible reactions.

Licence: MIT. Current version: 1.0.3, released in rev 145.

Get it

The whole release, as one archive:

curl -O https://dke.langsyn.com/source/chemistry/1.0.3/chemistry-1.0.3.tar.gz

Its SHA-256: 35279017f380c64d3f8d41ee37152e33cb312a6f47a2ebf0df04a8f0148d6ed2.

Or browse version 1.0.3 file by file. /source/chemistry/latest/ always redirects to the current version. A release's files never change. When the next release supersedes this one, this version stays served at its URL, marked superseded, so cite the version and the archive's digest to say exactly which bytes you read, and use latest for a link that follows each new release.

Current release