Get the latest tech news

Parsing Chemistry


Friday, October 24, 2025 In 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 like "C1.5O3" - groups such as "(CH3)2" - nested groups such as "((CH3)2)3" - square brackets such as "K4[Fe(SCN)6]" I thought it would fun to build a similar functionality using Factor.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of chemistry

chemistry

Related news:

News photo

Nobel Prize in Chemistry Awarded To Architects of Metal-Organic Frameworks

News photo

Nobel Prize in Chemistry 2025

News photo

This dental floss can tell you how stressed you are | Researchers develop a new dental flosser aiming to make it easier to monitor stress by monitoring the chemistry of your saliva.