Metadata-Version: 2.4
Name: chemical-formula-rs
Version: 0.1.2
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering :: Chemistry
Summary: Python bindings for chemical-formula
Keywords: chemistry,parser
Author-email: Ameyanagi <contact@ameyanagi.com>
License-Expression: MIT OR Apache-2.0
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/Ameyanagi/chemical-formula-rs
Project-URL: Repository, https://github.com/Ameyanagi/chemical-formula-rs

# chemical-formula-rs

Python bindings for `chemical-formula`.

```python
import chemical_formula_rs as cf

summary = cf.parse_formula("1 wt % Pt / SiO2")
mw = cf.molecular_weight("H2O")
```

## API

- `parse_formula(input: str) -> FormulaSummary`
- `to_molecular_formula(input: str) -> FormulaSummary`
- `to_wt_percent(input: str) -> FormulaSummary`
- `molecular_weight(input: str) -> float`

