Registry / data / chem
library2.0.0pypypi✓ verified 88d ago

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
INSTALL
IMPORT
SIG · CHEM
C
chem
datapythonv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

chem
✓ import chem
The package is named 'chem' on PyPI, but the module is also 'chem'. No common wrong import.

Import the library and use its functions. Replace with actual API calls from documentation.

import chem # Example: access chemistry constants or functions from chem import some_function # replace with actual function print(chem.__version__)
Debug
Known issues
gotchaThe 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
affects: all
breakingVersion 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'.
affects: >=2.0.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'chem'
The package is not installed, or the import name is different.
fix
Run 'pip install chem' and ensure the import is 'import chem'.
ImportError: cannot import name 'add' from 'chem'
The 'add' function was removed in version 2.0.0.
fix
Use 'from chem import calculate' instead, or downgrade to 1.3.0.
Upgrade
Version history
2.0.0latest on PyPI · released Apr 28, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
chem — pip install chem · libregistry