Parsing Chemistry
re.factorcode.orgIn Python, the chemparse project is available as a “lightweight package for parsing chemical formula strings into python dictionaries” mapping chemical elements to numeric counts. It supports parsing several variants of formula such as: simple formulas like “H2O” fractional stoichiometry … Read more