#formula #chemistry #parser #smiles #open-smiles

smiles-parser

SMILES (chemical formula) parser based on the OpenSMILES spec

6 releases (3 breaking)

0.4.1 Nov 15, 2020
0.4.0 Nov 14, 2020
0.3.0 Nov 12, 2020
0.2.1 Mar 26, 2020
0.1.0 Nov 23, 2019

#618 in Science

Download history 3/week @ 2024-02-25 55/week @ 2024-03-31

55 downloads per month

MIT/Apache

145KB
1K SLoC

smiles-parser - SMILES parser in Rust based on the OpenSMILES spec

Crates.io version docs.rs docs

Installation

Via cargo-edit:

cargo add smiles-parser

Usage

Parse a chain (top-level object):

use smiles_parser::chain;

let chain = chain(b"C1CCC2(CC1)CO2");
assert!(chain.is_ok());

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2.5MB
~57K SLoC