Skip to main content

molcrafts-molrs

PyPI

Python bindings for the molrs molecular modeling toolkit.

This package is the first public preview of the Python API. Install with pip install molcrafts-molrs and import it as molrs.

Full documentation lives at https://docs.molcrafts.org/molrs/. The Python API reference is rendered at https://docs.molcrafts.org/molrs/reference/python/.

Install

pip install molcrafts-molrs

Quick start

import numpy as np
import molrs

# Parse SMILES and generate 3D coordinates
ir = molrs.parse_smiles("CCO")
mol = ir.to_atomistic()
result = molrs.generate_3d(mol, molrs.EmbedOptions(speed="fast", seed=42))
frame = result.mol.to_frame()

# Build a system from scratch
frame = molrs.Frame()
atoms = molrs.Block()
atoms.insert("x", np.array([0.0, 0.96, -0.24], dtype=np.float64))
atoms.insert("y", np.array([0.0, 0.0, 0.93], dtype=np.float64))
atoms.insert("z", np.zeros(3, dtype=np.float64))
atoms.insert("element", ["O", "H", "H"])
frame["atoms"] = atoms

Support

  • Python 3.9+
  • pip install molcrafts-molrs
  • import molrs
  • Offline API help is available with help(molrs.Frame) and related symbols

API

Data model

  • Frame — dict-like container of named Blocks + optional Box
  • Block — column store backed by numpy arrays
  • Box — simulation box with periodic boundaries

I/O

  • molrs.read_pdb(path) / molrs.read_xyz(path)Frame
  • molrs.parse_smiles(smiles)SmilesIR.to_frame()

Neighbor search and analysis

nq = molrs.NeighborQuery(box, positions, cutoff=5.0)
nlist = nq.query_self()

from molrs.compute.density import RDF
rdf = RDF(100, 5.0)
result = rdf.compute(frame, nlist)

Force field

typifier = molrs.MMFF94Typifier()
potentials = typifier.build(atomistic)

Development

maturin build
pip install target/wheels/*.whl
pytest -q
Component Version
Python 3.9+
PyO3 Managed by molrs-python/Cargo.toml
maturin 1.x

License

BSD-3-Clause

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

molcrafts_molrs-0.11.2-cp314-abi3-win_amd64.whl (4.7 MB view details)

Uploaded CPython 3.14+Windows x86-64

molcrafts_molrs-0.11.2-cp314-abi3-pyemscripten_2026_0_wasm32.whl (1.7 MB view details)

Uploaded CPython 3.14+PyEmscripten 2026.0 wasm32

molcrafts_molrs-0.11.2-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.14+manylinux: glibc 2.17+ x86-64

molcrafts_molrs-0.11.2-cp314-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (9.7 MB view details)

Uploaded CPython 3.14+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file molcrafts_molrs-0.11.2-cp314-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for molcrafts_molrs-0.11.2-cp314-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 568b24c7243cc649a6a051a34475224b1418770e2c14404bacac7a0d7dd76d21
MD5 c313ba755598e4635a0eb1cfcf57ee91
BLAKE2b-256 80b7aa015f38de88c93f9e471773acf513ad100445e7fa0434b065d476b9219c

See more details on using hashes here.

Provenance

The following attestation bundles were made for molcrafts_molrs-0.11.2-cp314-abi3-win_amd64.whl:

Publisher: publish.yml on MolCrafts/molrs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file molcrafts_molrs-0.11.2-cp314-abi3-pyemscripten_2026_0_wasm32.whl.

File metadata

File hashes

Hashes for molcrafts_molrs-0.11.2-cp314-abi3-pyemscripten_2026_0_wasm32.whl
Algorithm Hash digest
SHA256 9e0cfce667f17dd69f0b39eb73ed9e7b97cd1d190cd31dcc6dda370846a1ff7b
MD5 749c7f23103bbcc856d605fee9d2045b
BLAKE2b-256 3c7b8316d9ce17682c3c08d064783574a0a56df661f8e0729c213f56e6a12e86

See more details on using hashes here.

Provenance

The following attestation bundles were made for molcrafts_molrs-0.11.2-cp314-abi3-pyemscripten_2026_0_wasm32.whl:

Publisher: publish.yml on MolCrafts/molrs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file molcrafts_molrs-0.11.2-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for molcrafts_molrs-0.11.2-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 27f8d6984b3f9cbf32053521435a04f6b3e1a58157ba2024b115a46781b8d2a1
MD5 6bc3ac6fe794661557c92b7afdaee8cf
BLAKE2b-256 a94fbfadbbe6dfdd717d4a6883d44dd58aaa86246c83367d475d39965b58ff59

See more details on using hashes here.

Provenance

The following attestation bundles were made for molcrafts_molrs-0.11.2-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish.yml on MolCrafts/molrs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file molcrafts_molrs-0.11.2-cp314-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for molcrafts_molrs-0.11.2-cp314-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 53aa8ae0181d3766f1317b379ed4936b23398f40fb88f04168bf54062b5b4541
MD5 bd455a8d6c6a27516ed02bcb6209581e
BLAKE2b-256 6394dee80f00e9ce9fc558c8d313f0a99a3d3cd43dc89642b9aa3a4e0f7df32b

See more details on using hashes here.

Provenance

The following attestation bundles were made for molcrafts_molrs-0.11.2-cp314-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: publish.yml on MolCrafts/molrs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.13.2

6 files

0.13.1

6 files

0.13.0

6 files

0.12.3

6 files

0.12.2

4 files

0.12.1

4 files

0.12.0

4 files

This release

0.11.2 This release

4 files

0.11.1

4 files

0.11.0

3 files

0.10.0

3 files

0.9.3

3 files

0.9.2

3 files

0.9.1

3 files

0.9.0

3 files

0.8.2

3 files

0.8.0

3 files

0.7.0

3 files

0.6.0

3 files

0.5.1

3 files

0.1.6

3 files

0.1.5

3 files

0.1.4

3 files

0.1.3

3 files

0.1.2

3 files

0.1.1

3 files

0.1.0

3 files

0.0.17

3 files

0.0.16

3 files

0.0.10

3 files

0.0.9

3 files

0.0.8

2 files

0.0.7

7 files

0.0.5

1 file

0.0.4

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page