Installation¶
Requirements¶
| Requirement | Version |
|---|---|
| Python | 3.10 or newer |
| pandas | 1.3 or newer (installed automatically) |
chemhelper is pure Python and runs anywhere pandas does: Windows, macOS and Linux.
Install from PyPI¶
To upgrade an existing installation:
Version 1.0 is new
If pip gives you version 0.4, the 1.0 release has not reached PyPI yet.
Install it from GitHub as shown below.
Install from GitHub¶
This installs the latest code on the master branch:
Install in a notebook¶
In Jupyter or Google Colab, run this in a cell:
Check the installation¶
>>> import chemhelper
>>> chemhelper.__version__
'1.0.0'
>>> from chemhelper import compounds
>>> compounds.mass('H2O')
18.02
If you see a version number and a molar mass for water, you're ready for the Quickstart.
Import the modules¶
chemhelper has four modules. Import the ones you need:
Importing the package also loads all four, so this works too:
| Module | What it does | Guide |
|---|---|---|
elements |
Periodic table data | elements |
compounds |
Molar mass and composition | compounds |
conversions |
Grams, moles and molarity | conversions |
ideal_gas |
PV = nRT | ideal_gas |
Install for development¶
To change chemhelper itself, clone the repository and install it in editable mode with the test and documentation tools:
See Contributing for the rest of the workflow.