Skip to content

Repository files navigation

Smiles Validator

A validator for SMILE chemical language using SLY LaLR(1) parser. The grammar was based on the LL(1) parser from this article, and from the OpenSMILES Specification.

All the data related to the periodic table was retrived from the Bowserinator/Periodic-Table-JSON repo.

📚 Documenatation

All the documentation is available in the Docs Page.

📦 Installation

For installation make sure you have uv installed.

uv venv .venv
source .venv/bin/activate
uv pip install -e .

🚀 Usage

from validator.yacc import validate_smiles

print(validate_smiles("c1ccccc1"))

🧪 Run Tests

pytest

About

A validator for the SMILES molecular language

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages