pyparserchemicalformula

To parse chemical formula.


Keywords
parser, chemical
License
MIT
Install
pip install pyparserchemicalformula==0.1

Documentation

pyparserchemicalformula

Latest release on the Python Cheeseshop (PyPI) Build status of perf on Travis CI

A simple library to parse chemical string formula.

Documentation

The full documentation is at https://pyparserchemicalformula.readthedocs.io.

Quickstart

Install pyparserchemicalformula:

pip install pyparserchemicalformula

To run test:

make test

That use tox to run test.

Usage example:

from pyparserchemicalformula.parser import parse_molecule

parse_molecule('H2O')

Return a dict with the result of the formula.

Features

  • Parse a chemical formula string