Installation¶
MolPy requires Python 3.12+. Install it with pip:
Optional dependencies (extras)¶
MolPy keeps the core lightweight. Install extras when you need integrations or documentation tooling:
| Group | Command | When to use |
|---|---|---|
| All | pip install molcrafts-molpy[all] |
Everything below |
| Dev | pip install molcrafts-molpy[dev] |
Tests, coverage, tooling |
| Docs | pip install molcrafts-molpy[doc] |
Build documentation locally |
Nightly builds¶
Bleeding-edge snapshots are published to a separate PyPI project,
molcrafts-molpy-nightly, on every push to the nightly branch. Each build is
versioned X.Y.Z.devN (a PEP 440 dev release), so you opt in with --pre:
The nightly package imports as molpy, exactly like the stable one — which means
the two cannot be installed at the same time (the same trade-off as
tensorflow vs tf-nightly). Uninstall molcrafts-molpy first, or use a
dedicated virtual environment for nightly testing.
molrs is installed with MolPy¶
MolPy depends on the Rust backend molcrafts-molrs
on the same major.minor line (patch may differ). A normal pip install
pulls a compatible wheel; import molpy fails fast if the installed molrs is
on a different minor.
Verify installation¶
Run a tiny import check to confirm the package is available and see where it is installed.
Next steps¶
- Continue with the Quickstart to build, type, and export your first system.
- Then: the data-model tutorials, or Guides for task-oriented recipes.