A graph library for chiral molecules, reactions and transition states
Project description
StereoMolGraph
StereoMolGraph (SMG) is a lightweight Python library for representing molecules and transition states with explicit, local stereochemistry. It provides:
- Graph types for molecules and reactions (with/without stereo and stereo changes)
- Includes non tetrahedral stereocenters and changing stereochemistry in reactions
- Fast approximate hashing via Weisfeiler–Lehman color refinement
- Robust equality/isomorphism via a VF2++-style algorithm extended for stereochemistry and reactions
- Bidirectional conversion from / to RDKit
- Construction from 3D coordinates with automatic local stereo inference
Design philosophy
- Unopinionated about bond orders, charge and electronic state
- SMG focuses on the connectivity and stereochemistry.
- Stereochemistry describes relative spatial arrangement. No absolute stereochemistry.
- Transparent: Simple 2D visualization in IPython notebooks
Examples
Explore the working example notebooks in docs/examples/ (executed in CI). For rendered examples and guides, see the documentation: https://stereomolgraph.readthedocs.io
RDKit interoperability notes
- Hydrogens must be explicit for stereo-safe bidirectional conversion.
- Supports tetrahedral and non tetrahedral stereochemistry during conversion.
- Bond orders, charges, unpaired electrons and other properties are not used!
Installation
Install from PyPI:
pip install stereomolgraph
Feedback and support
Bug reports and feature requests are welcome — please open an issue on GitHub:
If you have questions or ideas that don’t fit a template, you can still open an issue and tag it appropriately.
Citation
If you use StereoMolGraph in your work, please cite the Zenodo record:
License
MIT License — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stereomolgraph-0.0.0b11.tar.gz.
File metadata
- Download URL: stereomolgraph-0.0.0b11.tar.gz
- Upload date:
- Size: 51.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93654133a94a98ac93311f8d388ad0ff210ddc95081db2d1861e1f4f6aeb0489
|
|
| MD5 |
ae7c30ead0700275f7987b810e646231
|
|
| BLAKE2b-256 |
cb38439f9fd9d0d4b3236be87289efc27da51de44a8c8c790530aceab1be6b1e
|
File details
Details for the file stereomolgraph-0.0.0b11-py3-none-any.whl.
File metadata
- Download URL: stereomolgraph-0.0.0b11-py3-none-any.whl
- Upload date:
- Size: 60.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b95e167485518d4d91c37e78a92c54b81ad1a1d8e6824db6ceade8bed9a16bd
|
|
| MD5 |
ece7fe351a111cad970212f810621f9d
|
|
| BLAKE2b-256 |
632426fa691bf8fd541516d070534a8583aee84d6e8fae2f1327d3e657e271b0
|