How vandan-revanur/pychemprojections works
Project type and purpose
• pychemprojections is an open-source Python library (not a web app or microservice) whose sole purpose is to take a SMILES string and render one of three 2D chemical projections (Fischer, Newman, WedgeDash).
• It provides both a programmatic API (via python imports) and a CLI entry point (__main__.py) for each projection.
File structure
• Top-level:
• .github/workflows/ – CI pipelines (lint, test, stats).
• examples/ – Jupyter notebooks demonstrating library usage.
• pyproject.toml – build configuration.
• Core package pychemprojections/ with these subpackages:
• fischer/, newman/, wedgedash/
– each has:
– __main__.py (CLI entry),
– stringmanipulation.py (SMILES parsing & transformation),
– visualization.py (final plotting logic),
– extra helpers (multiplechiral.py, bondoperations.py, etc.).
• utils/
– logger_utils.py (logging setup),
– rdkit_utils.py (calls into RDKit for chemical graph ops),
– smiles_manipulation_utils.py (shared SMILES routines).
Extract insights from the README
• Confirms it’s purely a visualization library.
• Mentions external dependency on RDKit (for underlying molecule handling) and a styling policy (Black).