Open edX Cheminformatics Helper
raw JSON → 2.0.0 verified Fri May 01 auth: no python
A helper library for chemistry calculations, used by the edx-platform. Version 2.0.0 is the latest stable release. Originally part of edx-platform, it was spun off as an independent package. Release cadence is irregular.
pip install chem Common errors
error ModuleNotFoundError: No module named 'chem' ↓
cause The package is not installed, or the import name is different.
fix
Run 'pip install chem' and ensure the import is 'import chem'.
error ImportError: cannot import name 'add' from 'chem' ↓
cause The 'add' function was removed in version 2.0.0.
fix
Use 'from chem import calculate' instead, or downgrade to 1.3.0.
Warnings
gotcha The package name 'chem' is very short and may conflict with other packages. Ensure you are installing the correct 'chem' from PyPI. ↓
fix Pin to version: pip install chem==2.0.0
breaking Version 2.0.0 introduced a breaking change: the function 'add' was removed and replaced by 'calculate'. Check changelog for details. ↓
fix Use 'calculate' instead of 'add'.
Imports
- chem
import chem
Quickstart
import chem
# Example: access chemistry constants or functions
from chem import some_function # replace with actual function
print(chem.__version__)