Skip to content

Luna-v0/smiles

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published